moon_design library

Moon Design for Flutter

Classes

AnimatedIconTheme
BaseSegmentedTabBar
ColorTweenWithPremultipliedAlpha
MoonAccordion<T>
MoonAccordionTheme
MoonAlert
MoonAlertTheme
MoonAuthCode
MoonAuthCodeTheme
MoonAvatar
MoonAvatarTheme
MoonBaseControl
MoonBorders
MoonBottomSheet
The Moon Design bottom sheet.
MoonBottomSheetState
MoonBottomSheetTheme
MoonBreadcrumb
MoonBreadcrumbItem
MoonButton
MoonButtonTheme
MoonCarousel
MoonCarouselExtentMetrics
The metrics for the MoonCarouselScrollController.
MoonCarouselScrollController
Scroll controller for MoonCarousel.
MoonCarouselScrollPhysics
The physics for the MoonCarousel.
MoonCarouselTheme
MoonCheckbox
MoonCheckboxTheme
MoonChip
MoonChipTheme
MoonCircularLoader
MoonCircularLoaderTheme
MoonCircularProgress
MoonCircularProgressIndicator
MoonCircularProgressTheme
MoonClipSquircleRect
MoonColors
MoonDotIndicator
MoonDotIndicatorTheme
MoonDrawer
MoonDrawerTheme
MoonDropdown
MoonEffectsTheme
MoonErrorMessage
MoonErrorMessages
MoonFilledButton
MoonFocusEffect
MoonFormTextInput
MoonFormTextInputConfiguration
MoonIcon
MoonIcons
MoonLinearLoader
MoonLinearLoaderTheme
MoonLinearProgress
MoonLinearProgressIndicator
MoonLinearProgressTheme
MoonMenuItem
MoonMenuItemTheme
MoonModal
MoonModalBottomSheetRoute<T>
MoonModalRoute<T>
MoonModalTheme
MoonOpacities
MoonOutlinedButton
MoonPillTab
MoonPillTabStyle
MoonPopover
MoonPopoverState
MoonPopoverTheme
MoonProgressPin
MoonProgressPinTheme
MoonPulseEffect
MoonRadio<T>
MoonRadioTheme
MoonSegmentedControl
MoonSegmentedControlTheme
MoonShadows
MoonSizes
MoonSquicleBorderSide
MoonSquircleBorder
MoonSquircleBorderRadius
MoonSquircleRadius
MoonSwitch
MoonSwitchTheme
MoonTab
MoonTabBar
MoonTable
MoonTableColumn
MoonTableFooter
MoonTableHeader
MoonTableRow
MoonTableRowLabel
MoonTabStyle
MoonTag
MoonTextArea
MoonTextAreaTheme
MoonTextButton
MoonTextInput
MoonTextInputGroup
MoonTextInputGroupTheme
MoonTextInputTheme
MoonTheme
MoonToast
MoonToastTheme
MoonTokens
MoonTooltip
MoonTooltipTheme
MoonTypography
PinStyle
Segment
SegmentStyle
ShapeDecorationWithPremultipliedAlpha
TextInputType
The type of information for which to optimize the text input control.

Enums

AuthFieldShape
BorderAlign
ErrorAnimationType
MoonAccordionSize
MoonAvatarSize
MoonBadgeAlignment
MoonButtonSize
MoonChipSize
MoonCircularLoaderSize
MoonCircularProgressSize
MoonDropdownAnchorPosition
MoonLinearLoaderSize
MoonLinearProgressSize
MoonPopoverPosition
MoonSegmentedControlSize
MoonSwitchSize
MoonTabBarSize
MoonTabBarVariant
MoonTableRowSize
MoonTagSize
MoonTextInputGroupOrientation
MoonTextInputSize
MoonToastVariant
MoonTooltipPosition
SmartDashesType
Indicates how to handle the intelligent replacement of dashes in text input.
SmartQuotesType
Indicates how to handle the intelligent replacement of quotes in text input.
TextCapitalization
Configures how the platform keyboard will select an uppercase or lowercase keyboard.
TextInputAction
An action the user has requested the text input control to perform.

Properties

b8ioDarkColors MoonColors
8io-darkColors - brand colors for the dark theme.
final
b8ioLightColors MoonColors
8io-lightColors - brand colors for the light theme.
final
bcDarkColors MoonColors
bc-darkColors - brand colors for the dark theme.
final
bcLightColors MoonColors
bc-lightColors - brand colors for the light theme.
final
bombayWalletDarkColors MoonColors
bombay-wallet-darkColors - brand colors for the dark theme.
final
bombayWalletLightColors MoonColors
bombay-wallet-lightColors - brand colors for the light theme.
final
empireDarkColors MoonColors
empire-darkColors - brand colors for the dark theme.
final
empireLightColors MoonColors
empire-lightColors - brand colors for the light theme.
final
hub88Colors MoonColors
hub88Colors - brand colors for the dark theme.
final
iconsMap Map<String, IconData>
Convenience Map to facilitate the demonstration of icons.
final
mdsDarkColors MoonColors
mds-darkColors - brand colors for the dark theme.
final
mdsLightColors MoonColors
mds-lightColors - brand colors for the light theme.
final
partnersColors MoonColors
partnersColors - brand colors for the dark theme.
final
payIoDarkColors MoonColors
pay.io-darkColors - brand colors for the dark theme.
final
payIoLightColors MoonColors
pay.io-lightColors - brand colors for the light theme.
final
sbDarkColors MoonColors
sb-darkColors - brand colors for the dark theme.
final
sbLightColors MoonColors
sb-lightColors - brand colors for the light theme.
final
taMiniBettingColors MoonColors
ta-mini-bettingColors - brand colors for the dark theme.
final
tradeartColors MoonColors
tradeartColors - brand colors for the dark theme.
final

Functions

colorPremulLerp(Color? a, Color? b, double t) Color?
Workaround for Flutter's use of straight alpha instead of premultiplied alpha for color lerping.
showMoonModal<T>({bool barrierDismissible = true, bool useRootNavigator = true, bool useSafeArea = true, Color? barrierColor, Curve? transitionCurve, Duration? transitionDuration, Offset? anchorPoint, RouteSettings? routeSettings, String? barrierLabel = "Dismiss", required BuildContext context, required WidgetBuilder builder}) Future<T?>
Displays a modal overlay over the app's current content, incorporating entrance and exit animations, modal barrier color, and modal barrier behavior, enabling dialog dismissal via barrier taps. Intended for use in conjunction with MoonModal.
showMoonModalBottomSheet<T>({required BuildContext context, bool enableDrag = true, bool isExpanded = false, bool isDismissible = true, bool useRootNavigator = false, BorderRadiusGeometry? borderRadius, Color? backgroundColor, Color? barrierColor, Decoration? decoration, double? closeProgressThreshold, double? height, Duration? transitionDuration, Curve? transitionCurve, RouteSettings? settings, String? semanticLabel, AnimationController? animationController, required WidgetBuilder builder}) Future<T?>
Displays a Moon Design modal bottom sheet.

Typedefs

ColumnSortCallback = void Function(int columnIndex, bool ascending)
MoonAuthCodeErrorBuilder = Widget Function(BuildContext context, String? errorText)
MoonBaseControlBuilder = Widget Function(BuildContext context, bool isEnabled, bool isHovered, bool isFocused, bool isPressed)
MoonCustomSegmentBuilder = Widget Function(BuildContext context, bool isSelected)
MoonCustomTabBuilder = Widget Function(BuildContext context, bool isSelected)
MoonFormTextInputValidationStatusCallback = void Function(String? validationErrorText)
MoonTextAreaErrorBuilder = Widget Function(BuildContext context, String? errorText)
MoonTextInputErrorBuilder = Widget Function(BuildContext context, String? errorText)
MoonTextInputGroupErrorBuilder = Widget Function(BuildContext context, List<String> errorText)
OnScrollControllersReady = void Function(ScrollController verticalController, ScrollController horizontalController)
WidgetWithChildBuilder = Widget Function(BuildContext context, Animation<double> animation, Widget child)