BorderExtension extension
Extension to easily add borders to widgets
- on
Methods
-
withBorder(
{Color color = Colors.black, double width = 1.0, double radius = 0.0, BorderStyle style = BorderStyle.solid}) → Widget -
Available on Widget, provided by the BorderExtension extension
Adds a border with the specified color, width, and radius to the widget -
withBorderSides(
{Color color = Colors.black, double width = 1.0, bool top = false, bool right = false, bool bottom = false, bool left = false, double radius = 0.0, BorderStyle style = BorderStyle.solid}) → Widget -
Available on Widget, provided by the BorderExtension extension
Adds a border only on specific sides -
withCircularBorder(
{Color color = Colors.black, double width = 1.0, BorderStyle style = BorderStyle.solid}) → Widget -
Available on Widget, provided by the BorderExtension extension
Adds a circular border with the specified color and width to the widget -
withRoundedBorder(
{Color color = Colors.black, double width = 1.0, double radius = 8.0, BorderStyle style = BorderStyle.solid}) → Widget -
Available on Widget, provided by the BorderExtension extension
Adds a rounded rectangle border with the specified color, width, and radius to the widget