It does not show the Overlay bottom sheet by itself. Users have to do some ceremonial work to show it as the bottom sheet.
To show this overlay as a bottom sheet.
The above code takes care of showing the model, changing its top left and right radius.
Also, TUIMobileOverlayMenu assumes that it will be displayed inside the bottom sheet. So it pops from the current stack which dismisses the bottom sheet.
I think we should have a TUI version of the showModalBottomSheet function that removes the above boilerplate code.
Should we rename the callback action to onDismiss?
action is not getting invoked right now. We need to invoke it when the bottom sheet is getting dismissed.
Add support for more buttons.? Right now, only the dismiss (X) button is added by default. It does not allow over header and overlay footer to be used to their full extent.
We have to do this:
The above code takes care of showing the model, changing its top left and right radius. Also,
TUIMobileOverlayMenu
assumes that it will be displayed inside the bottom sheet. So it pops from the current stack which dismisses the bottom sheet.I think we should have a TUI version of the
showModalBottomSheet
function that removes the above boilerplate code.action
toonDismiss
?action
is not getting invoked right now. We need to invoke it when the bottom sheet is getting dismissed.