FlutterTagStyle class
Constructors
- FlutterTagStyle({FlutterTagShape shape = FlutterTagShape.circle, SharpBorderRadius borderRadius = SharpBorderRadius.zero, Color tagColor = Colors.red, BorderSide borderSide = BorderSide.none, double elevation = 2, FlutterTagGradient? tagGradient, FlutterTagGradient? borderGradient, EdgeInsetsGeometry padding = const EdgeInsets.all(5.0)})
-
const
Properties
- borderGradient → FlutterTagGradient?
-
Background gradient color of the border tag.
Will be used over
borderSide.color
if not null.final - borderRadius → SharpBorderRadius
-
Allows to set border radius to this
tagContent
. The default value is BorderRadius.zero.final - borderSide → BorderSide
-
Allows to set border side to this
tagContent
. The default value is BorderSide.none.final - elevation → double
-
The size of the shadow below the tag.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- padding → EdgeInsetsGeometry
-
Specifies padding for
tagContent
. The default value is EdgeInsets.all(5.0).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → FlutterTagShape
-
Allows to set the shape to this
tagContent
. The default value is FlutterTagShape.circle.final - tagColor → Color
-
Background color of the tag.
If
gradient
is not null, this property will be ignored.final - tagGradient → FlutterTagGradient?
-
Background gradient color of the tag.
Will be used over tagColor if not null.
final
Methods
-
copyWith(
{FlutterTagShape? shape, SharpBorderRadius? borderRadius, Color? tagColor, BorderSide? borderSide, double? elevation, FlutterTagGradient? tagGradient, FlutterTagGradient? borderGradient, EdgeInsetsGeometry? padding}) → FlutterTagStyle -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited