modal_bottom_sheet 3.0.0 copy "modal_bottom_sheet: ^3.0.0" to clipboard
modal_bottom_sheet: ^3.0.0 copied to clipboard

Create awesome and powerful modal bottom sheets. Material, Cupertino iOS 13 or create your own style

3.0.0 - Flutter 3.19 #

  • Migrates to Flutter 3.19
  • ModalBottomSheetRoute has been renamed to ModalSheetRoute
  • WillPopScope support will be replaced for PopScope functionality

3.0.0-pre - Flutter 3.7 #

  • Migrates to Flutter 3.7
  • ModalBottomSheetRoute has been renamed to ModalSheetRoute so it does not conflict with the new class from Flutter 3.7

2.1.1 #

  • Bug fixes

2.1.0 - Flutter 3.0 #

  • Migrates to Flutter 3.0
  • Use PageRoute to allow Hero animations

2.0.1 - Small fixes #

  • Fixes bug with will pop scope
  • Replaces VelocityTracker deprecated constructor
  • Add optional RouteSettings to all showModal methods

2.0.0-nullsafety.1 - Null Safety support #

  • Fixes #119 & #113

1.0.0 - An optimized modal + Breaking change #

  • An optimized builder function.
  • The builder param has changed from:
showMaterialModalBottomSheet(
  context: context,
  builder: (context, scrollController) {
       return SingleChildScrollView(
        controller: scrollController,
        child: Container()
      )
  },
)

to

showMaterialModalBottomSheet(
  context: context,
  builder: (context) {
      return SingleChildScrollView(
        controller: ModalScrollController.of(context),
        child: Container()
      )
  },
)

Now you can access the modal's scrollController from any inside widget like ModalScrollController.of(context).

[1.0.1-dev] - Fix instance member 'opaque' can't accessed in an initalizer. #

[1.0.0-dev] - Improved performance and breaking change #

  • The builder param has changed from:
showMaterialModalBottomSheet(
  context: context,
  builder: (context, scrollController) {
       return SingleChildScrollView(
        controller: scrollController,
        child: Container()
      )
  },
)

to

showMaterialModalBottomSheet(
  context: context,
  builder: (context) {
      return SingleChildScrollView(
        controller: ModalScrollController.of(context),
        child: Container()
      )
  },
)
  • Appart from the visual change, with this changes you can access the controller from every inner widget without having to pass the controller to every constructor. Also now the builder method will be called only once. Before it was calling multiple times while the modal was being animated.

[0.2.1+2] - Reverse fix Flutter 22 beta breaking change #

[0.2.1+1-dev] - Fix Flutter 22 beta breaking change #

[0.2.0+1] - ScrollView bug fix #

  • Fix bug when scrollview was not used

[0.2.0] - New Cool Features #

  • Added support for scroll-to-top by tapping the status bar on iOS devices.
  • Use curveAnimation to define a custom curve animation for the modal transition
  • Bug fixes releated to horizontal scroll, clamping physics and othes.

[0.1.6] - New custom params #

  • Use duration to define the opening duration of the modal
  • Change the top radius of the cupertino bottom sheet Thanks to @bierbaumtim @troyanskiy @rodineijf for the contributions

[0.1.5] - Scroll improvements and bug fixes #

  • Support for closing a modal with a scroll view by dragging down fast.
  • Fix assertion in CupertinoBottomSheet and BottomSheetRoute when using the CupetinoApp or WidgetsApp as root
  • Fix assertion when scrollController isn't used by the builder

[0.1.4] - Clean code and fix small bugs #

[0.1.0] - Package Release. #

[0.0.1] - Pre Release. #

3.4k
likes
150
points
236k
downloads

Publisher

verified publisherjaimeblasco.com

Weekly Downloads

Create awesome and powerful modal bottom sheets. Material, Cupertino iOS 13 or create your own style

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on modal_bottom_sheet