gradientButton add duration

null_safety
小赖 4 years ago
parent 7257ecf174
commit e6f16adff2

@ -109,7 +109,9 @@ class _ASGradientButtonState extends State<ASGradientButton> {
@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(

Loading…
Cancel
Save