StarRatingOptions class
Just a little class that allows to customize some rating bar options.
Constructors
- StarRatingOptions({RatingWidget? ratingWidget, IndexedWidgetBuilder? itemBuilder, double initialRating = 0, double minRating = 0, bool allowHalfRating = false, EdgeInsetsGeometry itemPadding = const EdgeInsets.symmetric(horizontal: 2), double itemSize = 40, int itemCount = 5, Color itemColor = Colors.orangeAccent, Color? borderColor, bool glow = false, double glowRadius = 2, Color glowColor = Colors.orangeAccent, Axis direction = Axis.horizontal, bool tapOnlyMode = false, WrapAlignment wrapAlignment = WrapAlignment.start})
-
Creates a new star rating options instance.
const
Properties
- allowHalfRating → bool
-
Whether we allow half-stars ratings.
final
- borderColor → Color?
-
Border color of the default Rating Widget. Defaults to itemColor
final
- direction → Axis
-
The direction.
final
- glow → bool
-
Whether the items should glow.
final
- glowColor → Color
-
The items glow color.
final
- glowRadius → double
-
The items glow radius.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialRating → double
-
The initial rating.
final
- itemBuilder → IndexedWidgetBuilder?
-
The item builder.
Will override the ratingWidget setting if specified.
final
- itemColor → Color
-
Item Color
final
- itemCount → int
-
The item count.
final
- itemPadding → EdgeInsetsGeometry
-
The items padding.
final
- itemSize → double
-
The items size.
final
- minRating → double
-
The minimum rating.
final
- ratingWidget → RatingWidget?
-
The rating widget.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tapOnlyMode → bool
-
If set to
true
, this will disable the drag feature (and also the half rating feature).final - wrapAlignment → WrapAlignment
-
How items should be disposed in the main axis.
final
Methods
-
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