Home > Blockchain >  flutter- !_debugLocked is not true
flutter- !_debugLocked is not true

Time:12-04

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

CodePudding user response:

add this line of code before using Navigator Solved my problem

 await Future.delayed(Duration(seconds: 1));
  • Related