From 89d1e665c372461ed87be46c9227377b305050b2 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Mon, 2 Nov 2020 11:32:53 +0800 Subject: [PATCH] button add null color --- lib/common_widgets/aku_material_button.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/common_widgets/aku_material_button.dart b/lib/common_widgets/aku_material_button.dart index 3f55f29..fffe77d 100644 --- a/lib/common_widgets/aku_material_button.dart +++ b/lib/common_widgets/aku_material_button.dart @@ -29,8 +29,8 @@ class AkuMaterialButton extends MaterialButton { this.padding = EdgeInsets.zero, @required this.child, this.color = Colors.transparent, - }) : nullColor = color.withOpacity(0.5), - super( + this.nullColor = Colors.transparent, + }) : super( key: key, onPressed: onPressed, elevation: elevation, @@ -46,6 +46,7 @@ class AkuMaterialButton extends MaterialButton { ), child: child, color: color, + disabledColor: nullColor, materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, ); }