update
This commit is contained in:
parent
4753926c34
commit
d3a4b45603
9 changed files with 157 additions and 46 deletions
13
lib/functions/checkresult_function.dart
Normal file
13
lib/functions/checkresult_function.dart
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:pharmacy_mobile/widgets/snackbar_widget.dart';
|
||||
|
||||
Future<bool> checkResult(BuildContext context, List list, String name) async {
|
||||
if (list.isEmpty) {
|
||||
if (context.mounted) {
|
||||
showNotification(context, 'Error: No $name Found', false);
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue