OkitoWidgets mixin
The way to use widgets like snackbar or bottom modal sheet without context, we have this mixin. We have to override the context in Okito.
Properties
- context → BuildContext?
-
The BuildContext:context of your app.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showDialog<
T> ({required Widget child, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, RouteSettings? routeSettings}) → Future< T?> - Displays a Material dialog above the current contents of the app, with Material entrance and exit animations, modal barrier color, and modal barrier behavior (dialog is dismissible with a tap on the barrier).
-
showModal<
T> ({required Widget child, Color? backgroundColor, Color? barrierColor, Clip? clipBehavior, double? elevation, bool enableDrag = false, bool isDismissible = true, bool isScrollControlled = false, RouteSettings? routeSettings, ShapeBorder? shape, AnimationController? transitionAnimationController, }) → Future< T?> - Shows a modal material design bottom sheet.
-
showSnackBar(
{required SnackBar snackBar, bool hideCurrentSnackbar = true}) → void - Shows a SnackBar across all registered Scaffolds.
-
showToast(
{required String text, Duration? duration, SnackBarAction? action, TextStyle? textStyle, Color? backgroundColor, bool hideCurrentSnackbar = true}) → void - Shows a SnackBar across all registered Scaffolds but instead of SnackBar widget, you can just give it a string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited