We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34d0176 commit 702bf9aCopy full SHA for 702bf9a
lib/responsive_wrapper.dart
@@ -461,7 +461,7 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
461
// The required MediaQueryData is only available
462
// on the next frame for physical dimension changes.
463
WidgetsBinding.instance.addPostFrameCallback((_) {
464
- if (context != null) {
+ if (mounted) {
465
setDimensions();
466
setState(() {});
467
}
0 commit comments