add todo fix random bad widget ancestor after onboarding
This commit is contained in:
parent
58572a5e0e
commit
d9222fe6ba
|
@ -145,6 +145,7 @@ Future onboardingNewChest() async {
|
|||
// Check if string "ĞD" is present in screen
|
||||
await waitFor('Mon portefeuille co');
|
||||
await waitFor('0.0 $currencyName');
|
||||
// await waitFor('Scanner un');
|
||||
}
|
||||
|
||||
Future addDerivation() async {
|
||||
|
|
|
@ -55,13 +55,24 @@ Widget finishButton(BuildContext context) {
|
|||
child: ElevatedButton(
|
||||
key: keyGoWalletsHome,
|
||||
style: ElevatedButton.styleFrom(
|
||||
foregroundColor: Colors.white, elevation: 4, backgroundColor: orangeC, // foreground
|
||||
foregroundColor: Colors.white, elevation: 4,
|
||||
backgroundColor: orangeC, // foreground
|
||||
),
|
||||
onPressed: () {
|
||||
// sleep(const Duration(milliseconds: 50));
|
||||
Navigator.popUntil(homeContext, ModalRoute.withName('/'));
|
||||
// sleep(const Duration(milliseconds: 500));
|
||||
Navigator.pushNamed(homeContext, '/mywallets');
|
||||
//TODO: fix bad widget ancestor when pupUntil (multi_chest test failed)
|
||||
|
||||
// Navigator.popUntil(homeContext, ModalRoute.withName('/'));
|
||||
// Navigator.of(homeContext, rootNavigator: true)
|
||||
// .popUntil(ModalRoute.withName('/'));
|
||||
// while (Navigator.of(homeContext).canPop()) {
|
||||
// Navigator.of(homeContext).pop();
|
||||
// }
|
||||
|
||||
// Navigator.pushNamed(homeContext, '/mywallets');
|
||||
|
||||
Navigator.pushNamedAndRemoveUntil(
|
||||
context, '/mywallets', (route) => route.isFirst);
|
||||
|
||||
// Navigator.pushNamedAndRemoveUntil(
|
||||
// homeContext, '/mywallets', ModalRoute.withName('/'));
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue