saeed bayat
saeed bayat

Reputation: 93

flutter- !_debugLocked is not true

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

Upvotes: 0

Views: 287

Answers (1)

saeed bayat
saeed bayat

Reputation: 93

add this line of code before using Navigator Solved my problem

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

Upvotes: 1

Related Questions