*Sheet.keyboardDismissBehavior
is now removed and replaced with SheetKeyboardDismissible
widget. You can retain existing behavior by wrapping a sheet with SheetKeyboardDismissible
and setting the same KeyboardDismissBehavior
object to its dismissBehavior
property.
ScrollableSheet.keyboardDismissBehavior
DraggableSheet.keyboardDismissBehavior
NavigationSheet.keyboardDismissBehavior
DraggableSheet(
keyboardDismissBehavior: const KeyboardDismissBehavior.onDrag(),
child: Container(
color: Colors.white,
width: double.infinity,
height: 500,
)
);
Wrap a sheet with SheetKeyboardDismissible
widget (the same applies to ScrollableSheet
and NavigationSheet
).
SheetKeyboardDismissible(
dismissBehavior: const KeyboardDismissBehavior.onDrag(),
child: DraggableSheet(
child: Container(
color: Colors.white,
width: double.infinity,
height: 500,
),
),
);