You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
558 B
Dart
27 lines
558 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
AlertDialog _alert = AlertDialog(
|
|
content: Row(
|
|
children: [
|
|
CircularProgressIndicator(),
|
|
Container(margin: EdgeInsets.only(left: 7), child: Text("Loading...")),
|
|
],
|
|
),
|
|
);
|
|
|
|
class ProgressDialogUtil {
|
|
static showProgressDialog(BuildContext context) {
|
|
showDialog(
|
|
barrierDismissible: false,
|
|
context: context,
|
|
builder: (BuildContext context) {
|
|
return _alert;
|
|
},
|
|
);
|
|
}
|
|
|
|
static hideProgressDialog(BuildContext context) {
|
|
Navigator.pop(context);
|
|
}
|
|
}
|