Last updated:
0 purchases
loading progress
loading_progress #
A flutter widget of loading progress Indicator. You can easily customize as you want.
Website example >> https://loadingprogress.mustafaturkmen.dev
Usage #
It has a very easy to use.
add this line to pubspec.yaml
dependencies:
loading_progress: ^1.0.2
copied to clipboard
import package
import 'package:loading_progress/loading_progress.dart';
copied to clipboard
Start it with
LoadingProgress.start(context);
copied to clipboard
Stop it with
LoadingProgress.stop(context);
copied to clipboard
Complete Example #
LoadingProgress.start(context);
await Future.delayed(const Duration(seconds: 3));
LoadingProgress.stop(context);
copied to clipboard
Use With Gif #
LoadingProgress.start(context,
gifOrImagePath: 'assets/loading.gif',
);
await Future.delayed(const Duration(seconds: 3));
LoadingProgress.stop(context);
copied to clipboard
Use With Custom Widget #
LoadingProgress.start(context,
widget: Container(
width: MediaQuery.of(context).size.width / 4,
padding: EdgeInsets.all(MediaQuery.of(context).size.width / 13),
child: const AspectRatio(
aspectRatio: 1,
child: const CircularProgressIndicator(),
),
),
);
await Future.delayed(const Duration(seconds: 3));
LoadingProgress.stop(context);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.