Answers for "hhow we will make container with rounded corners in flutter"

4

flutter container radius

Container(
  child: Text("It's text..."),
  decoration: BoxDecoration(
    borderRadius: BorderRadius.circular(10),  // radius of 10
    color: Colors.green  // green as background color
  )
)
Posted by: Guest on September-25-2020
2

flutter round container

QUESTION: Flutter give container rounded border

ANSWER1: 

Container(
    decoration: BoxDecoration(
    shape: BoxShape.circle,
    ),
    child:   ...
    ),

ANSWER 2:
Container(
  decoration: BoxDecoration(
    border: Border.all(
      color: Colors.red[500],
    ),
    borderRadius: BorderRadius.all(Radius.circular(20))
  ),
  child: ...
)
Posted by: Guest on August-18-2020

Code answers related to "hhow we will make container with rounded corners in flutter"

Browse Popular Code Answers by Language