Skip to content

Instantly share code, notes, and snippets.

View God-kimchi's full-sized avatar

TaeyoungLee God-kimchi

  • house
  • house
View GitHub Profile
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);
}
}