Add devices screen to the Flutter frontend

Lists devices with New/Registered/All filtering, pull-to-refresh,
device-type icons, and visual differentiation between new and registered
devices. Introduces a reusable StatusBadge widget for colour-coded labels.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-27 14:58:11 -04:00
co-authored by Claude Sonnet 4.6
parent 6d72ba7202
commit d0b9855bad
5 changed files with 280 additions and 1 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:frontend/settings/settings.dart';
import 'package:go_router/go_router.dart';
import 'devices/device_list.dart';
import 'notifications/notification_list.dart';
import 'utils/pref_utils.dart';
@@ -23,7 +24,7 @@ final GoRouter router = GoRouter(
GoRoute(
path: '/devices',
name: 'devices',
builder: (context, state) => const Placeholder(),
builder: (context, state) => const DeviceList(),
redirect: (context, state) => _redirectToSettings(),
),
GoRoute(