flutter

MediaQuery.of(context)

height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,

Get MediaQuery.of(context)

Was this helpful?