New Buttons and Button Themes

Summary

Context

API Change: ButtonStyle instead of individual style properties

The styleFrom() ButtonStyle utility methods

ButtonStyle defaults

Migration guide

Restoring the original button visuals
Migrating buttons with custom colors

Migrating buttons with custom foreground and background colors
Migrating buttons with custom overlay colors
Migrating buttons with custom disabled colors
Migrating buttons with custom elevations
Migrating buttons with custom shapes and borders

Timeline

References

Summary

A new set of basic material button widgets and themes have been added
to Flutter. The original classes have been deprecated and will
eventually be removed. The overall goal is to make buttons more
flexible, and easier to configure via constructor parameters or
themes.

Context