diff --git a/example/ios/Flutter/.last_build_id b/example/ios/Flutter/.last_build_id new file mode 100644 index 0000000..5c8cb4b --- /dev/null +++ b/example/ios/Flutter/.last_build_id @@ -0,0 +1 @@ +a3c81953453de1dc1b5b6fdbfa1e257c \ No newline at end of file diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 5f1bf4c..d59cc08 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -241,7 +241,6 @@ /* Begin XCBuildConfiguration section */ 249021D3217E4FDB00AE95B9 /* Profile */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -318,7 +317,6 @@ }; 97C147031CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -374,7 +372,6 @@ }; 97C147041CF9000F007C117D /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; diff --git a/lib/animated_icon_button.dart b/lib/animated_icon_button.dart index 177968c..0854084 100644 --- a/lib/animated_icon_button.dart +++ b/lib/animated_icon_button.dart @@ -141,6 +141,12 @@ class AnimatedIconButton extends StatefulWidget { /// background color whenever [AnimatedIconButton] is pressed. final AnimationController animationController; + /// The splash radius. + /// + /// If null, default splash radius of [Material.defaultSplashRadius] is used. + /// Field of IconButton + final double splashRadius; + AnimatedIconButton({ Key key, this.size, @@ -164,6 +170,7 @@ class AnimatedIconButton extends StatefulWidget { this.endBackgroundColor, this.startBackgroundColor, this.animationController, + this.splashRadius, }); @override _AnimatedIconButtonState createState() => _AnimatedIconButtonState( @@ -188,6 +195,7 @@ class AnimatedIconButton extends StatefulWidget { endBackgroundColor: this.endBackgroundColor, startBackgroundColor: this.startBackgroundColor, animationController: this.animationController, + splashRadius: this.splashRadius, ); } @@ -215,6 +223,7 @@ class _AnimatedIconButtonState extends State this.endBackgroundColor, this.startBackgroundColor, this.animationController, + this.splashRadius, }); double size; Icon startIcon; @@ -237,6 +246,7 @@ class _AnimatedIconButtonState extends State EdgeInsets padding; Alignment alignment; AnimationController animationController; + double splashRadius; bool hasCustomAnimationController; Icon nowIcon; @@ -351,6 +361,7 @@ class _AnimatedIconButtonState extends State visualDensity: visualDensity, padding: padding ?? const EdgeInsets.all(8.0), alignment: alignment ?? Alignment.center, + splashRadius: splashRadius, ); } }