mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-27 05:47:55 +00:00
removed snackbar calling in any place in the app except in the intercepter to improve
readability and reduce duplication of error message display logic.
This commit is contained in:
@@ -15,11 +15,11 @@ class AppBody extends StatelessWidget {
|
||||
return BlocConsumer<HomeCubit, HomeState>(
|
||||
listener: (context, state) {
|
||||
if (state is GetSpacesError) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(state.errMessage),
|
||||
),
|
||||
);
|
||||
// ScaffoldMessenger.of(context).showSnackBar(
|
||||
// SnackBar(
|
||||
// content: Text(state.errMessage),
|
||||
// ),
|
||||
// );
|
||||
}
|
||||
},
|
||||
builder: (context, state) {
|
||||
|
||||
Reference in New Issue
Block a user