![]() |
VOOZH | about |
Flutter ProgressDialog is combination of Progressbar and Alert Dialog that indicates that the application is busy. we have seen this particular widget many times in many application, like when ever we are downloading, sending request ,posting content, cancelling order, etc.
Create a new Flutter application using command Prompt. For creating a new app, write flutter create YOUR_APP_NAME and run this command.
flutter create Progress_flutterTo know more about it refer this article: Creating a Simple Application in Flutter
To add the dependency to the pubspec.yaml file, add shimmer as a dependency in the dependencies part of the pubspec.yaml file as shown below:
dependencies:
progress_dialog_null_safe: ^3.0.0
Now run the below command in terminal.
flutter pub getUse the below line of code in the main.dart file, to import the shimmer dependency :
import 'package:progress_dialog_null_safe/progress_dialog_null_safe.dart';;-
-
-
-
-
Output :
To know more about ElevatedButton in flutter refer this article: Flutter – ElevatedButton Widget