BsBorderExtension extension
Extension on Widget to provide Bootstrap-like border and border-radius utilities.
- on
Methods
-
border(
{Color? color, double width = 1.0}) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Adds a default border on all sides, matching.border. -
border0(
) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Removes all borders, matching.border-0. -
borderBottom(
{Color? color, double width = 1.0}) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Adds a border to the bottom side, matching.border-bottom. -
borderEnd(
{Color? color, double width = 1.0}) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Adds a border to the end (right) side, matching.border-end. -
borderStart(
{Color? color, double width = 1.0}) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Adds a border to the start (left) side, matching.border-start. -
borderTop(
{Color? color, double width = 1.0}) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Adds a border to the top side, matching.border-top. -
borderVariant(
BuildContext context, BsVariant variant, {double width = 1.0}) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Colors the border based on the theme color variant, matching.border-*. -
rounded(
) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies a default border-radius of 0.375rem (6px), matching.rounded. -
rounded0(
) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Removes all border-radius, matching.rounded-0. -
rounded1(
) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies a small border-radius of 0.25rem (4px), matching.rounded-1. -
rounded2(
) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies a medium border-radius of 0.375rem (6px), matching.rounded-2. -
rounded3(
) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies a large border-radius of 0.5rem (8px), matching.rounded-3. -
rounded4(
) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies an extra-large border-radius of 1rem (16px), matching.rounded-4. -
rounded5(
) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies an extra-extra-large border-radius of 2rem (32px), matching.rounded-5. -
roundedBottom(
{double radius = 6.0}) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies border-radius only to the bottom side, matching.rounded-bottom. -
roundedCircle(
) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies a circular border-radius, matching.rounded-circle. -
roundedEnd(
{double radius = 6.0}) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies border-radius only to the end (right) side, matching.rounded-end. -
roundedPill(
) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies a pill-like border-radius (large value), matching.rounded-pill. -
roundedStart(
{double radius = 6.0}) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies border-radius only to the start (left) side, matching.rounded-start. -
roundedTop(
{double radius = 6.0}) → Widget -
Available on Widget, provided by the BsBorderExtension extension
Applies border-radius only to the top side, matching.rounded-top.