getSize function

Size getSize(
  1. BuildContext context
)

Get the size of the screen from a given BuildContext.

Implementation

Size getSize(BuildContext context) {
  return MediaQuery.of(context).size;
}