EasyMixin<T extends StatefulWidget> mixin

Superclass Constraints

Properties

back → void
Pop
no setter
context BuildContext
The location in the tree where this widget builds.
no setterinherited
easyLoader → void
Loader at the center of the screen
no setter
easyRestrictedLoader → void
Loader at the center of the screen that can't be dismissed with back button
no setter
hashCode int
The hash code for this object.
no setterinherited
kHeight double
Height of Keyboard
no setter
kVisible bool
Check if Keyboard is visible.
no setter
mounted bool
Whether this State object is currently in a tree.
no setterinherited
returns navigator
no setter
orientation Orientation
Returns screen orientation
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenH double
Returns screen height
no setter
screenW double
Returns screen width
no setter
theme ThemeData
returns theme
no setter
widget → T
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
override
didUpdateWidget(covariant T oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
inherited
easyColorLoader({required Color color, Color barrierColor = Colors.black45, bool restricted = false}) → void
Loader at the center of the screen
easyDialog<T>({EdgeInsets? padding, EdgeInsets? contentPadding, Color backgroundColor = Colors.white, Color barrierColor = Colors.black54, List<Widget> children = const [], bool barrierDismissible = true, bool useSafeArea = true, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, Widget? closeIcon, bool closeIconVisible = true}) Future<T?>
default padding is (context.w * 0.16).padSH default content padding is [10, 10].padSHV On tap to close dialog is default on closeIcon
easyFuture<Z>({required Future<Z> future(), dynamic returnOnError()?, bool showSnackBarOnError = false, String snackBarMessage(Exception e)?, Color? snackBarColor = Colors.red, ScaffoldFeatureController<Widget, dynamic> snackbar(Exception e)?, bool indicatorWhileFuture = false, bool restrictedIndicator = true, Color? indicatorColor}) Future
will throw an error if showSnackBarOnError is true and snackbarMessage is not given
easySnackBar(String message, {double? fontSize, Color? fontColor, TextStyle? textStyle, Color? backgroundColor, Duration? duration}) ScaffoldFeatureController<SnackBar, SnackBarClosedReason>
Display simple snackbar
initState() → void
Called when this object is inserted into the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop<T extends Object>([T? results]) → void
Pop
popAndPushNamed<T extends Object?, TO extends Object?>(String routeName, {TO? result, Object? arguments}) Future<T?>
PopAndPushNamed
push<T extends Object>(Widget page, {EasyTransitionType? transitionType}) Future<T?>
Push
pushAndRemoveUntil<T extends Object, TO extends Object>(Widget page, bool predicate(Route), {EasyTransitionType? transitionType}) Future<T?>
PushReplace
pushNamed<T extends Object?>(String routeName, {Object? arguments}) Future<T?>
PushNamed
pushReplacement<T extends Object, TO extends Object>(Widget page, {EasyTransitionType? transitionType, TO? result}) Future<T?>
PushReplace
pushReplacementNamed<T extends Object?, TO extends Object?>(String routeName, {TO? result, Object? arguments}) Future<T?>
PushReplaceMentNamed
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
setDesignDimension(double width, double height) → void
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited