mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-24 15:05:22 -04:00
additional popcontrol for child route
This commit is contained in:
parent
2313247407
commit
d0fe5c5519
1 changed files with 8 additions and 5 deletions
|
@ -12,6 +12,7 @@ import 'package:veilid_support/veilid_support.dart';
|
|||
import '../../../account_manager/account_manager.dart';
|
||||
import '../../layout/layout.dart';
|
||||
import '../../settings/settings.dart';
|
||||
import '../../theme/theme.dart';
|
||||
import '../../tools/tools.dart';
|
||||
import '../../veilid_processor/views/developer.dart';
|
||||
import '../views/router_shell.dart';
|
||||
|
@ -105,11 +106,13 @@ class RouterCubit extends Cubit<RouterState> {
|
|||
builder: (context, state) {
|
||||
final extra = state.extra! as List<Object>;
|
||||
|
||||
return ShowRecoveryKeyPage(
|
||||
writableSuperIdentity:
|
||||
extra[0] as WritableSuperIdentity,
|
||||
name: extra[1] as String,
|
||||
isFirstAccount: extra[2] as bool);
|
||||
return PopControl(
|
||||
dismissible: false,
|
||||
child: ShowRecoveryKeyPage(
|
||||
writableSuperIdentity:
|
||||
extra[0] as WritableSuperIdentity,
|
||||
name: extra[1] as String,
|
||||
isFirstAccount: extra[2] as bool));
|
||||
}),
|
||||
]),
|
||||
GoRoute(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue