mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
21 lines
No EOL
471 B
Dart
21 lines
No EOL
471 B
Dart
|
|
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);
|
|
} |