Flutter: SetState() Or MarkNeedsBuild() Called When Widget Tree Was Locked... During Orientation Change
I want to create a App whose UI can be updated based on device orientation. In Portait layout, i use a drawer to show some elements (Fig.). In Landscape layout, there is no drawer
Solution 1:
you can try
Navigator.pop(context, true);
instead of
Navigator.pop()
Baca Juga
- App Works Perfectly Yesterday And Now An Error Platformexception(firebaseexception, An Internal Error Has Occurred. [ 7: ], Null) Appears
- How Do I Add A Blur Effect At The Right Edge Horizontal ListView To Show That There Is More Content
- Dart/flutter How To Change The Timer Inside Periodic After Every Time
Solution 2:
void rebuild(BuildContext context) {
Navigator.pop(context);
setState(() {});
}
Post a Comment for "Flutter: SetState() Or MarkNeedsBuild() Called When Widget Tree Was Locked... During Orientation Change"