A new Flutter widget for show and hide loader from android side.
- showing flutter loader dialog
To use this package, add show_loader_dialog as a dependency in your pubspec.yaml file.
Android | iOS | MacOS | Web | Linux | Windows |
---|---|---|---|---|---|
✔️ | ✔️ |
Minimal example:
ElevatedButton(
onPressed: () {
CommonDialog.showLoader(true);
Future.delayed(
const Duration(seconds: 5),
() {
CommonDialog.showLoader(false);
},
);
},
child: const Text("show loader"),
),