MediaQueryValues extension

you can use this values like: context.width

on

Methods

bottom(BuildContext context) double

Available on State<StatefulWidget>, provided by the MediaQueryValues extension

use --> context.bottom instead of --> MediaQuery.of(context).viewInsets.bottom
height(BuildContext context) double

Available on State<StatefulWidget>, provided by the MediaQueryValues extension

use --> context.height instead of MediaQuery.of(context).size.height
toPadding(BuildContext context) double

Available on State<StatefulWidget>, provided by the MediaQueryValues extension

use --> context.toPadding instead of --> MediaQuery.of(context).viewPadding.top
width(BuildContext context) double

Available on State<StatefulWidget>, provided by the MediaQueryValues extension

use --> context.width instead of MediaQuery.of(context).size.width