Skip to content

How to add splashColor and highlightColor? #97

Closed Answered by rydmike
xtnctx asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @xtnctx,

Thank you for your question. When you activate FlexColorScheme's sub-themes it automatically provides hover, focus, highlight and splash colors that are tuned to match the primary color in your active theme, also if custom colors are used.

If you don't like these effects, you can turn them all OFF and get the Flutter default grey style.

theme: FlexThemeData.light(
  scheme: FlexScheme.flutterDash,
  subThemesData: const FlexSubThemesData(
    interactionEffects: false,
  ),
),

Here is what docs say about this property, it provides a bit more background info.

  /// Opt-in on using color branded hover, focus, highlight and splash
  /// interaction state effects.
  ///
  /// The …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xtnctx
Comment options

Answer selected by rydmike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question This issue is a usage question and will be moved to the Discussions section.
2 participants
Converted from issue

This discussion was converted from issue #94 on November 03, 2022 03:52.