Answers for "how to show border of container in flutter"

9

add border color to acouintainer in flutter

Container(
  height: 100,
  width: 100,
  decoration: BoxDecoration(
    border: Border.all(
      color: Colors.blue,
    ),
    borderRadius: BorderRadius.circular(10.0),
  ),
  child: Center(
    child: Text('mrflutter.com'),
  ),
),
Posted by: Guest on May-21-2020
1

container border left

Container(
  decoration: BoxDecoration(
  	border: Border(
  		left: BorderSide(color: mainColor, width: 3),
  	),
  ),
),
Posted by: Guest on September-24-2020

Code answers related to "how to show border of container in flutter"

Browse Popular Code Answers by Language