Skip to content

[Snackbar] action text color can't be changed #20928

@y0hami

Description

@y0hami

Steps to Reproduce

  1. Create a Snackbar with an action
Scaffold
  .of(context)
  .showSnackBar(new SnackBar(
    content: new Text('Snackbar action'),
    action: new SnackBarAction(
      label: 'Undo',
      onPressed: () {
        // do something
      },
    ),
  ))
;
  1. Change your accent color to something dark (or the same color as the Snackbar background)
  2. Show the Snackbar

image

The only way to change the action button text is to change your accent color in your theme. If you have a dark accent color this will lead to being unable to use Snackbar actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: qualityA truly polished experiencef: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions