ReactionsStyle class
ReactionsStyle is a class which is used to set the style for the reactions It takes reactionTextStyle, reactionCountTextStyle, width, height, background, gradient, border, borderRadius as a parameter
ReactionsStyle(
reactionTextStyle: TextStyle(color: Colors.white),
reactionCountTextStyle: TextStyle(color: Colors.white),
background: Colors.blue,
);
- Inheritance
-
- Object
- BaseStyles
- ReactionsStyle
Constructors
- ReactionsStyle({TextStyle? reactionTextStyle, TextStyle? reactionCountTextStyle, Color? primaryBackgroundColor, BoxBorder? primaryBorder, EdgeInsets? margin, EdgeInsets? padding, double? width, double? height, Color? background, Gradient? gradient, BoxBorder? border, double? borderRadius})
Properties
- background → Color?
-
background provides background color to the widget
finalinherited
- border → BoxBorder?
-
border provides border around the widget
finalinherited
- borderRadius → double?
-
borderRadius provides radius to the border around the widget
finalinherited
- gradient → Gradient?
-
gradient provides (background) gradient to the widget
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
height provides height to the widget
finalinherited
- margin ↔ EdgeInsets?
-
margin can be used to apply margin around each reaction
getter/setter pair
- padding ↔ EdgeInsets?
-
padding can be used to apply padding inside each reaction
getter/setter pair
- primaryBackgroundColor ↔ Color?
-
primaryBackgroundColor is the background color applied to selected reaction
getter/setter pair
- primaryBorder ↔ BoxBorder?
-
primaryBorder is the border style applied to selected reaction
getter/setter pair
- reactionCountTextStyle ↔ TextStyle?
-
reactionCountTextStyle is the text style applied to reaction count
getter/setter pair
- reactionTextStyle ↔ TextStyle?
-
reactionTextStyle is the text style applied to reactions
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
width provides width to the widget
finalinherited
Methods
-
copyWith(
{TextStyle? reactionTextStyle, TextStyle? reactionCountTextStyle, double? width, double? height, Color? background, Gradient? gradient, BoxBorder? border, double? borderRadius, Color? primaryBackgroundColor, BoxBorder? primaryBorder, EdgeInsets? margin, EdgeInsets? padding}) → ReactionsStyle -
merge(
ReactionsStyle? style) → ReactionsStyle -
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