ParentStyle class

Constructors

ParentStyle({AngleFormat angleFormat = AngleFormat.cycles})

Properties

alignment → AlignmentModel
Alignment relative to its surroundings
finalinherited
alignmentContent → AlignmentModel
Alignment of the child
finalinherited
angleFormat AngleFormat
final
background → BackgroundModel
Widget background styling
finalinherited
exportStyle → StyleModel
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
overflow → OverflowModel
Change child overflow behaviour.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(ParentStyle parentStyle, {bool override = false}) → void
Combines style from another style instance
animate([int duration = 500, Curve curve = Curves.linear]) → void
Duration is given in milliseconds.
inherited
border({double? all, double? left, double? right, double? top, double? bottom, Color color = const Color(0xFF000000), BorderStyle style = BorderStyle.solid}) → void
Border for the widget
inherited
borderRadius({double? all, double? topLeft, double? topRight, double? bottomLeft, double? bottomRight}) → void
It is valid to use all together with single sided properties. Single sided properties will trump over the all property.
inherited
boxShadow({Color color = const Color(0x33000000), double blur = 0.0, Offset offset = Offset.zero, double spread = 0.0}) → void
If defined while the elevation method is defined, the last one defined will be the one applied.
inherited
circle([dynamic enable = true]) → void
inherited
clone() ParentStyle
Clone object
elevation(double elevation, {double angle = 0.0, Color color = const Color(0x33000000), double opacity = 1.0}) → void
Elevates the widget with a boxShadow. angle format depends on what is specified in the style widget`s constructor.
inherited
height(double height) → void
inherited
linearGradient({AlignmentGeometry begin = Alignment.centerLeft, AlignmentGeometry end = Alignment.centerRight, required List<Color> colors, TileMode tileMode = TileMode.clamp, List<double>? stops}) → void
Creates a linear gradient.
inherited
margin({double? all, double? horizontal, double? vertical, double? top, double? bottom, double? left, double? right}) → void
Empty space to surround the decoration and child.
inherited
maxHeight(double maxHeight) → void
inherited
maxWidth(double maxWidth) → void
inherited
minHeight(double minHeight) → void
inherited
minWidth(double minWidth) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offset(double dx, double dy) → void
inherited
opacity(double opacity) → void
inherited
padding({double? all, double? horizontal, double? vertical, double? top, double? bottom, double? left, double? right}) → void
Empty space to inscribe inside the decoration. The child, if any, is placed inside this padding.
inherited
radialGradient({AlignmentGeometry center = Alignment.center, required double radius, required List<Color> colors, TileMode tileMode = TileMode.clamp, List<double>? stops}) → void
Creates a radial gradient.
inherited
ripple(bool enable, {Color? splashColor, Color? highlightColor}) → void
Material ripple effect
inherited
rotate(double angle) → void
StyleClass(angleFormat: AngleFormat.cycles) ..rotate(0.75); StyleClass(angleFormat: AngleFormat.radians) ..rotate(0.75 * pi * 2)
inherited
scale(double ratio) → void
inherited
sweepGradient({AlignmentGeometry center = Alignment.center, double startAngle = 0.0, required double endAngle, required List<Color> colors, TileMode tileMode = TileMode.clamp, List<double>? stops}) → void
Creates a sweep gradient.
inherited
toString() String
A string representation of this object.
inherited
width(double width) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited