Modifier class
Modifier class to chain widget modifications
Constructors
- Modifier()
-
Starting point for the Modifier chain
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
align(
Alignment alignment) → Modifier -
Wrap the widget into an Align Widget with given
alignment
-
apply(
Widget widget) → Widget - Applies all modifiers to the given widget
-
background(
Color color) → Modifier - Wrap the widget into an Container Widget
-
clickable(
VoidCallback onClick) → Modifier - Wrap the widget into an GestureDetector Widget
-
clipCircle(
) → Modifier - Wrap the widget into an ClipOval
-
clipCircular(
double size) → Modifier - 3 Level Wrapping
-
decoration(
BoxDecoration decoration) → Modifier - Adds a decoration to the widget (e.g., border, shadow)
-
fillMaxHeight(
) → Modifier - Wrap the widget into an SizedBox Widget
-
fillMaxWidth(
) → Modifier - Wrap the widget into an SizedBox Widget
-
height(
double height) → Modifier - Wrap the widget into an SizedBox Widget
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
padding(
{double left = 0, double top = 0, double right = 0, double bottom = 0}) → Modifier - Wrap the widget into an Padding Widget with given paddings
-
paddingAll(
double value) → Modifier - Wrap the widget into an Padding Widget with given padding
-
roundedCornerShape(
double radius) → Modifier -
Wrap the widget into a ClipRRect with a rounded rectangle shape
using the specified
radius
for the border radius. -
size(
double size) → Modifier - Wrap the widget into an SizedBox Widget
-
toString(
) → String -
A string representation of this object.
inherited
-
weight(
int fraction) → Modifier -
Wrap the widget into an Expanded Widget
fraction
the optional parameter,default=1 -
width(
double width) → Modifier - Wrap the widget into an SizedBox Widget
-
widthHeight(
double width, double height) → Modifier - Wrap the widget into an SizedBox Widget
-
wrapContentWidth(
) → Modifier - It ensure it override the width(relax constraint_)) by wrapping it to a IntrinsicWidth
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited