Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

How to round elevated button in flutter

ElevatedButton(
    onPressed: () {},
    style: ElevatedButton.styleFrom(
        padding: EdgeInsets.symmetric(horizontal: 40.0, vertical: 20.0),
        shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(10.0)
        ),
        primary: Colors.purple
    ),
    child: Text(
        "CLICK ME",
        style: TextStyle(color: Colors.white, fontSize: 18),
    ),
)
Source by educity.app #
 
PREVIOUS NEXT
Tagged: #How #elevated #button #flutter
ADD COMMENT
Topic
Name
6+8 =