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

Change Button style #8

Closed
maik-kluwe opened this issue Mar 31, 2021 · 3 comments
Closed

Change Button style #8

maik-kluwe opened this issue Mar 31, 2021 · 3 comments
Labels
question Further information is requested

Comments

@maik-kluwe
Copy link

More a question than an issue. I want to change the theme / color of a button.
The button should be blue with white text color (like a primary button for a dialog).

I think it's relativly easy, but i could not get it done.

Thanks for any help. Keep up the good work 👍

@maik-kluwe
Copy link
Author

In the readme is an example of the button i want to have: Content Dialog -> last screenshot with the headline "Subscribe to App Service?"

@bdlukaa bdlukaa added the question Further information is requested label Mar 31, 2021
@bdlukaa
Copy link
Owner

bdlukaa commented Mar 31, 2021

you can change its decoration using the style property:

Button (
   text: Text(' button '),
   style: ButtonStyle(
      decoration: (state) => yourDecoration,
   ),
)

Remember to add a different decoration for all the states.

@maik-kluwe
Copy link
Author

Thats was the missing hint :)

Thank you very much 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants