modules/app/app library
Classes
- AnimationStagger
- A utility class that manages staggered animations by incrementing durations.
- AppLocalizations
-
Callers can lookup localized strings with an instance of AppLocalizations
returned by
AppLocalizations.of(context)
. - AppModule
- Root module of the application.
- BoolConverter
- Implements serialization and deserialization for bool from bool and int and converts it to an int.
- ConditionalWrapper
- A widget that conditionally wraps its child with a wrapper widget. If condition is false, just the child will be returned.
- ContextColorMapper
- A ColorMapper that uses the current context to resolve colors based on the active theme. Used in SvgUtils.themed to resolve colors in SVG images.
- DeclarativeEdgeInsets
- Base class for declarative padding.
- DestructiveDialogAction
- Represents a destructive action that can be taken in a dialog.
- DialogAction
- Represents an action that can be taken in a dialog.
- GenericDialog
- A generic dialog that can be used to display information to the user.
- HexColorConverter
- Implements serialization and deserialization for Color from and to String.
- HoverableWidget
- Base class for all HoverableWidgets.
- HoverBuilder
- A builder to adapt to the widget being hoverd or not.
- InitialRouterOutlet
-
A widget that wraps a
RouterOutlet
with the ability to activate a child route on default. - OffsetOnHover
- Offsets the child to the given offset when hovered.
- PaddingAll
- Padding for all sides of a child.
- PaddingBottom
- Bottom padding for a child.
- PaddingHorizontal
- Horizontal padding for a child.
- PaddingLeft
- Left padding for a child.
- PaddingRight
- Right padding for a child.
- PaddingTop
- Top padding for a child.
- PaddingVertical
- Vertical padding for a child.
- PrimaryDialogAction
- Represents a primary action that can be taken in a dialog.
- ScaleOnHover
- Scales the child to the given scale when hovered.
- SecondaryDialogAction
- Represents a secondary action that can be taken in a dialog.
- Sidebar
- Navigation sidebar for the application.
- SidebarScreen
- A screen that wraps its children in a Sidebar.
- SidebarTarget
- A target in the Sidebar that navigates to a specific route.
- Spacing
- A utility class for creating consistent spacing throughout your Flutter app.
- TitleBar
- A bar displaying the current route's title and the current user's name and profile picture.
- TransformOnHover
- Transforms the child to the given transform when hovered.
- UnixTimestampConverter
- Implements serialization and deserialization for DateTime from and to int.
Extensions
- ActiveExt on IModularNavigator
- Extension to add a method to check if a route is active.
-
AnimateUtils
on List<
Widget> - Adds default animation to a list of widgets.
- AnimateX on Widget
- Adds default animation to a widget.
- ButtonUtils on CircularProgressIndicator
- Provides button extensions on CircularProgressIndicator.
- ContextUtils on BuildContext
- Adds a AppLocalizations getter to BuildContext.
-
InsertExt
on Iterable<
T> -
Extension to add functionality for inserting an element between each pair of elements in an
Iterable
. - ShimmerX on Widget
- Adds shimmer animation to a widget.
-
SpaceExt
on List<
Widget> - Extension to add spacing functionality for a list of widgets.
- SpacingDoubleExt on double
-
Provides a set of utility methods to work with spacing in a more expressive way.
e.g.
10.5.spacing
instead ofSizedBox(width: 10.5, height: 10.5)
- SpacingIntExt on int
-
Provides a set of utility methods to work with spacing in a more expressive way.
e.g.
10.spacing
instead ofSizedBox(width: 10, height: 10)
-
StateUtils
on State<
StatefulWidget> - Adds a AppLocalizations getter to State.
- StringTextExt on String
- Provides a set of utility methods to work with text in a more expressive way.
- SvgUtils on SvgGenImage
- Utility class for theming SVG images.
- TextExt on Text
- Provides a set of utility methods to work with text in a more expressive way.
- WidgetExt on Widget
- Provides generic widget utilities.
Constants
- kDefaultHoverCursor → const SystemMouseCursor
- The default cursor used when hovering over a widget.
Properties
- defaultTransition → CustomTransition
-
The default page transition for the application.
final
-
kRouteObserver
→ RouteObserver<
Route> -
Global route observer for the application.
final
Functions
-
captureEvent(
String eventName, {Map< String, Object> ? properties}) → Future<void> - Captures a posthog event.
-
lookupAppLocalizations(
Locale locale) → AppLocalizations -
showAlertDialog(
BuildContext context, {required String title, required String message, String? confirmLabel}) → Future< void> -
Shows an alert dialog with the given
title
andmessage
to the user. The dialog will have an OK button to dismiss it. -
showAnimatedDialog<
T> ({required BuildContext context, required RoutePageBuilder pageBuilder}) → Future< T?> - Shows a dialog with default animations.
-
showConfirmationDialog(
BuildContext context, {required String title, required String message, String? confirmLabel, String? cancelLabel}) → Future< bool> -
Shows a confirmation dialog with the given
title
andmessage
to the user. -
showGenericDialog<
T> (BuildContext context, {required String title, required Widget content, List< DialogAction> ? actions, bool shrinkWrap = true}) → Future<T?> -
Shows a GenericDialog with the given
title
andcontent
to the user.
Typedefs
- TitleBuilder = String Function(BuildContext context)
- Returns the localized title of the current route.
- Translator = String Function(BuildContext context)
- A function that returns a translated string based on the BuildContext.