Skip to content

Commit 7cb6f39

Browse files
added padding to the "app review" card
1 parent cbb5e6d commit 7cb6f39

1 file changed

Lines changed: 45 additions & 40 deletions

File tree

packages/smooth_app/lib/pages/scan/carousel/main_card/bottom_cards/scan_app_review_card.dart

Lines changed: 45 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -27,51 +27,56 @@ class ScanAppReview extends StatelessWidget {
2727
return ScanBottomCardContainer(
2828
title: appLocalizations.app_review_title,
2929
onClose: () => context.read<AppReviewProvider>().hide(),
30-
body: Row(
31-
children: <Widget>[
32-
Expanded(
33-
child: _AppReviewItem(
34-
asset: 'assets/misc/tagline_0.svg.vec',
35-
text: appLocalizations.app_review_low,
36-
backgroundColor: const Color(0xFFD44C29),
37-
borderRadius: BorderRadiusHelper.fromDirectional(
38-
context: context,
39-
bottomStart: ScanBottomCardContainer.radius,
40-
),
41-
onTap: () => _showUserFeedBackModalSheet(
42-
context,
43-
AppReviewResult.unsatisfied,
30+
body: Padding(
31+
padding: const EdgeInsets.symmetric(vertical: LARGE_SPACE),
32+
child: Row(
33+
children: <Widget>[
34+
Expanded(
35+
child: _AppReviewItem(
36+
asset: 'assets/misc/tagline_0.svg.vec',
37+
text: appLocalizations.app_review_low,
38+
backgroundColor: const Color(0xFFD44C29),
39+
borderRadius: BorderRadiusHelper.fromDirectional(
40+
context: context,
41+
bottomStart: ScanBottomCardContainer.radius,
42+
),
43+
onTap: () => _showUserFeedBackModalSheet(
44+
context,
45+
AppReviewResult.unsatisfied,
46+
),
4447
),
4548
),
46-
),
47-
Expanded(
48-
child: _AppReviewItem(
49-
asset: 'assets/misc/tagline_1.svg.vec',
50-
text: appLocalizations.app_review_medium,
51-
backgroundColor: const Color(0xFFFF8C14),
52-
borderRadius: BorderRadius.zero,
53-
onTap: () =>
54-
_showUserFeedBackModalSheet(context, AppReviewResult.neutral),
49+
Expanded(
50+
child: _AppReviewItem(
51+
asset: 'assets/misc/tagline_1.svg.vec',
52+
text: appLocalizations.app_review_medium,
53+
backgroundColor: const Color(0xFFFF8C14),
54+
borderRadius: BorderRadius.zero,
55+
onTap: () => _showUserFeedBackModalSheet(
56+
context,
57+
AppReviewResult.neutral,
58+
),
59+
),
5560
),
56-
),
57-
Expanded(
58-
child: _AppReviewItem(
59-
asset: 'assets/misc/tagline_2.svg.vec',
60-
text: appLocalizations.app_review_high,
61-
backgroundColor: const Color(0xFF6CB564),
62-
borderRadius: BorderRadiusHelper.fromDirectional(
63-
context: context,
64-
bottomEnd: ScanBottomCardContainer.radius,
61+
Expanded(
62+
child: _AppReviewItem(
63+
asset: 'assets/misc/tagline_2.svg.vec',
64+
text: appLocalizations.app_review_high,
65+
backgroundColor: const Color(0xFF6CB564),
66+
borderRadius: BorderRadiusHelper.fromDirectional(
67+
context: context,
68+
bottomEnd: ScanBottomCardContainer.radius,
69+
),
70+
onTap: () async {
71+
final AppReviewProvider appReview = context
72+
.read<AppReviewProvider>();
73+
await ApplicationStore.openAppReview();
74+
appReview.markAsReviewed(AppReviewResult.satisfied);
75+
},
6576
),
66-
onTap: () async {
67-
final AppReviewProvider appReview = context
68-
.read<AppReviewProvider>();
69-
await ApplicationStore.openAppReview();
70-
appReview.markAsReviewed(AppReviewResult.satisfied);
71-
},
7277
),
73-
),
74-
],
78+
],
79+
),
7580
),
7681
);
7782
}

0 commit comments

Comments
 (0)