Skip to content

Commit

Permalink
fix: Prices feedback form missing SafeArea-like (#5448)
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k authored Jun 28, 2024
1 parent 1c4b959 commit 08a8df1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/smooth_app/lib/pages/prices/prices_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ class PricesPage extends StatelessWidget {
final UserPreferences userPreferences,
_,
) {
/*if (!userPreferences.shouldShowPricesFeedbackForm) {
if (!userPreferences.shouldShowPricesFeedbackForm) {
return EMPTY_WIDGET;
}*/
}

return const _PricesFeedbackForm();
},
Expand All @@ -85,10 +85,13 @@ class _PricesFeedbackForm extends StatelessWidget {
final SmoothColorsThemeExtension? themeExtension =
Theme.of(context).extension<SmoothColorsThemeExtension>();

final double bottomPadding = MediaQuery.viewPaddingOf(context).bottom;

return Ink(
width: double.infinity,
height: kBottomNavigationBarHeight,
height: kBottomNavigationBarHeight + bottomPadding,
color: themeExtension!.primaryBlack,
padding: EdgeInsetsDirectional.only(bottom: bottomPadding),
child: IconTheme(
data: const IconThemeData(color: Colors.white),
child: InkWell(
Expand All @@ -99,7 +102,7 @@ class _PricesFeedbackForm extends StatelessWidget {
context.read<UserPreferences>().markPricesFeedbackFormAsCompleted();
},
child: Padding(
padding: const EdgeInsets.symmetric(
padding: const EdgeInsetsDirectional.symmetric(
horizontal: MEDIUM_SPACE,
vertical: SMALL_SPACE,
),
Expand Down

0 comments on commit 08a8df1

Please sign in to comment.