Skip to content

Commit 809c48d

Browse files
committed
refactor(dashboard): update localization and UI imports
- Replace shared package import with ht_ui_kit package - Use AppLocalizationsX for localization in multiple widgets - Remove unused import of ht_shared
1 parent 098c474 commit 809c48d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/dashboard/view/dashboard_page.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import 'package:go_router/go_router.dart';
44
import 'package:ht_dashboard/dashboard/bloc/dashboard_bloc.dart';
55
import 'package:ht_dashboard/l10n/l10n.dart';
66
import 'package:ht_dashboard/router/routes.dart';
7-
import 'package:ht_dashboard/shared/shared.dart';
87
import 'package:ht_shared/ht_shared.dart';
8+
import 'package:ht_ui_kit/ht_ui_kit.dart';
99

1010
/// {@template dashboard_page}
1111
/// The main dashboard page, displaying key statistics and quick actions.
@@ -28,7 +28,7 @@ class _DashboardPageState extends State<DashboardPage> {
2828

2929
@override
3030
Widget build(BuildContext context) {
31-
final l10n = context.l10n;
31+
final l10n = AppLocalizationsX(context).l10n;
3232
return Scaffold(
3333
body: BlocBuilder<DashboardBloc, DashboardState>(
3434
builder: (context, state) {
@@ -150,7 +150,7 @@ class _QuickActionsCard extends StatelessWidget {
150150

151151
@override
152152
Widget build(BuildContext context) {
153-
final l10n = context.l10n;
153+
final l10n = AppLocalizationsX(context).l10n;
154154
final theme = Theme.of(context);
155155

156156
return Card(
@@ -193,7 +193,7 @@ class _RecentHeadlinesCard extends StatelessWidget {
193193

194194
@override
195195
Widget build(BuildContext context) {
196-
final l10n = context.l10n;
196+
final l10n = AppLocalizationsX(context).l10n;
197197
final theme = Theme.of(context);
198198

199199
return Card(

0 commit comments

Comments
 (0)