From 44d41337b0ed4cd8547f5250671d5067f1f4b8e4 Mon Sep 17 00:00:00 2001 From: poppingmoon <63451158+poppingmoon@users.noreply.github.com> Date: Wed, 17 Jul 2024 19:54:03 +0900 Subject: [PATCH] fix: remove const from `GeneralSettingsNavigation` This fixes an issue where the texts of the navigation are not updated after updating ui language. --- lib/view/page/settings/settings_page.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/view/page/settings/settings_page.dart b/lib/view/page/settings/settings_page.dart index 465c409b5..c14664564 100644 --- a/lib/view/page/settings/settings_page.dart +++ b/lib/view/page/settings/settings_page.dart @@ -97,8 +97,10 @@ class SettingsPage extends HookConsumerWidget { color: Theme.of(context).colorScheme.surface, ), ), - const GeneralSettingsNavigation( - physics: NeverScrollableScrollPhysics(), + // Adding "const" to this prevents update of translations. + // ignore: prefer_const_constructors + GeneralSettingsNavigation( + physics: const NeverScrollableScrollPhysics(), ), Container( height: 8.0,