diff options
author | Anuj Solanki <anuj603362@gmail.com> | 2024-12-16 15:28:14 +0530 |
---|---|---|
committer | Anuj Solanki <anuj603362@gmail.com> | 2024-12-16 15:28:14 +0530 |
commit | bf49975244508fd25e8111b9aa4cf010ffa41ce4 (patch) | |
tree | d69cda1ae88b7170489577c0631e7fb5ae1d3675 /lib/presentation/screens/settings/settings_screens/units/units_screen.dart | |
parent | b3a67fde51e2e9f1554e8a0e13a872d9092c0b92 (diff) |
Fix navigation issue caused by direct transitioning to settings page
without correctly updating previous and current state in AppStateNotifier
Bug-AGL: SPEC-5322
Change-Id: Ic5b604efd21aa648a1013047ada1e97845c62b4b
Signed-off-by: Anuj Solanki <anuj603362@gmail.com>
Diffstat (limited to 'lib/presentation/screens/settings/settings_screens/units/units_screen.dart')
-rw-r--r-- | lib/presentation/screens/settings/settings_screens/units/units_screen.dart | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/presentation/screens/settings/settings_screens/units/units_screen.dart b/lib/presentation/screens/settings/settings_screens/units/units_screen.dart index ba84471..181eeb9 100644 --- a/lib/presentation/screens/settings/settings_screens/units/units_screen.dart +++ b/lib/presentation/screens/settings/settings_screens/units/units_screen.dart @@ -18,7 +18,7 @@ class UnitsPage extends ConsumerWidget { title: 'Units', hasBackButton: true, onPressed: () { - context.flow<AppState>().update((state) => AppState.settings); + ref.read(appProvider.notifier).back(); }, ), Expanded( |