jamesblasco / modal_bottom_sheet

Flutter | Create advanced modal bottom sheets. Material, Cupertino or your own style
https://pub.dev/packages/modal_bottom_sheet
MIT License
1.83k stars 461 forks source link

Fixes #228: BottomSheetRoute throws if declared as initial route #379

Closed kvenn closed 8 months ago

kvenn commented 8 months ago

Fixes: https://github.com/jamesblasco/modal_bottom_sheet/issues/228

If you set your initial route to a page that uses a ModalBottomSheetRoute, it will cause a crash.

This prevents that crash.

jamesblasco commented 8 months ago

Thank you for the fix!