mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
Cleanup - delete unused functions
This commit is contained in:
parent
b365d8dbfb
commit
87e5499d09
@ -53,12 +53,6 @@ Future<void> confirmationDialog(String title, String text, {String acceptText, S
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void showMessage(BuildContext context, String message) {
|
|
||||||
Scaffold.of(context).showSnackBar(SnackBar(
|
|
||||||
content: Text(message),
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Future<void> showInfoDialog(BuildContext context, String title, String description, {IconData icon = FontAwesomeIcons.info, String info, Function onDismissed}) async {
|
Future<void> showInfoDialog(BuildContext context, String title, String description, {IconData icon = FontAwesomeIcons.info, String info, Function onDismissed}) async {
|
||||||
|
|
||||||
@ -147,25 +141,6 @@ Future<void> showTimeoutError(BuildContext context) async {
|
|||||||
await showServerError(I18N.of(context).timeout, I18N.of(context).noResponse);
|
await showServerError(I18N.of(context).timeout, I18N.of(context).noResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
void showFormDialog(String title, {GlobalKey<FormState> key, List<Widget> fields, List<Widget> actions, Function callback}) {
|
void showFormDialog(String title, {GlobalKey<FormState> key, List<Widget> fields, List<Widget> actions, Function callback}) {
|
||||||
|
|
||||||
BuildContext dialogContext;
|
BuildContext dialogContext;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user