Skip to content

Change FleatherToolbar theme color? #195

Closed Answered by Amir-P
OlaveraLuffy asked this question in Q&A
Discussion options

You must be logged in to vote

If you're using basic toolbar, you can change the colors by changing primaryIconTheme, iconTheme and disabledColor in ThemeData. Use this as an example:

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!),
),

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@OlaveraLuffy
Comment options

@Amir-P
Comment options

Answer selected by OlaveraLuffy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants