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

Customize theme colors and widgets #9

Open
Anele-Komana opened this issue Sep 17, 2019 · 3 comments
Open

Customize theme colors and widgets #9

Anele-Komana opened this issue Sep 17, 2019 · 3 comments

Comments

@Anele-Komana
Copy link

I would like to know if there is a way to customize the theme color of the appBar, floating button and other widgets.

@humazed
Copy link
Owner

humazed commented Sep 17, 2019

for now, the FAB and other widgets are derived from the theme app theme and will change if you change your app theme.
that what it looks like in dark theme.

Screenshot_1568757137

the toolbar is currently hardcoded to white.

however, it's a good idea to pass them as optional parameters.
would you be interested in submitting a pull request?

@Anele-Komana
Copy link
Author

@humazed thanks for ur reply buddy, unfortunately on mine the theme color doesn't change, please see the below my theme configurations:

theme: new ThemeData(
    fontFamily: 'Montserrat',
    hintColor: Colors.grey,
    scaffoldBackgroundColor: Colors.grey[100],
    primaryColor: new Color(0xFFF04F2B),
    backgroundColor: Colors.grey[100],
    buttonTheme: ButtonThemeData(
      buttonColor: new Color(0xFFF04F2B),     //  <-- dark color
      textTheme: ButtonTextTheme.primary, //  <-- this auto selects the right color
  ),
),

but yeah I will submit a pull request :)

@Bwolfs2
Copy link

Bwolfs2 commented May 17, 2020

In my project I also had the need to customize the AppBar and the Floating Buttom, so I did the PR #67 to create this flexibility. For me it worked =)

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

No branches or pull requests

3 participants