Skip to main content

Flutter Properties 'B'

 

1. backgroundColor:

It is used to set the specified colour in the background of any material widget.
Type: Color
Example:
    backgroundColor:
 Colors.white
    backgroundColor: Colors.indigoAccent.shade400

2. borderRadius:

The corners of the box are rounded by this BorderRadius.It applies only to boxes with rectangular shapes; ignored if the shape is not BoxShape.rectangle.
Type: BorderRadiusGeometry
Example:
    borderRadius:
BorderRadius.circular(8.0)

3. border:

A border to draw above the background color, gradient, or image.
Type: BoxBorder
Example:
    border: Border.all(color: Colors.grey,width: 4,style: BorderStyle.solid)

Comments