File tree Expand file tree Collapse file tree 4 files changed +18
-17
lines changed Expand file tree Collapse file tree 4 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,6 @@ class _AccountView extends StatelessWidget {
61
61
const SizedBox (height: 24 ),
62
62
63
63
// --- Action Tiles ---
64
- _buildNotificationsTile (context),
65
- const Divider (),
66
64
_buildSettingsTile (context),
67
65
const Divider (),
68
66
if (isAnonymous)
@@ -171,20 +169,6 @@ class _AccountView extends StatelessWidget {
171
169
);
172
170
}
173
171
174
- /// Builds the ListTile for navigating to Notifications.
175
- Widget _buildNotificationsTile (BuildContext context) {
176
- final l10n = context.l10n;
177
- return ListTile (
178
- leading: const Icon (Icons .notifications_outlined),
179
- title: Text (l10n.accountNotificationsTile),
180
- trailing: const Icon (Icons .chevron_right), // Suggests navigation
181
- onTap: () {
182
- // Navigate to the new notifications route (placeholder)
183
- context.goNamed (Routes .notificationsName);
184
- },
185
- );
186
- }
187
-
188
172
/// Helper to convert AuthenticationStatus enum to a display string.
189
173
String _authenticationStatusToString (
190
174
BuildContext context,
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
import 'package:flutter_bloc/flutter_bloc.dart' ;
3
+ import 'package:go_router/go_router.dart' ;
3
4
import 'package:ht_headlines_repository/ht_headlines_repository.dart' ;
4
5
import 'package:ht_main/headlines-feed/bloc/headlines_feed_bloc.dart' ;
5
6
import 'package:ht_main/headlines-feed/widgets/headline_item_widget.dart' ;
6
7
import 'package:ht_main/l10n/l10n.dart' ;
8
+ import 'package:ht_main/router/routes.dart' ;
7
9
import 'package:ht_main/shared/constants/constants.dart' ;
8
10
import 'package:ht_main/shared/widgets/failure_state_widget.dart' ;
9
11
import 'package:ht_main/shared/widgets/loading_state_widget.dart' ;
@@ -73,7 +75,14 @@ class _HeadlinesFeedViewState extends State<_HeadlinesFeedView> {
73
75
74
76
return Scaffold (
75
77
appBar: AppBar (
76
- // Removed leadingWidth and leading Row
78
+ centerTitle: true , // Center the title
79
+ leading: IconButton ( // Add leading icon button
80
+ icon: const Icon (Icons .notifications_outlined),
81
+ tooltip: l10n.notificationsTooltip, // Add tooltip for accessibility
82
+ onPressed: () {
83
+ context.goNamed (Routes .notificationsName);
84
+ },
85
+ ),
77
86
title: Text (
78
87
'HT' , // TODO(fulleni): Localize this title
79
88
style: textTheme.titleLarge? .copyWith (fontWeight: FontWeight .bold),
Original file line number Diff line number Diff line change 279
279
"headlinesSearchActionTooltip": "بحث",
280
280
"@headlinesSearchActionTooltip": {
281
281
"description": "Tooltip text for the search icon button in the search page AppBar"
282
+ },
283
+ "notificationsTooltip": "عرض الإشعارات",
284
+ "@notificationsTooltip": {
285
+ "description": "Tooltip text for the notifications icon button in the feed page AppBar"
282
286
}
283
287
}
Original file line number Diff line number Diff line change 279
279
"headlinesSearchActionTooltip": "Search",
280
280
"@headlinesSearchActionTooltip": {
281
281
"description": "Tooltip text for the search icon button in the search page AppBar"
282
+ },
283
+ "notificationsTooltip": "View notifications",
284
+ "@notificationsTooltip": {
285
+ "description": "Tooltip text for the notifications icon button in the feed page AppBar"
282
286
}
283
287
}
You can’t perform that action at this time.
0 commit comments