google_map_location_picker icon indicating copy to clipboard operation
google_map_location_picker copied to clipboard

Customize theme colors and widgets

Open Anele-Komana opened this issue 5 years ago • 3 comments

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

Anele-Komana avatar Sep 17 '19 21:09 Anele-Komana

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?

humazed avatar Sep 17 '19 21:09 humazed

@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 :)

Anele-Komana avatar Sep 18 '19 17:09 Anele-Komana

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 =)

Bwolfs2 avatar May 17 '20 22:05 Bwolfs2