feat: fw-update recovery flow
This commit is contained in:
@ -30,7 +30,6 @@ class HomePage extends StatelessWidget {
|
||||
style: TextStyle(fontSize: 20),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
// Devices Section
|
||||
Container(
|
||||
padding: const EdgeInsets.only(left: 16, right: 16),
|
||||
child: Column(
|
||||
@ -84,7 +83,7 @@ class DevicesList extends ConsumerStatefulWidget {
|
||||
}
|
||||
|
||||
class _DevicesListState extends ConsumerState<DevicesList> {
|
||||
String? _connectingDeviceId; // ID of device currently being connected
|
||||
String? _connectingDeviceId;
|
||||
|
||||
Future<void> _removeDevice(ConnectedDevice device) async {
|
||||
final shouldRemove = await showDialog<bool>(
|
||||
@ -197,10 +196,10 @@ class _DevicesListState extends ConsumerState<DevicesList> {
|
||||
context.go('/device/${device.deviceAddress}');
|
||||
} else {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
const SnackBar(
|
||||
content: Text(
|
||||
'Connection failed. Is the device turned on and in range?'),
|
||||
duration: const Duration(seconds: 3),
|
||||
duration: Duration(seconds: 3),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user