Search
 
SCRIPT & CODE EXAMPLE
 

DART

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: ...
)
Comment

How to round container corners in flutter

decoration: BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(10)))
Comment

round container boundary in flutter

decoration: InputDecoration(
    contentPadding: const EdgeInsets.all(8.0),
    border: OutlineInputBorder(
        borderRadius: BorderRadius.circular(5.0),
    ),
    hintText: "0",
),
Comment

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]),
            )
          ],
        ),
      ),
    );
Comment

PREVIOUS NEXT
Code Example
Dart :: flutter dropdownbutton enum 
Dart :: flutter chip padding 
Dart :: close drawer flutter 
Dart :: flutter var type 
Dart :: Add image with circular shape from corners in Flutter 
Dart :: flutter screen size 
Dart :: flutter linearprogressindicator value 
Dart :: how to load folders in flutter 
Dart :: alertdialog flutter press outside to disappera 
Dart :: flutter tooltip height 
Dart :: flutter orientation 
Dart :: convert object to int flutter 
Dart :: dart reverse list 
Dart :: size row to maximum flutter 
Dart :: time difference flutter 
Dart :: flutter widget for space 
Dart :: images with text in it flutter 
Dart :: flutter datetime 
Dart :: Bad state: Stream has already been listened to 
Dart :: consumer flutter 
Dart :: flutter clipoval 
Dart :: Running Gradle task assembleDebug.... 
Dart :: flutter alert dialog shape 
Dart :: Send HTTP Get request in Flutter or Dart 
Dart :: flutter define type 
Dart :: pub http 
Dart :: dart list equality 
Dart :: dart ASCII to string 
Dart :: flutter bool variable 
Dart :: Modal overlay in flutter 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =