Skip to content

Commit 7ec683e

Browse files
committed
fix(shared): wrap content limitation bottom sheet in SingleChildScrollView
This change prevents overflow errors when the available space is smaller than the widget's required space. It allows the content to be scrollable within the bottom sheet.
1 parent f52e93d commit 7ec683e

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)