Skip to content

v1.4.0

Latest

Choose a tag to compare

@norelease-bot norelease-bot released this 23 Nov 07:52
73d3dd9
  • feat: Add onDismiss callback to SheetKeyboardDismissible (#663) - 8eb87ef
  • fix: Sheet offset lags behind its height for one frame when the iOS swipe back gesture starts (#666) - 6115af7
  • fix: Modal sheet is not dismissed by a slow swipe past the dismissal offset (#658) - 3a983b7
  • fix: SheetController.value throws before the sheet is laid out (#657) - 7173cad
  • fix: PagedSheet's default Android transition fades through the surface color (#653) - abdaa42

🎉 New Features

Dismiss a Modal Sheet Together with the Keyboard

Requested in #656, added in #663

Added the onDismiss callback to SheetKeyboardDismissible. It is called when the widget closes the on-screen keyboard because the user drags the sheet.

A use case is to close the keyboard and the modal sheet with a single swipe down:

SheetKeyboardDismissible(
  dismissBehavior: const SheetKeyboardDismissBehavior.onDragDown(),
  onDismiss: () => Navigator.maybePop(context),
  child: Sheet(...),
);
without onDismiss with onDismiss
before.mov
after.mov