Skip to content

Commit

Permalink
Merge pull request #104 from NeroThroN/master
Browse files Browse the repository at this point in the history
Fix deprecated member 'primary'
  • Loading branch information
Frezyx committed Jan 9, 2024
2 parents 7a482bf + 5b3cded commit 485df0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/group_button_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ class GroupButtonItem extends StatelessWidget {
onPressed: onPressed,
style: ElevatedButton.styleFrom(
elevation: elevation ?? 0.0,
// ignore: deprecated_member_use
primary: _getBackgroundColor(theme),
backgroundColor: _getBackgroundColor(theme),
shape: _buildShape(),
padding: (width != null || height != null) ? EdgeInsets.zero : null,
alignment: (width != null || height != null) ? alignment : null,
Expand Down

0 comments on commit 485df0d

Please sign in to comment.