Ad

Flutter ColorScheme And Appainter - How To Get PrimaryColorLight?

- 1 answer

I have theme designed in Appainter. I have access to a lot of colors from this theme using:

Theme.of(Get.context!).colorScheme.onError

but not every color I can find in color scheme. How to get for example Primary color light? Some of colors from appainter is not listed in colorSchemeenter image description here

enter image description here

Ad

Answer

primaryColorLight is not available in colorScheme. You can access it directly from theme context

Theme.of(context).primaryColorLight
Ad
source: stackoverflow.com
Ad