null safety

This commit is contained in:
Phaung Phaung
2021-09-10 16:48:20 +06:30
parent 52fe4b4568
commit 0f84fec2f7
12 changed files with 103 additions and 106 deletions

View File

@@ -268,7 +268,7 @@ class _StaffEditorState extends State<StaffEditor> {
_isLoading = true;
});
try {
User _user = await staffModel.findUser(_phoneInput.text);
User? _user = await staffModel.findUser(_phoneInput.text);
if (_user == null) {
showMsgDialog(context, "Error", _phoneInput.text + " not found!");
return;