caduandrade / multi_split_view

Provides horizontal or vertical multiple split view for Flutter.
https://caduandrade.github.io/multi_split_view/
MIT License
129 stars 24 forks source link

After the window is resized, the Area disappears #61

Closed feimenggo closed 1 month ago

feimenggo commented 2 months ago

After the window is resized, the Area disappears.

https://github.com/caduandrade/multi_split_view/assets/12608693/0e88320c-e55d-4982-9cd4-6edd38768634

caduandrade commented 1 month ago

Hi @feimenggo !

Ignoring the minimum, the area is expected to disappear once there is no more space. Once it has shrunk, it does not recover because the size value has already changed in the area.

But in this case, I understand that I could recover the minimum size. I didn't even consider this case.

Perhaps you could have a policy similar to SizeUnderflowPolicy ( stretchFirst, stretchLast, stretchAll ) to define the order of areas that must have a minimum area size recovered.

caduandrade commented 1 month ago

Hi @feimenggo !

Done. Version 3.0.1

Tks!