From 76f6a3ea63b24868661ca8a0f5a633fa4491127b Mon Sep 17 00:00:00 2001 From: Shamil PP <69709385+ShamilPP@users.noreply.github.com> Date: Wed, 6 Mar 2024 11:37:20 +0530 Subject: [PATCH] Fix for deprecated ElevatedButton style parameters onSurface and primary --- 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..b5102d5 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, + disabledForegroundColor: 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), ),