google_map_location_picker
google_map_location_picker copied to clipboard
Customize theme colors and widgets
I would like to know if there is a way to customize the theme color of the appBar, floating button and other widgets.
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.
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 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 :)
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 =)