getScreenSize method

  1. @override
Future<Size> getScreenSize(
  1. BuildContext? context
)
override

Implementation

@override
Future<Size> getScreenSize(BuildContext? context) async {
  var width = web.window.screen.width;
  var height = web.window.screen.height;
  return Size(width.toDouble(), height.toDouble());
}