Assertion failed: !navigator._debugLocked is not true code example
Example: !navigator._debugLocked': is not true
SchedulerBinding.instance.addPostFrameCallback((_) {
Navigator. ...
});
SchedulerBinding.instance.addPostFrameCallback((_) {
Navigator. ...
});