WidgetColorExtensions extension

on

Methods

asColoredButton({Color backgroundColor = Colors.blue, EdgeInsets padding = const EdgeInsets.all(12)}) Widget

Available on Widget, provided by the WidgetColorExtensions extension

Adds padding and a background color to create a button-like look.
withBackgroundColor(Color color) Widget

Available on Widget, provided by the WidgetColorExtensions extension

Wraps the widget with a background color.
withBackgroundGradient(List<Color> colors, {Alignment begin = Alignment.topLeft, Alignment end = Alignment.bottomRight}) Widget

Available on Widget, provided by the WidgetColorExtensions extension

Applies a gradient as the widget's background.
withGlossyEffect({Color overlayColor = Colors.white, double glossFactor = 0.2}) Widget

Available on Widget, provided by the WidgetColorExtensions extension

Adds a glossy effect overlay to the widget.