Container border left code example
Example 1: container border left
Container(
decoration: BoxDecoration(
border: Border(
left: BorderSide(color: mainColor, width: 3),
),
),
),
Example 2: giving a cotainer a border color
Container(
child: Text(
'This is a Container',
textScaleFactor: 2,
style: TextStyle(color: Colors.black),
),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Colors.white,
border: Border(
left: BorderSide(
color: Colors.green,
width: 3,
),
),
),
height: 50,
),