From c051e3019f7ffb78d6628f1914a92946b810878d Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 12 Dec 2024 20:54:00 +0100 Subject: [PATCH] feat: expose constraint in bottom sheet (#240) --- lib/src/modal/sbb_modal.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/modal/sbb_modal.dart b/lib/src/modal/sbb_modal.dart index ad0d2d0..ddac6b0 100644 --- a/lib/src/modal/sbb_modal.dart +++ b/lib/src/modal/sbb_modal.dart @@ -97,6 +97,7 @@ Future showSBBModalSheet({ bool useRootNavigator = true, bool useSafeArea = true, bool enableDrag = true, + BoxConstraints? constraints, }) { return showModalBottomSheet( context: context, @@ -105,6 +106,7 @@ Future showSBBModalSheet({ useRootNavigator: useRootNavigator, useSafeArea: useSafeArea, enableDrag: enableDrag, + constraints: constraints, builder: (BuildContext context) { return SBBModalSheet( title: title, @@ -136,6 +138,7 @@ Future showCustomSBBModalSheet({ bool useRootNavigator = true, bool useSafeArea = true, bool enableDrag = true, + BoxConstraints? constraints, }) { return showModalBottomSheet( context: context, @@ -144,6 +147,7 @@ Future showCustomSBBModalSheet({ useRootNavigator: useRootNavigator, useSafeArea: useSafeArea, enableDrag: enableDrag, + constraints: constraints, builder: (BuildContext context) { return SBBModalSheet.custom( header: header,