Skip to content

Commit f0340fc

Browse files
vinay769g123k
andauthored
fix: UI padding for better layout (#6509)
Co-authored-by: Edouard Marquez <[email protected]>
1 parent d1ba3f8 commit f0340fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/smooth_app/lib/pages/preferences/user_preferences_page.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ class _UserPreferencesPageState extends State<UserPreferencesPage>
172172

173173
final String? headerAsset;
174174
final Color? headerColor;
175+
175176
if (widget.type == null) {
176177
final List<PreferencePageType> items =
177178
PreferencePageType.getPreferencePageTypes(userPreferences);
@@ -212,8 +213,9 @@ class _UserPreferencesPageState extends State<UserPreferencesPage>
212213
headerColor = abstractUserPreferences.getHeaderColor();
213214
}
214215

215-
const EdgeInsetsGeometry padding = EdgeInsetsDirectional.only(
216+
final EdgeInsetsGeometry padding = EdgeInsetsDirectional.only(
216217
top: MEDIUM_SPACE,
218+
bottom: MediaQuery.viewPaddingOf(context).bottom,
217219
);
218220
final ListView list;
219221
if (addDividers) {

0 commit comments

Comments
 (0)