Browse Source

verify form add

master
daivph 5 years ago
parent
commit
1f3f5aaae9
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      lib/presentation/screens/actions/nursery/sc_edit_action_nursery.dart

+ 4
- 0
lib/presentation/screens/actions/nursery/sc_edit_action_nursery.dart View File

@@ -280,6 +280,10 @@ class _EditActionNurseryState extends State<EditActionNurseryScreen> {
shape: RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(8.0)),
onPressed: () {
if (_workerNameController.text.isEmpty ||
_trayNumberController.text.isEmpty) {
return;
}
NurseryDetail _nurseryDetail = NurseryDetail()
..workerName = _workerNameController.text
..trayNumber = _trayNumberController.text;

Loading…
Cancel
Save