Skip to content

Commit

Permalink
Merge pull request #4 from danielolaviobr/patch-1
Browse files Browse the repository at this point in the history
Adding splashColor customization
  • Loading branch information
NikhilVadoliya authored Aug 18, 2020
2 parents 650474e + b8846fb commit a0a2e41
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 a0a2e41

Please sign in to comment.