RatingDialog class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- RatingDialog
Constructors
- RatingDialog({required Text title, Text? message, Widget? image, required String submitButtonText, TextStyle submitButtonTextStyle = const TextStyle(fontWeight: FontWeight.bold, fontSize: 17), required dynamic onSubmitted(RatingDialogResponse), Color starColor = Colors.amber, double starSize = 40.0, Function? onCancelled, bool showCloseButton = true, bool force = false, double initialRating = 0, bool enableComment = true, String commentHint = 'Tell us your comments'})
-
const
Properties
- commentHint → String
-
The comment's TextField hint text
final
- enableComment → bool
-
Display comment input area
final
- force → bool
-
Disables the cancel button and forces the user to leave a rating
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → Widget?
-
The top image used for the dialog to be displayed
final
- initialRating → double
-
The initial rating of the rating bar
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- message → Text?
-
The dialog's message/description text
final
- onCancelled → Function?
-
called when user cancels/closes the dialog
final
- onSubmitted → dynamic Function(RatingDialogResponse)
-
Returns a RatingDialogResponse with user's rating and comment values
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCloseButton → bool
-
Show or hide the close button
final
- starColor → Color
-
The rating bar (star icon & glow) color
final
- starSize → double
-
The size of the star
final
- submitButtonText → String
-
The submit button's label/text
final
- submitButtonTextStyle → TextStyle
-
The submit button's label/text
final
- title → Text
-
The dialog's title
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< RatingDialog> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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
-
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}) → 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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited