Skip to content

Commit

Permalink
Merge pull request #74 from ShamilPP/master
Browse files Browse the repository at this point in the history
Fix for deprecated ElevatedButton style parameters onSurface and primary
  • Loading branch information
chrisedg87 authored Jun 17, 2024
2 parents a6fa1e8 + 76f6a3e commit 4508e2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rounded_loading_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ class RoundedLoadingButtonState extends State<RoundedLoadingButton>
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),
),
Expand Down

0 comments on commit 4508e2a

Please sign in to comment.