Draw Vertical Line Flutter
Jan 26, 2023
Sometimes we need vertical and horizontal lines to have separate sections in our app.
We can draw a vertical line using the below code
VerticalDivider(
indent: 10,
thickness: 1,
width: 5,
color: Colors.yellow,
endIndent: 10,
),
In the above example, we set the color of the line to yellow, the width is 5, etc for drawing the vertical line.