loader 1.0.0 loader: ^1.0.0 copied to clipboard
Run asynchronous code before building your widget. Loader will rebuild your widget after the loading is complete.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add loader
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
loader: ^1.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:loader/loader.dart';