From abe113703fc645787370a3306d8ab4bda0a7dffb Mon Sep 17 00:00:00 2001 From: 2019imesh <2019imesh@gmail.com> Date: Sat, 22 Apr 2023 17:58:23 +0530 Subject: [PATCH] update elevated buttons style (remove deprecated parameters & set values) --- lib/rounded_loading_button.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rounded_loading_button.dart b/lib/rounded_loading_button.dart index 66a02f6..62959d5 100644 --- a/lib/rounded_loading_button.dart +++ b/lib/rounded_loading_button.dart @@ -194,12 +194,12 @@ class RoundedLoadingButtonState extends State padding: const EdgeInsets.all(0), child: ElevatedButton( style: ElevatedButton.styleFrom( - onSurface: widget.disabledColor, + disabledBackgroundColor: widget.disabledColor, minimumSize: Size(_squeezeAnimation.value, widget.height), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(widget.borderRadius), ), - primary: widget.color, + backgroundColor: widget.color, elevation: widget.elevation, padding: const EdgeInsets.all(0), ),