infinity_widgets library

A refined widget toolkit delivering production-ready UI elements for modern application development.

Classes

IApplicationIcon
An application icon widget that follows Infinity's design system.
IBackButton
A back button widget that follows Infinity's design system.
IBottomTabBar
A bottom tab bar widget that follows Infinity's design system.
IBoundedBox
A container widget that centers and constrains its child's width and follows Infinity's design system.
IBoxedList
A boxed list widget that follows Infinity's design system. Combines a card container with optional header and divider-separated children.
IButton
A customizable button widget that follows Infinity's design system.
ICard
A customizable card widget that follows Infinity's design system.
ICloseButton
A close button widget that follows Infinity's design system.
IDialogHeader
A header widget for modal dialogs that follows Infinity's design system. Displays a title with optional back button and required close button.
IDivider
A horizontal divider line that follows Infinity's design system.
IHeaderBar
A header bar widget that follows Infinity's design system.
ILazyIndexedStack
A lazy-loading version of IndexedStack that only builds children when they are first displayed. This helps improve performance by avoiding building all children upfront.
ILazyIndexedStackState
IListItem
A list item widget that follows Infinity's design system.
IListItemChevron
A directional chevron icon widget that follows Infinity's design system.
IMessageDialog
A message dialog widget that follows Infinity's design system.
IModalSheetPage
A modal sheet page that follows Infinity's design system.
InfinityColors
This class provides a color system for the Infinity. This class is not meant to be instantiated and contains only static members.
InfinityDimens
This class provides a dimension system for Infinity. This class is not meant to be instantiated.
InfinityTheme
This class provides a theme system for the Infinity. This class is not meant to be instantiated.
InfinityTypography
This class provides a typography system for Infinity. This class is not meant to be instantiated.
IResponsiveScaffold
A responsive scaffold that adapts its layout based on screen size and following Infinity's design system.
IStatusPage
A status page widget that follows Infinity's design system. Displays a centered icon and/or title message.
ITabBar
A tab bar widget that follows Infinity's design system.
ITabItem
Represents a tab item with an icon and label in Infinity's design system.
IVerticalDivider
A vertical divider line that follows Infinity's design system.
MingCuteIcons
NonScrollingWoltModalSheetPage
A NonScrollingWoltModalSheetPage is a specialized page for the WoltModalSheet that is designed to display content which is flexible in height but unlikely to require scrolling.
SliverWoltModalSheetPage
The page classes are responsible for creating a modal sheet page within the context of the WoltModalSheet. It's designed to represent a visually layered structure with clear navigation and content display.
WoltAlertDialogType
WoltBottomSheetType
A customizable bottom sheet modal that extends WoltModalType.
WoltDialogType
A customizable dialog modal that extends WoltModalType.
WoltModalSheet<T>
WoltModalSheetAnimationStyle
Motion animation styles for both pagination and scrolling within a Wolt Modal Sheet.
WoltModalSheetPage
WoltModalSheetPage is a specialized subclass of SliverWoltModalSheetPage, designed for scenarios where the main content of a modal sheet is a single non-sliver widget. This class provides a convenient shortcut for creating a modal sheet page with standard box widgets, encapsulating them in a sliver-compatible format.
WoltModalSheetPaginationAnimationStyle
Defines the animation styles for pagination transitions within Wolt Modal Sheet.
WoltModalSheetRoute<T>
WoltModalSheetScrollAnimationStyle
Defines the animation styles for scrolling within Wolt Modal Sheet when the top bar component of the modal sheet is set to enable becoming visible as the user scrolls.
WoltModalSheetState
WoltModalSheetThemeData
WoltModalType
An abstract base class for creating different types of modals within a UI.
WoltSideSheetType
A customizable side sheet modal that extends WoltModalType.

Enums

BackgroundType
Defines the type of background surface in the Infinity.
ResponsiveStates
Defines the possible responsive states for the scaffold layout.
StatusType
Defines status types for displaying different states of operations or feedback.
WoltModalDismissDirection
The direction in which a WoltModalSheet can be dismissed when drag to dismiss is enabled.

Functions

showAboutDialogModal({required BuildContext context, required String applicationName, required String version, Widget? applicationIcon, List<String> developers = const <String>[], String? website, String? issueUrl, String? license}) → void
Shows an about dialog modal with application information, credits and legal sections. Adapts between bottom dialog and centered dialog based on screen width.
showDialogModal({required BuildContext context, required WoltModalSheetPageListBuilder pageListBuilder, bool useSafeArea = true}) → void
Shows a dialog modal that adapts between bottom dialog and centered dialog based on screen width.
showModal({required BuildContext context, required WoltModalSheetPageListBuilder pageListBuilder, bool useSafeArea = true}) → void
Shows a modal sheet that adapts between bottom sheet and side sheet based on screen width.

Typedefs

ResponsiveBuilder = Widget? Function(BuildContext context, ResponsiveStates state)
Function signature for building responsive widgets based on the current state.
ResponsiveHeaderBarBuilder = PreferredSizeWidget? Function(BuildContext context, ResponsiveStates state)
Function signature for building responsive header bars based on the current state.
WoltModalSheetPageListBuilder = List<SliverWoltModalSheetPage> Function(BuildContext context)
Signature for a function that builds a list of SliverWoltModalSheetPage based on the given BuildContext.
WoltModalTypeBuilder = WoltModalType Function(BuildContext context)
Signature for a function that returns the WoltModalType based on the given BuildContext.