load
Global loading widget, which can be used through simple configuration.
Pure flutter library, not use native code.
It is similar to OKToast in use.
ScreenShot
Usage
- install
Add to yaml
version is
- import
- wrap your application
see example/lib/main.dart
- show or hide dialog
Advanced Usage
Custom Loading Widget
Using
LoadingThemeData
and loadingWidgetBuilder
Custom some config
All params is optional
PARAMS | TYPE | DEFAULT VALUE | DESC |
---|---|---|---|
backgroundColor | Color | Colors.black54 | Background transparent mask |
tapDismiss | bool | true | Will it close when touching the background? |
loadingBackgroundColor | Color | Colors.white | Background color for the center Loading Widget |
loadingPadding | EdgeInsets | EdgeInsets.all(8.0) | Padding for the center Loading Widget |
loadingSize | Size | Size(55,55) | Size for the center Loading Widget |
animDuration | Duration | Duration(milliseconds: 300) | Show/Hide Time Duration |