util/context_utils library

Extensions

ContextExt on BuildContext
An extension for the BuildContext class providing convenient access to common MediaQuery properties and theme information.

Functions

getSize(BuildContext context) Size
Get the size of the screen from a given BuildContext.
mQuery(BuildContext context) MediaQueryData
Get the MediaQueryData object from a given BuildContext.