Developer Docs - Mobile Docs - Icon Button

Displays a Button with an Icon as the content.

Inherits from Button

v6.0

Overview

Looking to use an icon instead of text on a button? This control is made just for that. While you can usually customize content using a Border with a TapGestureRecognizer, this control comes in handy when you need to attach a context menu—something you can’t do directly with a Border.

Properties


This example creates a circular IconButton with a user icon, styled as an outlined primary button.