FriendlyReviewDialog class
- Inheritance
-
- Object
- DefaultReviewDialog
- FriendlyReviewDialog
Constructors
- FriendlyReviewDialog({required BuildContext context, String satisfactionText = 'How do you feel about this app?', String satisfactionLikeText = 'Good', Widget satisfactionLikeIcon = const Icon(FontAwesomeIcons.faceSmile), String satisfactionDislikeText = 'Improve', Widget satisfactionDislikeIcon = const Icon(FontAwesomeIcons.faceFrownOpen, color: Colors.grey), 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})
- The same as the DefaultReviewDialog but with friendly Icons.
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. Ifnull
the default color Colors.black54 is used.finalinherited - context → BuildContext
-
Current Buildcontext.
finalinherited
- 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.
finalinherited
- opinionCancelText → String
-
Text for the cancel button.
finalinherited
- opinionCancelTextColor → Color?
-
Color of the
opinionCancelButtonText
text.finalinherited - opinionFeedback → (void Function(String opinion)?)
-
The user's opinion feedback that returning when the user presses
submit
.finalinherited - opinionSubmitText → String
-
Text for the submit button.
finalinherited
- opinionText → String
-
Text for the opinion dialog.
finalinherited
- 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 istrue
by default and can not benull
. When the satisfaction dialog is closed by this way, the app won't show the opinion dialog.finalinherited - satisfactionDislikeIcon → Widget
-
Icon for the dislike button. This icon should have the same color with
satisfactionDislikeTextColor.
finalinherited
- satisfactionDislikeText → String
-
Text for the dislike button.
finalinherited
- satisfactionDislikeTextColor → Color?
-
Color of the
satisfactionDislikeText
text.finalinherited - satisfactionLikeIcon → Widget
-
Icon for the like button.
finalinherited
- satisfactionLikeText → String
-
Text for the like button.
finalinherited
- satisfactionText → String
-
Shows text to ask for user satisfaction.
finalinherited
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.inherited -
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. Whenfalse
is returned, the opinion dialog will be shown. The opinion dialog won't be shown when returningnull
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited