'Flutter: How to use new version of buttonColor in ThemeData which has been deprecated?
ThemeData(
buttonColor: Colors.white,
),
How to use the new version for buttonColor in Flutter?
Solution 1:[1]
For Floating Action Button,
ThemeData(
floatingActionButtonTheme: const FloatingActionButtonThemeData(
backgroundColor: Colors.white,
foregroundColor: Colors.white,
),
);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Anmol Singh |
