Buttons are graphical control elements that allow users to initiate activities such as taking actions, making decisions, and looking for items. They can be used as dialogues, forms, cards, and toolbars in our UI. Buttons are Flutter widgets that are included in the material design library. Flutter has a variety of buttons, so let’s look at a few of them.
1. Raised Button
This widget is a button that, when clicked, has a raised effect. The depth of the shadows creates the illusion of “raised” control. When pressed, it rises, causing the cloud to grow larger and blurrier, giving the impression that the button has moved closer to us.
2. Drop Down Button
The Drop Down button allows you to choose from a variety of options. It displays the presently selected item and an arrow that opens a menu to allow you to select another thing.
3. Flat Button
A flat button is a text that appears on a Material widget and responds to touches. Flat buttons can be used on toolbars, in dialogues, or integrated into other content.
4. Floating Action Button
A floating action button is a circular icon button that floats over the information in an application to promote an immediate action. They are most usually found in Scaffold. A field for a Floating Action Button.
5. Icon Button
An icon button is a picture printed on a Material widget that fills with color when touched. You can also change the button’s appearance and touch effects.
6. Outline Button
A thin grey rounded rectangle border surrounds it. The border shape of the outline button is determined by condition, and its appearance is determined by border side, disabledBorderColor, and highlightedBorderColor.