RenderingModifiers extension
A selection of modifiers on Widget for rendering
- on
Methods
-
circle(
double radius) → Widget - Applies a circular clip with a given radius.
-
clipped(
Clip clipBehavior) → Widget - Applies a Clip to the widget.
-
clipShape<
T extends CustomClipper< (Rect> >T clipper, Clip clipBehavior) → Widget - Applies a custom clip shape.
-
cornerRadius(
double radius) → Widget - Applies a decoration to the widget with a BorderRadius.
-
mask(
Shader mask(Rect bounds)) → Widget - Applies a ShaderMask to the widget.
-
opacity(
double opacity) → Widget - Changes the widget's opacity.
-
shadow(
Color color, double radius, {required double blur, double x = 0.0, double y = 0.0}) → Widget - Applies a decoration to the widget with a BoxShadow.