From dd4b76afd72fd7f308711902d6516549a1965328 Mon Sep 17 00:00:00 2001 From: Scott Barden Date: Mon, 22 Jan 2024 09:44:58 +0000 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), ),