| @@ -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; | |||