feat: fw-update recovery flow
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:abawo_bt_app/controller/bluetooth.dart';
|
||||
import 'package:abawo_bt_app/pages/bootloader_recovery_update_page.dart';
|
||||
import 'package:abawo_bt_app/pages/devices_page.dart';
|
||||
import 'package:abawo_bt_app/pages/devices_tab_page.dart';
|
||||
import 'package:abawo_bt_app/src/rust/frb_generated.dart';
|
||||
@ -125,6 +126,18 @@ final _router = GoRouter(
|
||||
return DeviceDetailsPage(deviceAddress: deviceAddress);
|
||||
},
|
||||
),
|
||||
GoRoute(
|
||||
path: '/bootloader_recovery_update',
|
||||
builder: (context, state) {
|
||||
final args = state.extra;
|
||||
if (args is! BootloaderRecoveryUpdateArgs) {
|
||||
return const Scaffold(
|
||||
body: Center(child: Text('Missing bootloader recovery data.')),
|
||||
);
|
||||
}
|
||||
return BootloaderRecoveryUpdatePage(args: args);
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user