Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style action label on SnackBar #46599

Open
lanmonster opened this issue Dec 9, 2019 · 2 comments · May be fixed by #143865
Open

Style action label on SnackBar #46599

lanmonster opened this issue Dec 9, 2019 · 2 comments · May be fixed by #143865
Labels
a: typography Text rendering, possibly libtxt c: new feature Nothing broken; request for a new capability f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. team-design Owned by Design Languages team triaged-design Triaged by Design Languages team

Comments

@lanmonster
Copy link

Use case

The designers on my team want a consistent font family for all text within the app.
There is a need to display a SnackBar with an action. Currently, the action label cannot be styled.

Proposal

I should be able to pass a TextStyle to the SnackBarAction to specify what I want that text to look like.

@iapicca iapicca added a: typography Text rendering, possibly libtxt f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. c: new feature Nothing broken; request for a new capability labels Dec 9, 2019
@mighty-unknown
Copy link

mighty-unknown commented Feb 14, 2020

Or better yet, pass a Text widget in as the label so that you are free to style the label and possibly the textScaleFactor or you risk the issue where the user cranks up the text size and suddenly you have a giant action label in your snackbar :(

@kw2019ltd
Copy link

pls reopen it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: typography Text rendering, possibly libtxt c: new feature Nothing broken; request for a new capability f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. team-design Owned by Design Languages team triaged-design Triaged by Design Languages team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants