'buttonColor' is deprecated and shouldn't be used. No longer used by the framework, please remove any reference to it. This feature was deprecated after v2.3.0-0.2.pre.
Below is the code causing the issue:
What should I change instead of buttonColor. I tried with primary but could not find any reference in the official doc.
Thaks.
Yes, there has been couple of breaking changes on buttons that you can see here --> https://docs.flutter.dev/release/breaking-changes/buttons
In your case, the
themeData
reference has changed, you can see a detailed information, if you check the ThemeData class.You will be needing to use
buttonTheme
that is a ButtonThemeData it like the following: