Inheritance
System.Object
MediaQuery
public class MediaQuery : InheritedWidget
Constructors
Declaration
public MediaQuery(Key key = null, MediaQueryData data = null, Widget child = null)
Parameters
Fields
Declaration
public readonly MediaQueryData data
Field Value
Methods
boldTextOverride(BuildContext)
Declaration
public static bool boldTextOverride(BuildContext context)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
of(BuildContext, Boolean)
Declaration
public static MediaQueryData of(BuildContext context, bool nullOk = false)
Parameters
Type |
Name |
Description |
BuildContext |
context |
|
System.Boolean |
nullOk |
|
Returns
platformBrightnessOf(BuildContext)
Declaration
public static Brightness platformBrightnessOf(BuildContext context)
Parameters
Returns
removePadding(Key, BuildContext, Boolean, Boolean, Boolean, Boolean, Widget)
Declaration
public static MediaQuery removePadding(Key key = null, BuildContext context = null, bool removeLeft = false, bool removeTop = false, bool removeRight = false, bool removeBottom = false, Widget child = null)
Parameters
Type |
Name |
Description |
Key |
key |
|
BuildContext |
context |
|
System.Boolean |
removeLeft |
|
System.Boolean |
removeTop |
|
System.Boolean |
removeRight |
|
System.Boolean |
removeBottom |
|
Widget |
child |
|
Returns
removeViewInsets(Key, BuildContext, Boolean, Boolean, Boolean, Boolean, Widget)
Declaration
public static MediaQuery removeViewInsets(Key key = null, BuildContext context = null, bool removeLeft = false, bool removeTop = false, bool removeRight = false, bool removeBottom = false, Widget child = null)
Parameters
Type |
Name |
Description |
Key |
key |
|
BuildContext |
context |
|
System.Boolean |
removeLeft |
|
System.Boolean |
removeTop |
|
System.Boolean |
removeRight |
|
System.Boolean |
removeBottom |
|
Widget |
child |
|
Returns
textScaleFactorOf(BuildContext)
Declaration
public static float textScaleFactorOf(BuildContext context)
Parameters
Returns
Type |
Description |
System.Single |
|
Declaration
public override bool updateShouldNotify(InheritedWidget oldWidget)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides