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

Maximum Weight and Maximum Size Support? #44

Closed JohnF17 closed 2 months ago

JohnF17 commented 1 year ago

Hello @caduandrade, I understand you are busy and I don't expect you to return a message back soon (🤞), just here to inquire about a potential support for maximum weight and maximum size.

P.S Awesome package

caduandrade commented 1 year ago

Thanks @JohnF17 !

I think it would be possible. Of course, the maximum of one area influences the other.

I'm creating a decision tree diagram to represent the already complex algorithm. I'm wanting to resolve all issues at once, first representing this diagram to make it easier.

JohnF17 commented 1 year ago

That is wonderful news, can't wait for the next update.

And might I just add, I was not expecting such a fast response, thank you for taking the time to consider this and responding as quick as you did 🙏

ozkayas commented 1 year ago

@JohnF17 I am using the controller areas as follows and it works in version 2.2.0. note: Looks like the latest version does not allow this usage. _horizontalController.areas = [Area(weight: 1), Area(minimalSize: 200)];

caduandrade commented 1 year ago

Hi @ozkayas !

Hey! Sorry did not understand. I tested the minimal size in the new version and apparently, it's ok. But the weight is affected. As the second has a minimum size, the algorithm ignores the weight 1 of the first area.

When the total weight is 1 and new areas are added, part of the weight of the old ones is redistributed.

I'm finishing the diagrams of the algorithms to make them easier to understand. Then I will complete with the new features.

How is it going:

behavior

caduandrade commented 3 months ago

Will be resolved by #54

caduandrade commented 2 months ago

Better late than never (version 3.0.0) :grimacing: