mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
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:
co-authored by
Claude Sonnet 4.6
parent
6d72ba7202
commit
d0b9855bad
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user