Skip to content

Commit 59a1319

Browse files
committed
refactor(settings): update imports and localization in appearance settings page
- Replace app_spacing import with ht_ui_kit - Use AppLocalizationsX for localization
1 parent 76e9439 commit 59a1319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/settings/view/appearance_settings_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:go_router/go_router.dart';
44
import 'package:ht_main/l10n/l10n.dart';
55
import 'package:ht_main/router/routes.dart';
66
import 'package:ht_main/settings/bloc/settings_bloc.dart';
7-
import 'package:ht_main/shared/constants/app_spacing.dart';
7+
import 'package:ht_ui_kit/ht_ui_kit.dart';
88

99
/// {@template appearance_settings_page}
1010
/// A menu page for navigating to theme and font appearance settings.
@@ -15,7 +15,7 @@ class AppearanceSettingsPage extends StatelessWidget {
1515

1616
@override
1717
Widget build(BuildContext context) {
18-
final l10n = context.l10n;
18+
final l10n = AppLocalizationsX(context).l10n;
1919
// SettingsBloc is watched to ensure settings are loaded,
2020
// though this page itself doesn't dispatch events.
2121
final settingsState = context.watch<SettingsBloc>().state;

0 commit comments

Comments
 (0)