border radius container code example

Example 1: 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
  )
)

Example 2: 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: <Widget>[
            Text(
              '6',
              style: TextStyle(
                  color: Colors.red[500],
                  fontSize: 25),
            ),
            Text(
             'sep',
              style: TextStyle(
                  color: Colors.red[500]),
            )
          ],
        ),
      ),
    );

Tags:

Misc Example