mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Collapse scanner-card and pagination duplication into shared widgets
Extract ScannerStatusCard<T> and PaginationBar so the ARP/mDNS cards and the two paginated lists share one implementation each. Also fold the four UISnackbars methods over a severity enum and fix Notification.toJson serializing a method tear-off instead of the enum name. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
9b521e0847
commit
17712c25f1
@@ -43,7 +43,7 @@ class Notification {
|
||||
Map<String, dynamic> toJson() => {
|
||||
'id': id,
|
||||
'created_on': createdOn.toUtc().toIso8601String(),
|
||||
'notification_type': notificationType.toString,
|
||||
'notification_type': notificationType.name,
|
||||
'title': title,
|
||||
'body': body,
|
||||
'is_new': isNew,
|
||||
|
||||
Reference in New Issue
Block a user