Inheritance
System.Object
SizedBox
public class SizedBox : SingleChildRenderObjectWidget
Constructors
Declaration
public SizedBox(Key key = null, float? width = default(float? ), float? height = default(float? ), Widget child = null)
Parameters
Type |
Name |
Description |
Key |
key |
|
System.Nullable<System.Single> |
width |
|
System.Nullable<System.Single> |
height |
|
Widget |
child |
|
Fields
Declaration
public readonly float? height
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
Declaration
public readonly float? width
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
Methods
createRenderObject(BuildContext)
Declaration
public override RenderObject createRenderObject(BuildContext context)
Parameters
Returns
Overrides
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
Declaration
public static SizedBox expand(Key key = null, Widget child = null)
Parameters
Returns
Declaration
public static SizedBox fromSize(Key key = null, Widget child = null, Size size = null)
Parameters
Returns
Declaration
public static SizedBox shrink(Key key = null, Widget child = null)
Parameters
Returns
Declaration
public override string toStringShort()
Returns
Type |
Description |
System.String |
|
Overrides
updateRenderObject(BuildContext, RenderObject)
Declaration
public override void updateRenderObject(BuildContext context, RenderObject renderObjectRaw)
Parameters
Overrides