Open kttary opened 2 years ago
Can't you already change the width of the sliding panel effectively by playing with the margin:
parameter? I've got a demo in https://github.com/akshathjain/sliding_up_panel/pull/303/commits/4a7b51a670eb8385e54db0dbb0d243c067e59313 (although the general idea should work regardless of the original PR fix). And to collapse up, conditionally set slideDirection: SlideDirection.DOWN
Is it possible to auto shrink the width of the the widget when using landscape orientation? And even more add resize handler to collapse the widget when we are using medium or larger screen? I attached some image for better description:
Landscape orientation on small secreen, the width of widget shrink to the left without resize handler at the bottom. There is enough space to interact with maps:![landscape_small_screen](https://user-images.githubusercontent.com/39557649/177454589-a13ef288-eeeb-4e34-89f2-54f81a0ce920.jpeg)
On medium or large screen, the widget shrink to the lefft with resize handler at the bottom so we can resize in if we need more space to interact with the map:![landscape_medium_or_big_screen](https://user-images.githubusercontent.com/39557649/177454602-38f7bb4a-ef57-497b-bb3c-d5ef308e26c7.jpeg)
The widget is collapsible on medium or large screen:![Landscape_collapsed](https://user-images.githubusercontent.com/39557649/177454622-a3aabe2c-6617-4dc2-b035-17d6dbeb01ce.jpeg)
Currently it consume almost all screen on desktop application:![image](https://user-images.githubusercontent.com/39557649/177455332-19f4a9af-bc33-4bab-b8c9-3fdfbf549df1.png)