update
This commit is contained in:
parent
27f00e43a7
commit
3572f90b24
24 changed files with 290 additions and 257 deletions
10
lib/functions/checkexisting_function.dart
Normal file
10
lib/functions/checkexisting_function.dart
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import 'package:flutter/widgets.dart';
|
||||
|
||||
Future<bool> checkExisting(dynamic table, TextEditingController controller) async {
|
||||
try {
|
||||
final uuid = await table.getUUID(controller.text);
|
||||
return uuid.isNotEmpty;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue