xxxxxxxxxx
child: Divider(
indent: 150, //150px from left side
endIndent: 150, //150px from right side
)
xxxxxxxxxx
const Divider(
thickness: 5, // thickness of the line
indent: 20, // empty space to the leading edge of divider.
endIndent: 20, // empty space to the trailing edge of the divider.
color: Colors.black, // The color to use when painting the line.
height: 20, // The divider's height extent.
),
xxxxxxxxxx
// divider without comments, now you can copy paste directly.
const Divider(
thickness: 5,
indent: 20,
endIndent: 20,
color: Colors.black,
height: 20,
),
xxxxxxxxxx
SomeTimes I used Container Instead of Divider
Divider(
thickness: 5, // thickness of the line
indent: 20, // empty space to the leading edge of divider.
endIndent: 20, // empty space to the trailing edge of the divider.
color: Colors.black, // The color to use when painting the line.
height: 20, // The divider's height extent.
),