Skip to content

Commit 90feb12

Browse files
committed
refactor(dashboard): migrate to ht_ui_kit and remove app_theme import
- Replace app_spacing import with ht_ui_kit in app_shell.dart - Remove app_theme import from app.dart - Update AppShell build method to use AppLocalizationsX for l10n
1 parent 7cbc045 commit 90feb12

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/app/view/app.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import 'package:ht_dashboard/dashboard/bloc/dashboard_bloc.dart';
1515
import 'package:ht_dashboard/l10n/app_localizations.dart';
1616
import 'package:ht_dashboard/router/router.dart';
1717
// Import for app_theme.dart
18-
import 'package:ht_dashboard/shared/theme/app_theme.dart';
1918
import 'package:ht_data_repository/ht_data_repository.dart';
2019
import 'package:ht_kv_storage_service/ht_kv_storage_service.dart';
2120
import 'package:ht_shared/ht_shared.dart' hide AppStatus;

lib/app/view/app_shell.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:go_router/go_router.dart';
55
import 'package:ht_dashboard/app/bloc/app_bloc.dart';
66
import 'package:ht_dashboard/l10n/l10n.dart';
77
import 'package:ht_dashboard/router/routes.dart';
8-
import 'package:ht_dashboard/shared/constants/app_spacing.dart';
8+
import 'package:ht_ui_kit/ht_ui_kit.dart';
99

1010
/// A responsive scaffold shell for the main application sections.
1111
///
@@ -24,7 +24,7 @@ class AppShell extends StatelessWidget {
2424

2525
@override
2626
Widget build(BuildContext context) {
27-
final l10n = context.l10n;
27+
final l10n = AppLocalizationsX(context).l10n;
2828
return Scaffold(
2929
appBar: AppBar(
3030
title: Text(l10n.dashboard),

0 commit comments

Comments
 (0)