xxxxxxxxxx
SizedBox(
height:100,width: 100,
child:ElevatedButton(
onPressed: (){},
child: Icon(Icons.person),
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50),
//border radius equal to or more than 50% of width
)
),
)
)
xxxxxxxxxx
//circular elevated button
ElevatedButton(
style: ElevatedButton.styleFrom(
shape: const CircleBorder(),
),
onPressed: () {},
child: const Icon(Icons.refresh),
),
xxxxxxxxxx
Container(
width: 90,
height: 90,
child: RaisedButton(onPressed: (){
},
color: Colors.deepOrange,
textColor: Colors.white,
shape: CircleBorder(side: BorderSide.none),
child: Text('Login',style: TextStyle(
fontSize: 20.0
),
),
),
)