flutter container border radius only top code example
Example 1: flutter container border radius only left
borderRadius: BorderRadius.only(
topRight: Radius.circular(10.0),
bottomRight: Radius.circular(10.0)),
Example 2: flutter container border only top
decoration: BoxDecoration(
border: Border(
top: BorderSide(width: 16.0, color: Colors.lightBlue.shade600),
bottom: BorderSide(width: 16.0, color: Colors.lightBlue.shade900),
),
color: Colors.white,
),
Example 3: column round border flutter
Container(
decoration: BoxDecoration(
border: Border.all(
color: Colors.red[500],
),
color: Colors.green[500],
borderRadius: BorderRadius.all(Radius.circular(20))
),
child: ...
)
Example 4: round border container flutter
Container(
decoration: BoxDecoration(
border: Border.all(
color: Colors.red[500],
),
borderRadius: BorderRadius.all(Radius.circular(20))
),
child: ...
)
Example 5: round container flutter
Container(
width: screenWidth / 7,
decoration: BoxDecoration(
border: Border.all(
color: Colors.red[500],
),
),
child: Padding(
padding: EdgeInsets.all(5.0),
child: Column(
children: [
Text(
'6',
style: TextStyle(
color: Colors.red[500],
fontSize: 25),
),
Text(
'sep',
style: TextStyle(
color: Colors.red[500]),
)
],
),
),
);