Wrap the widget into an Container Widget
Apply the color to the container Container
Modifier background(Color color) { return Modifier._([ ..._modifiers, (widget) { return Container( color: color, child: widget, ); } ]); }