mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-04-18 14:35:53 -04:00
additional popcontrol for child route
This commit is contained in:
parent
2313247407
commit
d0fe5c5519
@ -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…
x
Reference in New Issue
Block a user