How to create a circle icon button in Flutter?

Edmand Looi picture Edmand Looi · Apr 13, 2018 · Viewed 112.8k times · Source

I can't find any example that shows how to create a circle IconButton similar to the FloatingActionButton. Can anyone suggest how/what is need to create a custom button like the FloatingActionButton?

Answer

UpaJah picture UpaJah · Jun 30, 2018

RawMaterialButton is better suited I think.

RawMaterialButton(
  onPressed: () {},
  elevation: 2.0,
  fillColor: Colors.white,
  child: Icon(
    Icons.pause,
    size: 35.0,
  ),
  padding: EdgeInsets.all(15.0),
  shape: CircleBorder(),
)