layrz_theme library

Classes

AppThemedAsset
Avatar
AvatarInput
DialogSelectInput<T>
Emoji
Emoji class.
Layo
LayrzAppLocalizations
NamedIcon
NumberFormat
Provides the ability to format a number in a locale-specific way.
ResponsiveCol
ResponsiveRow
SelectInputResult
StartGoogleStreetView
StopGoogleStreetView
ThemedAboutDialog
ThemedActionButton
ThemedActionsButtons
ThemedAlert
ThemedAlertIcon
ThemedAnimatedCheckbox
ThemedAppBar
ThemedAppBarAvatar
ThemedAvatar
ThemedAvatarPicker
ThemedBottomBar
ThemedButton
ThemedCalendar
ThemedCalendarEntry
ThemedCalendarRangeEntry
ThemedChangeLayerDialog
ThemedCheckboxInput
ThemedChip
ThemedChipGroup
ThemedCodeEditor
ThemedCodeError
ThemedCodeSnippet
ThemedColorPicker
ThemedColumn<T>
ThemedColumn2<T>
ThemedCustomNotificationLocation
ThemedDatePicker
ThemedDateRangePicker
ThemedDateTimePicker
ThemedDateTimeRangeDialog
ThemedDateTimeRangePicker
ThemedDualBar
ThemedDualListInput<T>
ThemedDurationInput
ThemedDynamicAvatarInput
ThemedDynamicConfigurableBlock
ThemedDynamicConfigurableDialog
ThemedDynamicCredentialsInput
ThemedEmojiPicker
ThemedFieldDisplayError
ThemedFile
ThemedFilePicker
ThemedFontHandler
ThemedFontHandler is a helper class to generate a TextTheme with the AppFont of the app.
ThemedGridDelegateWithFixedHeight
ThemedHumanizedDurationLanguage
ThemedHumanizeLanguage
ThemedHumanizeOptions
ThemedIconPicker
ThemedImage
ThemedInputBorder
ThemedInputLikeContainer
ThemedLayout
ThemedLicense
ThemedMapButton
ThemedMapController
ThemedMapDragButton
ThemedMapEvent
ThemedMapEvent is the base class for all events in the map.
ThemedMapToolbar
ThemedMiniBar
ThemedMobileAppBar
ThemedMonth
ThemedMonthPicker
ThemedMonthRangePicker
ThemedMultiSelectInput<T>
ThemedNavigatorAction
ThemedNavigatorItem
ThemedNavigatorLabel
ThemedNavigatorPage
ThemedNavigatorSeparator
ThemedNavigatorWidget
ThemedNotificationIcon
ThemedNotificationItem
ThemedNumberInput
ThemedOrm
ThemedOrm is a helper component to handle Layrz Translations errors.
ThemedPageBuilder<T>
ThemedPageTransition
ThemedPasswordInput
ThemedRadioInput<T>
ThemedRouteMatch
ThemedScaffoldCell
ThemedScaffoldView<T>
ThemedSearchInput
ThemedSelectInput<T>
ThemedSelectItem<T>
ThemedSidebar
ThemedSnackbar
ThemedSnackbarMessenger
ThemedSnackbarMessengerState
ThemedTab
ThemedTable<T>
ThemedTable2<T>
ThemedTable2Controller<T>
ThemedTable2Event<T>
ThemedTable2RefreshEvent<T>
ThemedTable2SortEvent<T>
ThemedTableAction<T>
ThemedTableAvatar
ThemedTabView
ThemedTextInput
ThemedTileLayer
ThemedTimePicker
ThemedTimeRangePicker
ThemedTooltip
WorkInProgressView

Enums

ColorblindMode
ColorPickerType
Enum that represents the different offered color picker types.
EmojiGroup
All Groups
FileType
LayoEmotions
LayrzSupportedLanguage
Month
Sizes
Sizes is enum
ThemedAlertStyle
ThemedAlertStyle defines the style of the alert.
ThemedAlertType
ThemedAlertType defines the type of the alert.
ThemedButtonStyle
ThemedButtonStyle is used to define the style of the button.
ThemedCalendarMode
ThemedCalendarMode is an enum that represents the different modes that the calendar can be displayed in.
ThemedCheckboxInputStyle
ThemedCheckboxInputStyle is the style of the checkbox.
ThemedChipGroupBehavior
ThemedChipStyle
ThemedComboboxPosition
ThemedComboboxPosition is the position of the combobox choices.
ThemedDecimalSeparator
ThemedLayoutStyle
ThemedLayoutStyle is an enum that represents the layout style. The layout style can be dual, sidebar or mini.
ThemedMapToolbarFlow
ThemedMapToolbarFlow defines the flow of the toolbar.
ThemedMobileLayoutStyle
ThemedMobileLayoutStyle is an enum that represents the layout style. The layout style can be dual, sidebar or mini.
ThemedNotificationLocation
ThemedNotificationLocation defeines the location of the notification.
ThemedPlatform
ThemedPlatform is the platform of the app.
ThemedSearchPosition
ThemedSearchPosition is the position of the search input. Basically means the position of the search input when is active.
ThemedSeparatorType
ThemedTable2OnTapBehavior
ThemedTable2OnTapBehavior defines the default behavior when a cell in the table is tapped.
ThemedTabStyle
ThemedTooltipPosition
ThemedUnits
Units of time. Defines each component of a Duration human readable.

Mixins

VxStateUtilsMixin<T extends StatefulWidget>

Extensions

ColorblindFilter on ColorblindMode
DateTimeExtension on DateTime
DateTimeExtension is an extension to extend the DateTime class.
HumanizeDuration on Duration
I18nExtension on BuildContext
NumToSizedBox on num
SizesExt on Sizes
StylingExtension on BuildContext
ThemedColorExtensions on Color
ThemedColorExtensions is an extension to convert a Color to add multiple helpers to convert a Color to a hex string, JSON string, and integer.
ThemedOrn on BuildContext
ThemedUnitTranslation on ThemedUnits

Constants

arabicDigits → const List<String>
kAccentColor → const Color
kAccentColor is the accent/alternative color of Layrz branding.
kAppTitle → const String
kAppTitle is the title of the app.
kBottomBarHeight → const double
kDarkBackgroundColor → const Color
kDarkBackgroundColor is the background color of the app when Brightness.dark.
kDarkSystemUiOverlayStyle → const SystemUiOverlayStyle
kDefaultLayer → const MapLayer
kDefaultLayer is the default layer for the map. Uses OpenStreetMap.
kExtraSmallGrid → const double
kExtraSmallGrid is the extra small grid size.
kGoldenMHeadquarters → const LatLng
kGoldenMHeadquarters is the default location for the map.
kHoverDuration → const Duration
kHoverDuration is the standard duration for animations.
kLargeGrid → const double
kLargeGrid is the large grid size.
kLightBackgroundColor → const Color
kLightBackgroundColor is the background color of the app when Brightness.light.
kLightSystemUiOverlayStyle → const SystemUiOverlayStyle
kLogoAspectRatio → const double
kLogoHeight → const double
kLogoWidth → const double
kMaxZoom → const double
kMaxZoom is the maximum zoom level for the map.
kMediumGrid → const double
kMediumGrid is the medium grid size.
kMinZoom → const double
kMinZoom is the minimum zoom level for the map.
kPageTransitionDuration → const Duration
kPageTransitionDuration is the standard duration for page transitions.
kPrimaryColor → const Color
kPrimaryColor is the main color of Layrz branding.
kSmallGrid → const double
kSmallGrid is the small grid size.
kSnackbarAnimationDuration → const Duration
kThemedDurationSupported → const List<ThemedUnits>
unitMeasures → const Map<ThemedUnits, int>

Properties

globalMimeResolver → MimeTypeResolver
no setter
kListViewPadding EdgeInsets?
kListViewPadding is the suggested padding of the ListView widget. Corrects the padding for iOS
no setter
kThemedPlatform ThemedPlatform
kThemedPlatform is the platform of the app.
no setter

Functions

debugCheckHasThemedSnackbarMessenger(BuildContext context) bool
deleteConfirmationDialog({required BuildContext context, bool isMultiple = false, bool isLoading = false, bool isCooldown = false, VoidCallback? onCooldown, String? customTitle, String? customContent, String? customConfirm, String? customDismiss, int? itemsLength}) Future<bool>
Shows a dialog to confirm the deletion of items (Can be single or multiple) Requires the following translations:
deuteranomalyFilter(double strength) List<double>
deuteranopiaFilter(double strength) List<double>
generateContainerElevation({required BuildContext context, double elevation = 1, double radius = 10, Color? color, Color? shadowColor, bool reverse = false, bool hideOnElevationZero = false}) BoxDecoration
generateContainerElevation is a helper generator for the BoxDecoration of the Container widget.
generateDarkTheme({String theme = "CUSTOM", Color mainColor = kPrimaryColor, AppFont? titleFont, AppFont? bodyFont}) ThemeData
generateDarkTheme is a helper function to generate a ThemeData with the Brightness.dark theme. Will receive the following arguments:
generateLightTheme({String theme = "CUSTOM", Color mainColor = kPrimaryColor, AppFont? titleFont, AppFont? bodyFont}) ThemeData
generateLightTheme is a helper function to generate a ThemeData with the Brightness.light theme. Will receive the following arguments:
generateSwatch({required Color color, bool withShader = false}) MaterialColor
generateSwatch is a helper function to generate a swatch from a color.
generateTheme() PreviewThemeData
getAccentColor({Color? accent}) Color
getAccentColor is a helper function to get the accent color of the app.
getPrimaryColor({Color? primary}) Color
getPrimaryColor is a helper function to get the primary color of the app.
getThemeColor({required String theme, Color color = kPrimaryColor}) MaterialColor
getThemeColor is a helper function to get the theme color of the app.
kThemedTableCanTrue(BuildContext context, dynamic item) bool
openInfoDialog({required BuildContext context, required String appTitle, required LayrzAppLocalizations? i18n, required String companyName}) → void
openInfoDialog is a helper function to open an info dialog using the structure of Layrz.
overrideAppBarStyle({required bool isDark}) → void
overrideAppBarStyle overrides the app bar style. This should be used only when the theme changes from light to dark or vice versa.
overrideAppBarStyleWithColor({required Color color}) → void
overrideAppBarStyleWithColor overrides the app bar style with a custom color. Works exactly the same as overrideAppBarStyle, but with a custom color. This should be used only when the theme changes from light to dark or vice versa.
parseFileToBase64(ThemedFile file) Future<Map<String, String>?>
parseFileToBase64 is a helper function to parse a file to base64. Will return a Map with the keys:
parseFileToByteArray(ThemedFile file) Future<List<int>>
parseBase64ToFile is a helper function to parse a base64 string to a file. Will return a List<int> and will receive a file as PlatformFile instance
pickFile({String? pickDialogTitle, LayrzAppLocalizations? i18n, FileType type = FileType.any, List<String>? allowedExtensions, bool allowMultiple = false}) Future<List<ThemedFile>?>
pickFile is a helper function to pick a file from the device.
previeLoading() Widget
previewStandard() Widget
protanomalyFilter(double strength) List<double>
protanopiaFilter(double strength) List<double>
saveFile({required String filename, required Uint8List bytes, String? saveDialogTitle, LayrzAppLocalizations? i18n}) Future<ThemedFile?>
saveFile is a helper function to save a file to the device.
showThemedAboutDialog({required BuildContext context, String companyName = 'Golden M, Inc,', String? version, }) → void
subdivideLayersPerSource({required List<MapLayer> rawLayers}) List<MapLayer>
subdivideLayersPerSource takes a list of MapLayer and returns a list of MapLayer where each layer has only one source.
tritanomalyFilter(double strength) List<double>
tritanopiaFilter(double strength) List<double>
useBlack({required Color color, double tolerance = 0.5}) bool
useBlack is a helper function to detect if the color should have the content with Colors.White or Colors.black color. Will return a bool indicating if the color should be Colors.White or Colors.black.
validateColor({required Color color}) Color
useBlack is a helper function to detect if the color should have the content with Colors.White or Colors.black color. Will return a Color indicating if the color.

Typedefs

CellColor<T> = Color? Function(T item)
CellColor<T> defines the color of the cell.
CellTap<T> = void Function(T item)
CellTap<T> defines the action when the cell is tapped.
CredentialOnChanged = void Function(Map<String, dynamic>)
EmojiTapCallback = void Function(Emoji emoji)
OnSearch = void Function(String value)
ThemdNavigatorPopFunction = VoidCallback
ThemedDynamicAvatarOnChanged = void Function(AvatarInput? value)
ThemedDynamicFieldConfigurationBlockOnChanged = void Function(CredentialFieldInput)
ThemedMapButtonDragCallback = void Function(Offset offset)
ThemedMapButtonDragNullCallback = void Function(Offset? offset)
ThemedMapControllerListener = void Function(ThemedMapEvent event)
ThemedNavigatorPushFunction = void Function(String path)
ThemedSnackbarCallback = bool Function()
ThemedTable2ControllerListener = void Function(ThemedTable2Event event)
ValueBuilder<T> = String Function(BuildContext context, T item)
ValueBuilder<T> defines the value to display in a column.
ValueBuilder2<T> = String Function(T item)
ValueBuilder2<T> defines the value to display in a column.
WidgetBuilder<T> = Widget Function(BuildContext context, T item)
WidgetBuilder<T> defines the widget to display in a column.