Skip to content

Commit

Permalink
Adding splashColor customization
Browse files Browse the repository at this point in the history
Adds the ability to change the splash color of the icon button
  • Loading branch information
danielolaviobr authored Aug 18, 2020
1 parent 650474e commit b8846fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/slider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class SliderMenuContainer extends StatefulWidget {
final Color drawerIconColor;
final Widget drawerIcon;
final double drawerIconSize;
final Color splashColor;
final double appBarHeight;
final Widget title;
final bool isTitleCenter;
Expand All @@ -32,6 +33,7 @@ class SliderMenuContainer extends StatefulWidget {
this.sliderMenuOpenOffset = 265,
this.drawerIconColor = Colors.black,
this.drawerIcon,
this.splashColor,
this.isTitleCenter = true,
this.trailing,
this.appBarColor = Colors.white,
Expand Down Expand Up @@ -182,6 +184,7 @@ class SliderMenuContainerState extends State<SliderMenuContainer>
List<Widget> list = [
widget.drawerIcon ??
IconButton(
splashColor: widget.splashColor ?? Colors.black,
icon: AnimatedIcon(
icon: AnimatedIcons.menu_close,
color: widget.drawerIconColor,
Expand Down

0 comments on commit b8846fb

Please sign in to comment.