mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Match notification list item appearance to device list card style
Replace the Column+Divider wrapper with a Card widget and move the dynamic background color from ListTile.tileColor to Card.color, matching the pattern used in the device list. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
171e7516bc
commit
2007bd2390
@@ -169,9 +169,11 @@ class _NotificationListState extends State<NotificationList> {
|
|||||||
fetchNextPage: fetchNextPage,
|
fetchNextPage: fetchNextPage,
|
||||||
builderDelegate: PagedChildBuilderDelegate(
|
builderDelegate: PagedChildBuilderDelegate(
|
||||||
itemBuilder: (context, item, index) {
|
itemBuilder: (context, item, index) {
|
||||||
return Column(
|
return Card(
|
||||||
children: [
|
color: item.isNew
|
||||||
Dismissible(
|
? Theme.of(context).colorScheme.secondaryContainer
|
||||||
|
: null,
|
||||||
|
child: Dismissible(
|
||||||
key: UniqueKey(),
|
key: UniqueKey(),
|
||||||
confirmDismiss: (direction) =>
|
confirmDismiss: (direction) =>
|
||||||
direction == DismissDirection.startToEnd
|
direction == DismissDirection.startToEnd
|
||||||
@@ -192,9 +194,6 @@ class _NotificationListState extends State<NotificationList> {
|
|||||||
child: Icon(Icons.done),
|
child: Icon(Icons.done),
|
||||||
),
|
),
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
tileColor: item.isNew
|
|
||||||
? Theme.of(context).colorScheme.secondaryContainer
|
|
||||||
: null,
|
|
||||||
leading: Icon(
|
leading: Icon(
|
||||||
item.notificationType.icon,
|
item.notificationType.icon,
|
||||||
color: item.isNew
|
color: item.isNew
|
||||||
@@ -244,8 +243,6 @@ class _NotificationListState extends State<NotificationList> {
|
|||||||
isThreeLine: true,
|
isThreeLine: true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Divider(),
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user