doesnt show a snackbar when creating a community fails, since we show the error message in the dialog itself.

This commit is contained in:
Faris Armoush
2025-06-23 10:11:23 +03:00
parent f8e4c89cdb
commit 4bdb487094

View File

@ -41,11 +41,8 @@ class CreateCommunityDialog extends StatelessWidget {
); );
onCreateCommunity.call(community); onCreateCommunity.call(community);
break; break;
case CreateCommunityFailure(:final message): case CreateCommunityFailure():
Navigator.of(context).pop(); Navigator.of(context).pop();
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(message)),
);
break; break;
default: default:
break; break;