Skip to content

Commit

Permalink
feat: expose constraint in bottom sheet (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grodien authored Dec 12, 2024
1 parent 780e80f commit c051e30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/modal/sbb_modal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Future<T?> showSBBModalSheet<T>({
bool useRootNavigator = true,
bool useSafeArea = true,
bool enableDrag = true,
BoxConstraints? constraints,
}) {
return showModalBottomSheet<T>(
context: context,
Expand All @@ -105,6 +106,7 @@ Future<T?> showSBBModalSheet<T>({
useRootNavigator: useRootNavigator,
useSafeArea: useSafeArea,
enableDrag: enableDrag,
constraints: constraints,
builder: (BuildContext context) {
return SBBModalSheet(
title: title,
Expand Down Expand Up @@ -136,6 +138,7 @@ Future<T?> showCustomSBBModalSheet<T>({
bool useRootNavigator = true,
bool useSafeArea = true,
bool enableDrag = true,
BoxConstraints? constraints,
}) {
return showModalBottomSheet<T>(
context: context,
Expand All @@ -144,6 +147,7 @@ Future<T?> showCustomSBBModalSheet<T>({
useRootNavigator: useRootNavigator,
useSafeArea: useSafeArea,
enableDrag: enableDrag,
constraints: constraints,
builder: (BuildContext context) {
return SBBModalSheet.custom(
header: header,
Expand Down

0 comments on commit c051e30

Please sign in to comment.