Skip to content

Commit 785e732

Browse files
authored
Merge pull request #149 from flutter-news-app-full-source-code/147-fix-content-limitation-ui-overflow-in-landscape-mode
fix(shared): wrap content limitation bottom sheet in SingleChildScrol…
2 parents f52e93d + 7ec683e commit 785e732

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

lib/shared/widgets/content_limitation_bottom_sheet.dart

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -137,21 +137,23 @@ class _BaseLimitView extends StatelessWidget {
137137

138138
return Padding(
139139
padding: const EdgeInsets.all(AppSpacing.paddingLarge),
140-
child: Column(
141-
mainAxisSize: MainAxisSize.min,
142-
children: [
143-
Icon(icon, size: AppSpacing.xxl * 1.5, color: colorScheme.primary),
144-
const SizedBox(height: AppSpacing.lg),
145-
Text(
146-
title,
147-
style: textTheme.headlineSmall,
148-
textAlign: TextAlign.center,
149-
),
150-
const SizedBox(height: AppSpacing.md),
151-
Text(body, style: textTheme.bodyLarge, textAlign: TextAlign.center),
152-
const SizedBox(height: AppSpacing.lg),
153-
child,
154-
],
140+
child: SingleChildScrollView(
141+
child: Column(
142+
mainAxisSize: MainAxisSize.min,
143+
children: [
144+
Icon(icon, size: AppSpacing.xxl * 1.5, color: colorScheme.primary),
145+
const SizedBox(height: AppSpacing.lg),
146+
Text(
147+
title,
148+
style: textTheme.headlineSmall,
149+
textAlign: TextAlign.center,
150+
),
151+
const SizedBox(height: AppSpacing.md),
152+
Text(body, style: textTheme.bodyLarge, textAlign: TextAlign.center),
153+
const SizedBox(height: AppSpacing.lg),
154+
child,
155+
],
156+
),
155157
),
156158
);
157159
}

0 commit comments

Comments
 (0)