I have this problem, when I try to use navigator this error will show up
[+1368632 ms] Error: Assertion failed: file:///home/saeedszz/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/navigator.dart:4564:12
!_debugLocked
is not true
I tried everything inside relevant topics in StackOverflow and non of them seemed to work thank you in advanced
add this line of code before using Navigator Solved my problem
await Future.delayed(Duration(seconds: 1));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.