-
-
Save God-kimchi/4269efdd1f3f07097beb19240f78e128 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<Size> mediaQuerySizeByCodingPapa(BuildContext context) async{ | |
Size size = MediaQuery.of(context).size; | |
if(size.width > 0){ | |
return size; | |
}else{ | |
await Future.delayed(Duration(milliseconds: 100)); | |
return await mediaQuerySizeByCodingPapa(context); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment