getScreenSize method
Implementation
@override
Future<Size> getScreenSize(BuildContext? context) async {
if (context == null) {
throw UnsupportedError("context must not be null here in Android/iOS");
}
var data = context.findAncestorWidgetOfExactType<MediaQuery>()!.data;
return data.size;
}