BoxColorsExtension extension

Extension methods for Widget that provide convenient colored box wrappers.

This extension adds methods to any Widget to quickly wrap it in a ColoredBox with predefined Material Design colors. Each method creates a colored background container around the widget using Flutter's standard color palette.

Example usage:

Text('Hello World').redBox()
Icon(Icons.star).blueAccentBox()
Container().greyBox()

All methods return a ColoredBox widget that wraps the original widget with the specified background color.

on

Methods

blackBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a black colored box.
blueAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a blue accent colored box.
blueBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a blue colored box.
brownBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a brown colored box.
cyanAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a cyan accent colored box.
cyanBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a cyan colored box.
deepPurpleAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a deep purple accent colored box.
deepPurpleBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a deep purple colored box.
greenAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a green accent colored box.
greenBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a green colored box.
greyBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a grey colored box.
lightBlueAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a light blue accent colored box.
lightBlueBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a light blue colored box.
lightGreenAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a light green accent colored box.
lightGreenBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a light green colored box.
limeAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a lime accent colored box.
limeBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a lime colored box.
orangeAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in an orange accent colored box.
orangeBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in an orange colored box.
pinkAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a pink accent colored box.
pinkBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a pink colored box.
purpleAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a purple accent colored box.
purpleBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a purple colored box.
redAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a red accent colored box.
redBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a red colored box.
tealAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a teal accent colored box.
tealBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a teal colored box.
whiteBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a white colored box.
yellowAccentBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a yellow accent colored box.
yellowBox() ColoredBox

Available on Widget, provided by the BoxColorsExtension extension

Wraps the widget in a yellow colored box.