Skip to content

Commit

Permalink
add extra check for review dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed May 15, 2024
1 parent 11c1c27 commit 654d94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Frontend/pages/shell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class _NavigationDrawerExampleState extends ConsumerState<NavigationDrawerExampl
if (value.get(shouldDisplayReview, defaultValue: shouldDisplayReviewDefault) && !value.get(hasDisplayedReview, defaultValue: hasDisplayedReviewDefault)) {
inAppReview.isAvailable().then(
(isAvailable) {
if (isAvailable && value.get(shouldDisplayReview, defaultValue: shouldDisplayReviewDefault) && !value.get(hasDisplayedReview, defaultValue: hasDisplayedReviewDefault)) {
if (isAvailable && value.get(shouldDisplayReview, defaultValue: shouldDisplayReviewDefault) && !value.get(hasDisplayedReview, defaultValue: hasDisplayedReviewDefault) && mounted) {
inAppReview.requestReview();
Future(
// Don't refresh widget in same frame
Expand Down

0 comments on commit 654d94f

Please sign in to comment.