general_utilities library

Classes

Animator
A single animator widget with latency duration you can wrap ListView or GridView items with this widget to add smooth animation.
EmptyStateWidget
Empty state widget useful in reduce boilerplate code just pass image and optional title to display an empty state to your user.
FooterLayout
A CustomMultiChildLayout with body and footer useful to fixing button at the bottom and make the body scrollable. check example project for visual demo
GridViewWidget
Create a GridView easily and cut boilerplate code just pass the children list and custom your gridview values.
LoadingIndicator
An Overlay widget with two static functions show to make loading indicator visible hide to make loading indicator not visible _ProgressIndicator could be replaced by any custom indicator widget if current platform is Android => return CircularProgressIndicator if current platform is IOS => return CupertinoActivityIndicator for example you can pass one of https://pub.dev/packages/flutter_spinkit
Logger
The source of this class belongs to JUNTO app Top level methods to log into app with method name.
OtpWidget
An otp widget helps to enter auth code You need to pass count And MediaQuery.of(context).size.width as screenWidth Widget will define field width and height upon screen width.
PrintLogger
ResponsiveLayoutWidget
Responsive Widget you can pass two versions of widgets one for Mobile and the other for Tablet and this widget will handle that
RestartWidget
Restart app widget useful to switch app languages
SnackBarWidget
An Overlay helper widget to display snackbar without Scaffold show displaying snackbar with custom values and action callback hide make snackbar not visible after passed duration
SpaceWidget
A space widget to add spacing between widgets in Row or Column if isVertical is true it will be a vertical spacing fit to Column else if isVertical is false it will be a horizontal spacing fit to Row for performance you can call const constructor.
WidgetAnimator
WidgetRouteAnimation

Constants

kDefaultEmptyStateSize → const double
250.0
kDimenExtra → const double
32.0
kDimenLarge → const double
24.0
kDimenMedium → const double
8.0
kDimenNano → const double
This class contains default spaces and dimens according to the Material Design Guidelines.
2.0
kDimenNormal → const double
16.0
kDimenSmall → const double
4.0
kSnackBarSize → const double
kBottomNavigationBarHeight

Properties

duration Duration
read / write
logger Logger
read / write
timer Timer
read / write

Functions

wait() → dynamic

Enums

AnimationDirection
A MaterialPageRoute widget with ready made animations just pass AnimationDirection with builder method and it will handle the rest.
OtpBorder
Types of available borders of OTP field RECT or UNDERLINE