Closed xiaosongmao123 closed 3 years ago
I remember I already thought about that. I may have to make a lot of internal changes, but I agree that it is a good feature. I'll check this out for you at night, okay?
Well, I found the first challenge that needs to be considered:
What to do when there are no parent pixels available for the declared values? Ignore pixels above the limit?
How to do it if I declare multiple values like:
MultiSplitViewController (width: [250, 300]))
Thanks alot ,it`s useful to me
Thank for you help
by now , i use split_view
can set minwidth
@override
Widget build(BuildContext context) {
return Scaffold(
body: SplitView(
gripSize: 6,
gripColor: MColors.pageLeftDividerColor,
minWidthSidebar: 270,
maxWidthSidebar: 440,
initialWeight: 0.25,
viewMode: SplitViewMode.Horizontal,
view1: PageLeft(),
view2: PageRight()));
}
for you ask
MultiSplitViewController (width: [250, 300]))
when i use minwidth,
It means that I know exactly the total width of the parent node
And I just need to set the minwidth of some child node,There will be at least one auto sized child node
So I don't care if the parent node can accommodate all the child node widths
No problem. This solution works for you.
I understood that you don't need fixed widths for each column. You only need to define a minimum width in pixels. Well, I already had minimalWeight
. In that case, it will be easy to have a minimalWidth
that can be internally converted to minimalWeight
. I'm closing the issue ok? Thank you, I will be developing this functionality in the next few days.
can we use px width? by now only percentage is supported
i want this: