BsSizeExtension extension
Extension on Widget to provide sizing utilities.
- on
Methods
-
expanded(
[int flex = 1]) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Wraps the widget in an Expanded widget. -
h(
double height) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets a fixed height for the widget. -
h100(
) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets the height to 100% (double.infinity). -
h25(
) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets the height to 25% of parent (FractionallySizedBox). -
h50(
) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets the height to 50% of parent (FractionallySizedBox). -
h75(
) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets the height to 75% of parent (FractionallySizedBox). -
minH100(
) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets min-height to 100% of parent. -
minVh100(
BuildContext context) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets min-height to 100vh (100% of viewport height). -
minVh50(
BuildContext context) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets min-height to 50vh (50% of viewport height). -
minVw100(
BuildContext context) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets min-width to 100vw (100% of viewport width). -
minVw50(
BuildContext context) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets min-width to 50vw (50% of viewport width). -
minW100(
) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets min-width to 100% of parent. -
size100(
) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets both width and height to 100% (double.infinity). Maps to Bootstrap's.w-100and.h-100. -
vh100(
BuildContext context) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets height to 100vh (100% of viewport height). -
vh50(
BuildContext context) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets height to 50vh (50% of viewport height). -
vw100(
BuildContext context) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets width to 100vw (100% of viewport width). -
vw50(
BuildContext context) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets width to 50vw (50% of viewport width). -
w(
double width) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets a fixed width for the widget. -
w100(
) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets the width to 100% (double.infinity). -
w25(
) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets the width to 25% of parent (FractionallySizedBox). -
w50(
) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets the width to 50% of parent (FractionallySizedBox). -
w75(
) → Widget -
Available on Widget, provided by the BsSizeExtension extension
Sets the width to 75% of parent (FractionallySizedBox).