sync_ease library

Classes

Ease<T>
The Ease class provides a simple state management system with additional features such as error handling, loading state, and batch operations.
EaseBuilder<T>
The EaseBuilder class is a StatefulWidget that rebuilds when the associated Ease state changes.
EaseBuilderState<T>
EaseHelper
The EaseHelper class provides utility functions for retrieving screen dimensions.
EaseLogger
A utility class for logging messages with different statuses.
LogicBuilder
The LogicBuilder class is a StatefulWidget that rebuilds when the associated SyncEaseLogic state changes.
LogicBuilderState
SyncEaseApp
A custom MaterialApp widget with simplified setup for SyncEase applications.
SyncEaseLogic
The SyncEaseLogic class manages the registration and retrieval of logic instances for state management.
Utils
A utility class containing helper functions and variables.

Enums

ConsoleStatus
Enumeration for different console status types.

Functions

back({dynamic result, Map<String, dynamic>? arguments}) → void
Navigate back to the previous route with an optional result or arguments.
showSyncAlertBox({required WidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, Offset? anchorPoint, TraversalEdgeBehavior? traversalEdgeBehavior}) → dynamic
Shows an alert dialog using showDialog without requiring a BuildContext.
showSyncDatePicker({DateTime? initialDate, required DateTime firstDate, required DateTime lastDate, DateTime? currentDate, DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar, SelectableDayPredicate? selectableDayPredicate, String? helpText, String? cancelText, String? confirmText, Locale? locale, bool barrierDismissible = true, Color? barrierColor, String? barrierLabel, bool useRootNavigator = true, RouteSettings? routeSettings, TextDirection? textDirection, TransitionBuilder? builder, DatePickerMode initialDatePickerMode = DatePickerMode.day, String? errorFormatText, String? errorInvalidText, String? fieldHintText, String? fieldLabelText, TextInputType? keyboardType, Offset? anchorPoint, ValueChanged<DatePickerEntryMode>? onDatePickerModeChange, Icon? switchToInputEntryModeIcon, Icon? switchToCalendarEntryModeIcon}) → dynamic
Shows a date picker using showDatePicker without requiring a BuildContext.
showSyncSnackBar(SnackBar snackBar) → dynamic
Shows a SnackBar using the ScaffoldMessenger without requiring a BuildContext.
to(Widget page) → void
Navigate to a page.
toClearAndPush(Widget page, {RouteSettings? settings}) → void
Clear all existing routes and push the provided page onto the navigation stack, optionally with custom settings.
toClearAndPushNamed(String routeName, {Map<String, dynamic>? arguments}) → void
Clear all existing routes and push a named route onto the navigation stack.
toClearAndPushWithFade(Widget page, {RouteSettings? settings}) → void
Removes all routes from the navigation stack and pushes the specified page with a fade transition with optional arguments without requiring a BuildContext.
toNamed(String routeName, {Map<String, dynamic>? arguments}) → void
Navigate to a named route with optional arguments.
toPushAndClearAll(Widget page, {RouteSettings? settings}) → void
Push the provided page onto the navigation stack and remove all routes until a specified predicate is met.
toPushAndClearUntil(Widget page, RoutePredicate predicate, {RouteSettings? settings}) → void
Push the provided page onto the navigation stack and remove routes until a specified predicate is met.
toPushNamedAndClearUntil(String routeName, RoutePredicate predicate, {Map<String, dynamic>? arguments}) → void
Push a named route onto the navigation stack and remove routes until a specified predicate is met.
toReplace(Widget page, {Map<String, dynamic>? arguments}) → void
Replace the current page with the provided page widget, optionally passing arguments.
toReplaceNamed(String routeName, {Map<String, dynamic>? arguments}) → void
Replace the current route with a named route, optionally passing arguments.