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), ),