From b8846fb35c5d80a9aee32aac1eddaf67b6aa24d8 Mon Sep 17 00:00:00 2001 From: danielolaviobr <64712584+danielolaviobr@users.noreply.github.com> Date: Mon, 17 Aug 2020 21:03:23 -0300 Subject: [PATCH] Adding splashColor customization Adds the ability to change the splash color of the icon button --- lib/src/slider.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/slider.dart b/lib/src/slider.dart index 8317080..aa7b6a6 100644 --- a/lib/src/slider.dart +++ b/lib/src/slider.dart @@ -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; @@ -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, @@ -182,6 +184,7 @@ class SliderMenuContainerState extends State List list = [ widget.drawerIcon ?? IconButton( + splashColor: widget.splashColor ?? Colors.black, icon: AnimatedIcon( icon: AnimatedIcons.menu_close, color: widget.drawerIconColor,