How to create a view like this in Flutter?
Asked
Active
Viewed 160 times
1 Answers
0
I can give you an idea of doing it.
Row(
crossAxisAlignment: CrossAxisAlignment.center,
Text("a"),
Column(
Text("m"),
Container(height: 2.0),
Text("v2)
),
Container(width: 2.0)
)

CopsOnRoad
- 237,138
- 77
- 654
- 440
-
Thanks but I want a divider in between m and v2 – Asfaque Ahmed Oct 28 '18 at 11:52
-
Updated the answer. You needed a `Container` in the `Column` with some height. – CopsOnRoad Oct 28 '18 at 11:54
-
This one is taking whole screen. But I want it to be wrap-content like Android – Asfaque Ahmed Oct 28 '18 at 14:56
-
@AsfaqueAhmed You need to use `mainAxisSize` property on Row or Column depending on your need. – CopsOnRoad Oct 28 '18 at 14:57