Getx: Get.changeTheme feature was deprecated after v1.13.2.

Created on 7 Feb 2021  路  4Comments  路  Source: jonataslaw/getx

Description
Deprecated code, changing Theme of app using a floatingActionButton from Scaffold. Only Get.changeTheme shows the error, Get.isDarkMode works fine.

Reproduction code

floatingActionButton: FloatingActionButton(
  child: Icon(Icons.add),
    onPressed: () {
      Get.changeTheme(
        Get.isDarkMode ? ThemeData.light() : ThemeData.dark());
      _.increment();
    },
),

Current Message
'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.'

To Reproduce

  1. Clic the floatingActionButton '...'
  2. Clic on Debug Console
  3. See error

Expected behavior
Some code is deprecated.

Flutter Version:
Flutter 1.22.6 掳 Chanel Stable

Getx Version:
3.24.0

Describe on which device you found the bug:

  • Moto x4 - Android (8.1.0)
  • Android Emulator - Android (9.0)

Minimal reproduce code
Checked only on Android devices

Unrelated to GetX invalid

All 4 comments

'Warning: The support for configuring the foreground color of FloatingActionButtons using ThemeData.accentIconTheme has been deprecated. Please use ThemeData.floatingActionButtonTheme instead

Read the warning, it's FloatingActionButton relationed, not GetX.

I saw the Issue #146
Thanks for the answer, greeting for Mexico, land of tacos 馃尞

Sure!
Off: Me encantan los tacos mexicanos, la cocina mexicana es maravillosa.

Off: No sab铆a que hablar espa帽ol, que interesante, y s铆, es una tradici贸n muy grande nuestra comida, y algo de miedo con extranjeros probando comidas picosas

Was this page helpful?
0 / 5 - 0 ratings