Gap class
A utility class for creating SizedBox with custom height and width.
- Inheritance
- Available extensions
Properties
Methods
-
align(
Alignment alignment) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Aligns the widget -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
center(
) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Centers the widget -
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
decorated(
{Color? color, BorderRadius? borderRadius, Border? border, List< BoxShadow> ? boxShadow, Gradient? gradient}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds a decorated container around widget -
expand(
{int flex = 1}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Expands the widget -
flexible(
{int flex = 1, FlexFit fit = FlexFit.loose}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Makes widget flexible -
margin(
EdgeInsets margin) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds margin using Container -
marginAll(
double margin) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds margin to all sides -
marginOnly(
{double left = 0, double top = 0, double right = 0, double bottom = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds margin to specific sides -
marginSymmetric(
{double horizontal = 0, double vertical = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds symmetric margin -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
padding(
EdgeInsets padding) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds padding to widget -
paddingAll(
double padding) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds padding to all sides -
paddingOnly(
{double left = 0, double top = 0, double right = 0, double bottom = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds padding to specific sides -
paddingSymmetric(
{double horizontal = 0, double vertical = 0}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds symmetric padding to widget -
responsive(
BuildContext context, {Widget mobile(Widget)?, Widget tablet(Widget)?, Widget desktop(Widget)?}) → Widget -
Available on Widget, provided by the WidgetSpacingExtensions extension
Adds a card-like decoration -
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- bottomBarGap → const Gap
- h4 → const Gap
- h8 → const Gap
- h12 → const Gap
- h16 → const Gap
- h20 → const Gap
- h24 → const Gap
- h32 → const Gap
- h40 → const Gap
- h48 → const Gap
- h56 → const Gap
- h64 → const Gap
- w4 → const Gap
- w8 → const Gap
- w12 → const Gap
- w16 → const Gap
- w20 → const Gap
- w24 → const Gap
- w32 → const Gap
- w40 → const Gap
- w48 → const Gap
- w64 → const Gap