DEV Community

Ammar Javed
Ammar Javed

Posted on

Draw Vertical Line Flutter

Sometimes we need vertical and horizontal lines to have separate sections in our app.
We can draw 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 thickness is 1, etc for drawing the vertical line.

Oldest comments (0)