Change FleatherToolbar theme color? #195
-
Hi! I would like to change the color of the icons in the fleathertoolbar. I was wondering how can I do this? As you can see in the image, I cannot see the icons in the toolbar if such icons is not toggled. Appreciate if someone would help. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
Amir-P
Dec 11, 2023
Replies: 1 comment 2 replies
-
If you're using basic toolbar, you can change the colors by changing Theme(
data: Theme.of(context).copyWith(
disabledColor: Colors.red, // used for disabled icons
primaryIconTheme: IconThemeData(color: Colors.green), // used for toggled icons
iconTheme: IconThemeData(color: Colors.blue)), // used for not toggled icons
child: FleatherToolbar.basic(controller: _controller!),
), |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
OlaveraLuffy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're using basic toolbar, you can change the colors by changing
primaryIconTheme
,iconTheme
anddisabledColor
inThemeData
. Use this as an example: