From 7dac10c093aa3fe55f33431b2de473d362d826d3 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Thu, 17 Dec 2020 15:20:35 +0800 Subject: [PATCH] update button splash color --- example/lib/example_listtile.dart | 1 - lib/buttons/as_button.dart | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/example/lib/example_listtile.dart b/example/lib/example_listtile.dart index c0ea301..a2e086b 100644 --- a/example/lib/example_listtile.dart +++ b/example/lib/example_listtile.dart @@ -1,5 +1,4 @@ import 'package:ansu_ui/ansu_ui.dart'; -import 'package:ansu_ui/divider/as_divider.dart'; import 'package:flutter/material.dart'; class ExampleListTile extends StatefulWidget { diff --git a/lib/buttons/as_button.dart b/lib/buttons/as_button.dart index 67bd89e..df56b62 100644 --- a/lib/buttons/as_button.dart +++ b/lib/buttons/as_button.dart @@ -168,7 +168,7 @@ class _ASButtonState extends State { : BorderSide.none, borderRadius: BorderRadius.circular(widget.radius ?? 15.5.w)), color: widget.bgcolor ?? kForegroundColor, - splashColor: widget.splashColor, + splashColor: widget.splashColor??ColorTool.getSplashColor(kPrimaryColor), highlightColor: widget.splashColor?.withOpacity(0.3), elevation: 0, focusElevation: 0,