Skip to content

Commit

Permalink
fix: remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Nov 20, 2024
1 parent 007cbfb commit b1880b8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/widgets/layouts/layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,15 @@ class LayoutState extends State<Layout> with TickerProviderStateMixin {
},
));
}
print(
'CLEAR SNACKBARS?? ${currentState.status == ExplorerStatus.dataloaded && previousState.status != ExplorerStatus.error}');
if (currentState.status == ExplorerStatus.dataloaded &&
previousState.status != ExplorerStatus.error) {
ScaffoldMessenger.of(context).clearSnackBars();
}
return true;
},
listener: (context, state) {
print('state:: ${state}');
if (state.status == ExplorerStatus.error) {
ScaffoldMessenger.of(context).clearSnackBars();
print('*********** show snakcbar error*************');
ScaffoldMessenger.of(context).showSnackBar(buildErrorSnackbar(
theme: theme,
text: localization.connectionIssue,
Expand Down

0 comments on commit b1880b8

Please sign in to comment.