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.89k stars 474 forks source link

How to build stateful bottom sheet that persists on re-open? #139

Closed sabetAI closed 3 years ago

sabetAI commented 3 years ago

How do I pass a stateful widget to the bottom sheet? I'd like it's state to persist when closing and re-opening the bottom sheet.

jamesblasco commented 3 years ago

This is not possible, modal bottom sheets are normal routes, therefore you can't close it and then restore it again