handle null value for email (#185)

This commit is contained in:
Neeraj Gupta 2022-02-07 21:32:10 +05:30 committed by GitHub
parent a4e4d89811
commit 6b64d27e97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@ class _SharingDialogState extends State<SharingDialog> {
child: button(
"add",
onPressed: () {
_addEmailToCollection(_email.trim());
_addEmailToCollection(_email?.trim() ?? '');
},
),
),