Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Create different themes for buttons within the ThemeData() widget.  #97151

Closed
@Wenutz

Description

@Wenutz

Use case

In my app I want to give the customer the choice between a dozen of themes. So I am creating a theme changer.
My themes contain various outlinedButtons() with different colors (like in the picture). I know how to set up a theme for all of these outlinedButtons() with a themedata() widget. I also know how to set up a special theme for a particularoutlinedButtons() by wrapping it in a theme() widget. However, setting up the theme changer with a dozens themes is really painful with this type of design.

c6039f55f3ac67bf863bb7740480cb58

Proposal

It would be great if we could set up different themes for outlined buttons directly in the themeData() widget. We can do that with text(bodytext1,bodytext2, headline1, headline2...). Something like outlinedButtonTheme1, outlinedButtonTheme2 would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions