loading_progress 1.0.0 copy "loading_progress: ^1.0.0" to clipboard
loading_progress: ^1.0.0 copied to clipboard

A new Flutter project.

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.0

import package


   import 'package:loading_progress/loading_progress.dart';

Start it with

   LoadingProgress.start(context);

Stop it with

   LoadingProgress.stop(context);

Complete Example #

   LoadingProgress.start(context);
   await Future.delayed(const Duration(seconds: 3));
   LoadingProgress.stop(context);

gif_1

Use With Gif #

   LoadingProgress.start(context,
     gifOrImagePath: 'assets/loading.gif',
   );
   await Future.delayed(const Duration(seconds: 3));
   LoadingProgress.stop(context);

gif_2

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);