Skip to content

Commit

Permalink
Merge pull request #1035 from EnsembleUI/bottom-sheet-update
Browse files Browse the repository at this point in the history
Fix bottom modal sheet scrolling issue
  • Loading branch information
vinothvino42 authored Dec 6, 2023
2 parents d72e67e + f4f04e1 commit 1122530
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions lib/action/bottom_modal_action.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,19 @@ class ShowBottomModalAction extends EnsembleAction {

if (widget != null) {
showModalBottomSheet(
context: context,
backgroundColor: _backgroundColor(scopeManager),
barrierColor: _barrierColor(scopeManager),
isScrollControlled: true,
enableDrag: _enableDrag(scopeManager),
showDragHandle: _enableDragHandler(scopeManager),
builder: (modalContext) =>
ContextScopeWidget(rootContext: modalContext, child: widget!))
.then((payload) {
context: context,
backgroundColor: _backgroundColor(scopeManager),
barrierColor: _barrierColor(scopeManager),
isScrollControlled: true,
enableDrag: _enableDrag(scopeManager),
showDragHandle: _enableDragHandler(scopeManager),
builder: (context) => Padding(
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).viewInsets.bottom,
),
child: ContextScopeWidget(rootContext: context, child: widget!),
),
).then((payload) {
if (onDismiss != null) {
return ScreenController().executeActionWithScope(
context, scopeManager, onDismiss!,
Expand Down

0 comments on commit 1122530

Please sign in to comment.