AdaptiveRatingIndicator class

The rating bar allows users to view and set ratings that reflect degrees of satisfaction with content and services. Users can interact with the rating control with touch, pen, mouse, gamepad or keyboard. The follow guidance shows how to use the rating control's features to provide flexibility and customization.

Use this widget to create rating indicator with platform-specific styling and behavior:

Inheritance
Available extensions

Constructors

AdaptiveRatingIndicator({CoreAdaptiveBuilder<Builder<FluentThemeData, CoreWindowsProperty?>, Builder<MacosThemeData, CoreMacosProperty?>>? builders, Key? key, ValueChanged<double>? onChanged, double spacing = 2.0, double iconSize = 20, Color? unratedIconColor, Color? ratedIconColor, String? semanticLabel, AdpIcons icon = _kRatingBarIcon, required int amount, required double rating})
Creates a adp rating bar.
const

Properties

amount → int
The amount of stars in the bar.
final
builders → CoreAdaptiveBuilder<Builder<FluentThemeData, CoreWindowsProperty?>, Builder<MacosThemeData, CoreMacosProperty?>>?
Builders for adapting the component based on platform and theme.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
icon → AdpIcons
The icon used in the bar. If null, uses _kRatingBarIcon
final
iconSize → double
The size of the icon. If null, uses 20px.
final
isDisabled → bool
no setter
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onChanged → ValueChanged<double>?
Called when the rating is changed. If this is null, the RatingBar will not detect touch inputs
final
properties → CoreProperties<CoreWindowsProperty, CoreMacosProperty>?
Properties for customizing the visual and functional aspects of the adaptive component.
finalinherited
ratedIconColor → Color?
The color of the icons that are rated.
final
rating → double
The current rating of the bar.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
Semantic label for the rating indicator.
final
spacing → double
The space between each icon.
final
unratedIconColor → Color?
The color of the icons that are not rated.
final

Methods

applyDisabledEffect(bool isDisabled, [double disabledOpacity = 0.5, bool? ignoringPointer]) → Widget

Available on Widget, provided by the ApplyDisabledEffect extension

Wraps the current widget with an AnimatedOpacity to visually indicate whether the widget is enabled or disabled.
build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
inherited
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
getAdaptiveComponent(BuildContext context) → Widget
inherited
macos(BuildContext context, [CoreMacosProperty? property]) → Widget
margeWith(Widget? child, [double? space = 4.0, Axis direction = Axis.horizontal]) → Widget

Available on Widget, provided by the MergeToChild extension

Merges the current widget with child, separated by a SizedBox.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited
windows(BuildContext context, [CoreWindowsProperty? property]) → Widget

Operators

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