features/fleet/fleet library

Classes

ActionIndicator
Widget that draws a circle indicator, typically on the corner of another widget, to indicate that an action is required.
AdditionalResourcesTab
Tab that displays additional resources for a device.
AnimatedPageCrossFade
A widget that cross-fades between two background and foreground children.
CenterZoom
Geographical point with applied zoom level
CenterZoomMap
Map that centers and zooms to focus on the given focusedPoint if any. If no focused point is provided, it instead centers to fit the given bounds if they are given and / or they change.
CenterZoomMapState
Interface that represents the state for a CenterZoomMap. Contains methods for centering and zooming into a particular point or lat-long bounds.
DashboardContents
Contents of the dealer's dashboard page
DashboardGraph
Displays a graph showing the percentage of the fleet running at optimal health.
DashboardSheet
Sheet that displays the dealer's dashboard, a collection of quick links and useful information for the dealer.
DashboardStatusList
Displays a list containing a breakdown of the fleet by device status, and the number of devices per status.
DashboardStatusListItem
Displays an item within the dashboard status list.
DetailsTab
Tab that shows overall details of a device.
DeviceOverviewAppBar
App bar for the device overview page
DeviceOverviewAppBarBuilder
Displays an app bar for the device overview page
DeviceOverviewAppBarBuilderState
State for a device overview app bar.
DeviceOverviewPage
Page that displays the device overview with general device-specific details as well as maintenance information.
DeviceRedirectPage
Page that redirects to the DeviceOverviewPage for the device with the given serial number.
EventsPageTitle
FleetList
Displays the list of devices based on the high-fidelity designs for the fleet list. Devices are grouped into sections based on their status. Sections are collapsible, and are collapsed by default.
FleetListPage
Page that displays the dealer's fleet of devices in a list view.
FleetListStatusHeader
Displays the header for a given device status category within the fleet list page.
FleetListTile
Tile within the fleet list that displays device data such as its name, serial number, address, and status information.
FleetMap
Map that displays the dealer's fleet of devices
FleetMapClient
Client that returns map information.
FleetMapClusterMarker
Cluster marker for the fleet map, that represents a group of devices clustered near a certain location.
FleetMapMarker
Default marker for the fleet map, that represents a device of the dealer.
FleetMapMarkerIcon
Glowing map marker icon.
FleetMapMarkerLayer
Flutter map layer that displays fleet map markers with clustering.
FleetMapPage
Page that displays the dealer's fleet of devices in a map view
FleetPage
Page that displays the entire fleet of the dealer's devices.
FleetPageContents
Contents of the fleet page. Consists of the fleet map and fleet list, with a button for switching between either view via the app router.
FleetTileProvider
Tile provider for the fleet map.
GeneratorDetailsContents
Contents of the details tab that displays information specifically for Kohler Generator products such as the RDC2.
GeneratorStatusTile
Displays the status of a generator, including its current DeviceStatus as well as its connectivity.
GeneratorTrendsChart
Chart that displays the historical trends for a device parameter.
GeneratorTrendsPage
Page that displays the historical trends for a generator parameter.
LatLngTween
An interpolation between two LatLngs.
MaintenanceTab
Tab that displays maintenance information details for a device
OpenWeatherMapClient
Map client that uses weather data from the Open Weather service.
ParameterTile
Displays a list tile with a parameter value.
RemoteExerciseFAB
Floating action button that displays actions for remote starting & stopping as well as scheduling exercises.
SemiCircleGraphPainter
Custom painter that paints a graph in a semicircle.
ServiceAgreementDialog
Dialog that allows a user to view and edit the service agreement details of a device.
SliverEventsLogTile
List tile sliver that displays the events log count. Tapping on the tile will navigate to the event log page.
SliverFleetSectionList
Sliver containing a section of a fleet list, typically corresponding to devices with a specific status.
SliverGeneratorInfoTiles
List tile sliver that displays the device's connection type and service agreement. Tapping on the tile will perform relevant actions such as allowing the user to edit the connection type or service agreement details, respectively.
TriangleBorder
A border that fits a triangle within the available space

Enums

DeviceOverviewTab
Enum representation of a tab in the device overview
FleetMapLayer

Constants

clockTimePattern → const String
kDashboardSheetHeight → const double
kDashboardToolbarHeight → const double
kDefaultActionIndicatorInset → const EdgeInsets
Default inset for the action indicator
kDefaultCenterZoom → const CenterZoom
Default center zoom is the geographic center of the U.S., a neutral zone for all gods.
kDefaultFitBoundsMaxZoom → const double
Default max zoom level for the fit bounds options when performing center / zoom operations on a given set of bounds.
kDefaultFitBoundsPadding → const EdgeInsets
Default padding for the fit bounds options when performing center / zoom operations on a given set of bounds.
kDefaultFocusedPointZoom → const double
Default zoom level when zooming into a focused point.
kDefaultMaxClusterZoom → const int
Default max zoom level where clustering will still be enabled.
kFleetMapClusterMarkerDimension → const double
Total fleet map cluster marker dimension length.
kFleetMapMarkerDimension → const double
Total fleet map marker dimension length.
kFleetMapMaxZoom → const double
Maximum zoom supported by the fleet map
kFleetMapMinZoom → const double
Minimum zoom supported by the fleet map
kFleetPageTopHeaderHeight → const double
kMaxDashboardContentWidth → const double
kMaxFleetTileCacheObjects → const int
Max number of cache objects for fleet tiles
kSnowBlue → const Color
Blue used to represent light snow, based on weather.com's snow color per feature discussion in https://dev.azure.com/KohlerDevOps/Kohler%20Clean%20Energy/_workitems/edit/17960

Properties

mapClientProvider FutureProvider<FleetMapClient>
Provides a map client that obtains weather data from the Open Weather service.
final
overviewWarningBannerKey ModalKey<String>
final

Functions

showAndUpdateServiceAgreement({required BuildContext context, required int deviceId}) Future<void>
Show the service agreement dialog and update the service agreement details of a device based on the input provided by the user.
showServiceAgreementDialog({required BuildContext context, required int deviceId}) Future<ServiceAgreementFormData?>
Show the service agreement dialog. Returns the updated service agreement details chosen by the user.
simulateTap(BuildContext? context) → void

Typedefs

DeviceAppBarWidgetBuilder = Widget Function(BuildContext context, PreferredSizeWidget appBar, Widget? child)
LocalizeTimeOfDayCallback = String Function(DateTime timeOfDay)