From e6f16adff2f6c8f07ef8350f97d2b4423a91d046 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Mon, 7 Dec 2020 11:33:40 +0800 Subject: [PATCH] gradientButton add duration --- lib/buttons/as_gradientbutton.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/buttons/as_gradientbutton.dart b/lib/buttons/as_gradientbutton.dart index d29a9dd..fe91faa 100644 --- a/lib/buttons/as_gradientbutton.dart +++ b/lib/buttons/as_gradientbutton.dart @@ -109,7 +109,9 @@ class _ASGradientButtonState extends State { @override Widget build(BuildContext context) { - return Container( + return AnimatedContainer( + curve: Curves.easeInOutCirc, + duration: Duration(milliseconds: 300), width: widget.width ?? 110.w, decoration: BoxDecoration( gradient: LinearGradient(