jeroen1602 / lighthouse_pm

A Flutter app for controlling the power state of Valve Index® lighthouses
Other
157 stars 8 forks source link

Implement new Floating action button theme #71

Open jeroen1602 opened 4 years ago

jeroen1602 commented 4 years ago

The floating action button theme has been deprecated and should be replaced with FloatingActionButtonThemeData. As described in this document. (The document has been grieved a lot so make sure to select viewing mode in the top right.)

jeroen1602 commented 3 years ago

When changing themes the flutter library throws a warning in the console. Warning: The support for configuring the foreground color of FloatingActionButtons using ThemeData.accentIconTheme has been deprecated. Please use ThemeData.floatingActionButtonTheme instead. See https://flutter.dev/go/remove-fab-accent-theme-dependency. This feature was deprecated after v1.13.2.

But while looking into it, the app doesn't change the foreground color of the FloatingActionButtons that are in the app. So we'll have to see when it crashes in future versions, if it crashes.