caduandrade / multi_split_view

Provides horizontal or vertical multiple split view for Flutter.
MIT License
152 stars 29 forks source link

Allow combining the area size, min and max value using different units (pixels and flex) #80

Open caduandrade opened 2 months ago

The4Summers commented 2 months ago

I agree with that enhancement. One use case I have for example is to use flex to organize my panels, however I would like to specify n absolute minimum size of 35 pixels for example. I could also want to set an absolute maximum size in pixels. For the moment, to do that, I have to convert the 35 pixels I want as a minimum to an equivalent flex value, and for that I need to wrap my multi split view inside a LayoutBuilder to obtain its size so I can calculate what would be 35 pixels in flex value. It is working, but maybe there would be a better way to do that? Clearly, having the option to use flex values and at the same time the baility to specify min and max size in absolute values would be great!