Hi Flutter community:)
Working on a flutter app and seeking help with UI widget.
I'm lost on how to set child's height according to a parent's height.
Need to create a vertical divider(or Container with custom height) and set it's height to maximum of its parent because the parent height(which is a column in my case) will change depending on inside widgets.
I've found ways of creating vertical divider but with a fixed height. Tried using BoxFit, BoxConstraints, FittedBox and few other ways and failed to set height of a parent.
The divider is placed inside a Container>Row>Column->Container and divider's height should be the height of a Column.
As in example of this image:
https://i.sstatic.net/uUWjF.png
p.s. all widget is placed inside a ListView
Column(
children: <Widget>[
Container(
color: Colors.blue,
width: 5.0,
//height: -> setting to maximum of its parent
),
],
),
Container(decoration: ..)
to add a colored border to the left? – JanneryDivider
inside theContainer
– Strother