jonataslaw / getx

Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
MIT License
10.44k stars 1.63k forks source link

After Updating from get: 4.3.4 👉 get: 4.3.5 Switch Theme Issue #1838

Open AmineLAHRIM opened 3 years ago

AmineLAHRIM commented 3 years ago

After Updating from get: 4.3.4 👉 get: 4.3.5 Switch Theme Issue from the system or programmatically the app don't rebuild again to affect UI switch colors for example

you can check this simple repo project 👉 https://github.com/AmineLAHRIM/flutter_amine_examples

I tested all versions the bug started appearing on 4.3.5 exactly and still until the latest version (4.5.1)

fanpener commented 3 years ago

I have the same problem , Theme.of (context) is ok to switch, but only part of the UI is updated when using Get.context or Get.theme in widget style

AmineLAHRIM commented 2 years ago

@jonataslaw this is the bug that make me not update to the latest version please kindly help

jinguoliang commented 2 years ago

I have the same problem. Theme.of(context) will let current widget depend on _InheritedTheme,so Theme changing will update the widget. But Get.theme doesn't use the current widget context.

AmineLAHRIM commented 2 years ago

@jinguoliang yeah correct i use context. instead of Get. and working fine