GrockMixin<T extends StatefulWidget> mixin

Grock Mixin This mixin is used to add grock functionality to a class.

Superclass Constraints

Properties

appLifecycleListener AppLifecycleListener
latefinal
context BuildContext
The location in the tree where this widget builds.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
mounted bool
Whether this State object is currently in a tree.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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
AndroidScrollGlowDisable({required Widget child}) Widget
AndroidScrollGlowDisable method
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
dH(double height) double
Dynamic height
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant T oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
override
dW(double width) double
Dynamic width
emailValidation(String email) bool
email validation method
GrockAdaptiveButton({required String label, required VoidCallback onPressed}) Widget
AdaptiveButton method
GrockAdaptiveButtonWithIcon({required String label, required VoidCallback onPressed, required IconData icon}) Widget
AdaptiveButton method
GrockAdaptiveButtonWithIconAndColor({required String label, required VoidCallback onPressed, required IconData icon, required Color color}) Widget
AdaptiveButton method
GrockAdaptiveScaffold({required Widget body, required Widget? floatingActionButton}) Widget
AdaptiveScaffold method
GrockAnimation({required Widget child, required AnimationController controller, required Animation<double> animation}) Widget
Animation method
GrockAnimationWithCurve({required Widget child, required AnimationController controller, required Animation<double> animation, required Curve curve}) Widget
Animation method
h(double height) double
heroAnimation({required Widget child, required String tag}) Widget
Hero animation method
heroAnimationWithTransition({required Widget child, required String tag}) Widget
Hero animation method
hideKeyboard() → void
Keyboard hidden method
initState() → void
Called when this object is inserted into the tree.
override
isKeyboardClosed() bool
is keyboard open method
isKeyboardOpen() bool
is keyboard open method
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
passwordValidation(String password) bool
password validation method
passwordValidationWithSpecialCharacters(String password) bool
password validation method
phoneValidation(String phone) bool
phone validation method, only 10 digits
phoneValidationWithCountryCode(String phone) bool
phone validation method, only 12 digits
phoneValidationWithCountryCodeAndPlus(String phone) bool
phone validation method, only 12 digits
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
safeArea() EdgeInsets
safe area method
safeAreaBottom() double
safe area bottm method
safeAreaLeft() double
safe area left method
safeAreaRight() double
safe area right method
safeAreaTop() double
safe area top method
safeAreaWithPadding() EdgeInsets
safe area method
safeAreaWithPaddingAndBottom(double bottom) EdgeInsets
safe area method
safeAreaWithPaddingAndLeft(double left) EdgeInsets
safe area method
safeAreaWithPaddingAndTop(double top) EdgeInsets
safe area method
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
setStateIfMounted(void fn()) → void
Dynamic setState method
showGrockAdaptiveBottomSheet({required Widget child}) Future<void>
showAdaptiveBottomSheet method
showGrockAdaptiveBottomSheetWithIcon({required Widget child, required IconData icon}) Future<void>
showAdaptiveBottomSheet method
showGrockAdaptiveDatePicker({required DateTime initialDate, required DateTime firstDate, required DateTime lastDate}) Future<DateTime?>
showAdaptiveDatePicker method
showGrockAdaptiveDialog({required String title, required String content, required String actionLabel, required VoidCallback action}) Future<void>
showAdaptiveDialog method
showGrockAdaptiveDialogWithIcon({required String title, required String content, required String actionLabel, required VoidCallback action, required IconData icon}) Future<void>
showAdaptiveDialog method
showGrockAdaptiveTimePicker({required TimeOfDay initialTime}) Future<TimeOfDay?>
showAdaptiveTimePicker method
showGrockMaterialBanner(String message, {Duration? duration, required String actionLabel, required VoidCallback action}) → void
showMaterialBanner method
showGrockMaterialBannerWithIcon(String message, {Duration? duration, required String actionLabel, required VoidCallback action, required IconData icon}) → void
showMaterialBanner method
showGrockMaterialBannerWithIconAndColor(String message, {Duration? duration, required String actionLabel, required VoidCallback action, required IconData icon, required Color color}) → void
showMaterialBanner method
showGrockSnackBar(String message, {Duration? duration}) → void
showSnackBar method
showGrockSnackBarWithAction(String message, {Duration? duration, required String actionLabel, required VoidCallback action}) → void
showSnackBar method
showGrockSnackBarWithActionAndIcon(String message, {Duration? duration, required String actionLabel, required VoidCallback action, required IconData icon}) → void
showSnackBar method
showGrockSnackBarWithIcon(String message, {Duration? duration, required IconData icon}) → void
showSnackBar method
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toggle(bool value) → void
bool value toggle method
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
w(double width) double
WidgetSize({required Widget child, required dynamic callback(Size size, Offset offset)}) Widget
Grock Get Widget Size

Operators

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