With the announcement of the new version of Flutter — 1.22, new buttons came to us. Although the old ones are still not deprecated, the benefits of the new ones will certainly lead people to replace them.
Adjusting all the buttons to look the same, was probably time-consuming when developing the application. This basically involved making custom buttons and using them.
But with version, 1.22 this is no longer the case. Now you can easily set the theme, which will be applied to all buttons of the chosen type globally.
Below you can see a table showing which buttons and their themes replace the existing ones:
https://github.com/flutter/flutter/pull/59702
Through a simple example, we will see how you can easily set a theme for buttons of a certain type.
#flutter #button #learning #flutter-widget