WidgetDecorationX extension

Extension methods for widget decoration

on

Methods

backgroundColor(Color color) Widget

Available on Widget, provided by the WidgetDecorationX extension

Add background color
border({Color color = const Color(0xFF000000), double width = 1.0}) Widget

Available on Widget, provided by the WidgetDecorationX extension

Add border
borderRadius(double radius) Widget

Available on Widget, provided by the WidgetDecorationX extension

Add border radius
gradient(Gradient gradient) Widget

Available on Widget, provided by the WidgetDecorationX extension

Add gradient background
roundedRectangle({Color? color, double radius = 8.0, BoxBorder? border, List<BoxShadow>? boxShadow, Gradient? gradient}) Widget

Available on Widget, provided by the WidgetDecorationX extension

Add rounded rectangle with background color
shadow({Color color = const Color(0x40000000), double blurRadius = 8.0, Offset offset = const Offset(0, 2)}) Widget

Available on Widget, provided by the WidgetDecorationX extension

Add shadow