summaryrefslogtreecommitdiffstats
path: root/lib/core
diff options
context:
space:
mode:
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/utils/widgets/back_button.dart4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/core/utils/widgets/back_button.dart b/lib/core/utils/widgets/back_button.dart
index 8f0862b..9d7db02 100644
--- a/lib/core/utils/widgets/back_button.dart
+++ b/lib/core/utils/widgets/back_button.dart
@@ -7,9 +7,7 @@ class CustomBackButton extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
return BackButton(
onPressed: () {
- ref.read(appProvider.notifier).update(
- (state) => state = AppState.home,
- );
+ ref.read(appProvider.notifier).update(AppState.home);
},
);
}