mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Apply M3 filter placement recommendations to device and notification lists
Move status filter chips into AppBar bottom slot (left-aligned, sticky) on both list screens. On the device list, relocate owner and type filters into a modal bottom sheet behind a badged filter icon, and dismiss the sheet on clear so fields always reflect the current filter state. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
e7d075ec29
commit
171e7516bc
@@ -122,19 +122,18 @@ class _NotificationListState extends State<NotificationList> {
|
||||
tooltip: 'Mark all as read',
|
||||
),
|
||||
],
|
||||
),
|
||||
body: CustomScrollView(
|
||||
slivers: [
|
||||
// Filters go here
|
||||
SliverToBoxAdapter(
|
||||
child: Container(
|
||||
height: 50,
|
||||
alignment: Alignment.centerRight,
|
||||
bottom: PreferredSize(
|
||||
preferredSize: const Size.fromHeight(48),
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
|
||||
child: Wrap(
|
||||
spacing: 8.0,
|
||||
children: [
|
||||
ChoiceChip(
|
||||
label: Text('New'),
|
||||
label: const Text('New'),
|
||||
selected: _filterChoice == 1,
|
||||
onSelected: (bool selected) {
|
||||
_filterChoice = 1;
|
||||
@@ -142,7 +141,7 @@ class _NotificationListState extends State<NotificationList> {
|
||||
},
|
||||
),
|
||||
ChoiceChip(
|
||||
label: Text('Old'),
|
||||
label: const Text('Old'),
|
||||
selected: _filterChoice == 2,
|
||||
onSelected: (bool selected) {
|
||||
_filterChoice = 2;
|
||||
@@ -150,7 +149,7 @@ class _NotificationListState extends State<NotificationList> {
|
||||
},
|
||||
),
|
||||
ChoiceChip(
|
||||
label: Text('All'),
|
||||
label: const Text('All'),
|
||||
selected: _filterChoice == 3,
|
||||
onSelected: (bool selected) {
|
||||
_filterChoice = 3;
|
||||
@@ -161,6 +160,10 @@ class _NotificationListState extends State<NotificationList> {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
body: CustomScrollView(
|
||||
slivers: [
|
||||
PagedSliverList<int, oott_model.Notification>(
|
||||
state: state,
|
||||
fetchNextPage: fetchNextPage,
|
||||
|
||||
Reference in New Issue
Block a user