DefaultReviewDialog class

Implemented types
Implementers

Constructors

DefaultReviewDialog({required BuildContext context, String satisfactionText = 'How do you feel about this app?', Widget satisfactionLikeIcon = const Icon(Icons.thumb_up), String satisfactionLikeText = 'Like', Widget satisfactionDislikeIcon = const Icon(Icons.thumb_down, color: Colors.grey), String satisfactionDislikeText = 'Dislike', Color? satisfactionDislikeTextColor = Colors.grey, bool satisfactionBarrierDismissible = true, String opinionText = 'Please let us know what we can do to improve this app', String opinionSubmitText = 'Submit', String opinionCancelText = 'Cancel', Color? opinionCancelTextColor = Colors.grey, String opinionAnonymousText = 'Completely anonymous', void opinionFeedback(String opinion)?, Color? barrierColor})
Default review dialog.
const

Properties

barrierColor Color?
The barrierColor argument is used to specify the color of the modal barrier that darkens everything below both satisfaction and opinion dialog. If null the default color Colors.black54 is used.
final
context BuildContext
Current Buildcontext.
final
hashCode int
The hash code for this object.
no setterinherited
opinionAnonymousText String
This is a small text that shows under the TextField on the left side to tell the user that the opinion dialog does not collect any data that is linked to them.
final
opinionCancelText String
Text for the cancel button.
final
opinionCancelTextColor Color?
Color of the opinionCancelButtonText text.
final
opinionFeedback → (void Function(String opinion)?)
The user's opinion feedback that returning when the user presses submit.
final
opinionSubmitText String
Text for the submit button.
final
opinionText String
Text for the opinion dialog.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
satisfactionBarrierDismissible bool
The barrierDismissible argument is used to indicate whether tapping on the barrier will dismiss the satisfaction dialog. It is true by default and can not be null. When the satisfaction dialog is closed by this way, the app won't show the opinion dialog.
final
satisfactionDislikeIcon Widget
Icon for the dislike button. This icon should have the same color with satisfactionDislikeTextColor.
final
satisfactionDislikeText String
Text for the dislike button.
final
satisfactionDislikeTextColor Color?
Color of the satisfactionDislikeText text.
final
satisfactionLikeIcon Widget
Icon for the like button.
final
satisfactionLikeText String
Text for the like button.
final
satisfactionText String
Shows text to ask for user satisfaction.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
opinion() Future<void>
This dialog will be shown when the user isn't satisfied with the app (which means the satisfaction dialog returns false). You can write your logic to send user's feedback to your server.
override
satisfaction() Future<bool?>
This dialog will be shown to ask for users' satisfaction with the app, when true is returned, the in-app request will be shown. When false is returned, the opinion dialog will be shown. The opinion dialog won't be shown when returning null.
override
toString() String
A string representation of this object.
inherited

Operators

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