mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Remove Notifications title from home page body
Match the structure of other pages by dropping the standalone title and placing the filter selector and "mark all as read" action in one row. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
9099d0f6a7
commit
d4e00515fc
@@ -350,33 +350,25 @@ class _NotificationsListState extends State<NotificationsList>
|
||||
}
|
||||
|
||||
Widget _buildNotificationsHeader(BuildContext context) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
return Row(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Text(
|
||||
'Notifications',
|
||||
style: Theme.of(context).textTheme.titleLarge,
|
||||
),
|
||||
const Spacer(),
|
||||
if (_filter == _NotificationFilter.newOnly && _items.isNotEmpty)
|
||||
IconButton(
|
||||
onPressed: _markAllAsRead,
|
||||
icon: const Icon(Icons.done_all),
|
||||
tooltip: 'Mark all as read',
|
||||
),
|
||||
],
|
||||
),
|
||||
FilterSelector<_NotificationFilter>(
|
||||
values: _NotificationFilter.values,
|
||||
selected: _filter,
|
||||
labelOf: (f) => f.label,
|
||||
onSelected: (f) {
|
||||
setState(() => _filter = f);
|
||||
_fetchPage(0);
|
||||
},
|
||||
Expanded(
|
||||
child: FilterSelector<_NotificationFilter>(
|
||||
values: _NotificationFilter.values,
|
||||
selected: _filter,
|
||||
labelOf: (f) => f.label,
|
||||
onSelected: (f) {
|
||||
setState(() => _filter = f);
|
||||
_fetchPage(0);
|
||||
},
|
||||
),
|
||||
),
|
||||
if (_filter == _NotificationFilter.newOnly && _items.isNotEmpty)
|
||||
IconButton(
|
||||
onPressed: _markAllAsRead,
|
||||
icon: const Icon(Icons.done_all),
|
||||
tooltip: 'Mark all as read',
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user