smart_progress_bar

Creator: coderz1093

Last updated:

0 purchases

smart_progress_bar Image
smart_progress_bar Images

Languages

Categories

Add to Cart

Description:

smart progress bar

smart_progress_bar #
Simple progress hud that you can easily use the library in many ways. This progress hud
using the native progress hud library.
Getting Started #
This project is a starting point for a Dart
package,
a library module containing code that can be shared easily across
multiple Flutter or Dart projects.
For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.
Example #

Usage #
First you need to add a library to pubspec.yaml:
dependencies:
smart_progress_bar: any
copied to clipboard
Now you can call the progress bar while your code is executed in the following way:
showProgressBar(whileRun: () async {
//any code
});
copied to clipboard
or
showProgressBar(
backgroundColor: Colors.black,
textColor: Colors.white,
text: "Any hint",
whileRun: () {
//any code
},
);
copied to clipboard
Or you can use the progress bar by adding it to your asynchronous function:
final res = await validateAndSubmit().showProgressBar();
copied to clipboard
All fields:
showProgressBar(
backgroundColor: Colors.black,
textColor: Colors.white,
text: "Any hint",
backgroundColorHex:"#000000",
textColorHex:"#ffffff",
whileRun: () {
//any code
},
);

//

Function<T>.showProgressBar(
backgroundColor: Colors.black,
textColor: Colors.white,
text: "Any hint",
backgroundColorHex:"#000000",
textColorHex:"#ffffff"
);
copied to clipboard
Thanks #
Thank you so much MohammedAlimoor for native_progress_hud library 🙂

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.