fluttercommunity / backdrop

Backdrop implementation in flutter.
https://pub.dev/packages/backdrop
MIT License
335 stars 36 forks source link

Customizable button color #89

Closed ivofernandes closed 3 years ago

ivofernandes commented 3 years ago

Would be better if it was possible to customize the color of the button, something like:

BackdropAppBar(
  buttonColor: Colors.red, 
  title: Text('Menu title'),
)

It would be needed to change the button.dart to receive a parameter and only be white when no parameter is passed

https://github.com/fluttercommunity/backdrop/blob/master/lib/button.dart

Looks like a good idea to you?

ivofernandes commented 3 years ago

Actually there is a way to override the backdropButtonColor, just doing this:

BackdropScaffold(
      appBar: BackdropAppBar(
        leading: BackdropToggleButton(color: Colors.green),
      ),
    )