mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-08 00:02:05 +00:00
Show progress dialog when requesting info from server
This commit is contained in:
1 parent
83cc92c422
commit
ca7505796d
2 files changed
+45
No files matched your search
@@ -0,0 +1,21 @@
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void showProgressDialog(BuildContext context, String title, String description) {
|
||||
showDialog(
|
||||
context: context,
|
||||
barrierDismissible: false,
|
||||
child: SimpleDialog(
|
||||
title: Text(title),
|
||||
children: <Widget>[
|
||||
CircularProgressIndicator(),
|
||||
Text(description),
|
||||
],
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
void hideProgressDialog(BuildContext context) {
|
||||
Navigator.pop(context);
|
||||
}
|
||||
Reference in new issue
Block a user