Skip to content

Commit 092c559

Browse files
committed
# ui: Changes the MaterialStatePropertyAll to WidgetStatePropertyAll
- Changed the use of depricated MaterialStatePropertyAll to WidgetStatePropertyAll in action_sheet.dart
1 parent 233557a commit 092c559

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/widgets/action_sheet.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ abstract class MessageActionSheetMenuItemButton extends StatelessWidget {
117117
trailingIcon: Icon(icon),
118118
onPressed: () => onPressed(context),
119119
style: ButtonStyle(
120-
padding: const MaterialStatePropertyAll(EdgeInsets.symmetric(vertical:10,horizontal: 15)),
121-
backgroundColor: MaterialStatePropertyAll(_kActionSheetMenuItemButtonsColor),
122-
iconColor: MaterialStatePropertyAll(_kActionSheetIconColor),
123-
shape: MaterialStatePropertyAll(
120+
padding: const WidgetStatePropertyAll(EdgeInsets.symmetric(vertical:10,horizontal: 15)),
121+
backgroundColor: WidgetStatePropertyAll(_kActionSheetMenuItemButtonsColor),
122+
iconColor: WidgetStatePropertyAll(_kActionSheetIconColor),
123+
shape: WidgetStatePropertyAll(
124124
RoundedRectangleBorder(
125125
// If the element is the first element we have the border of first element
126126
// If the element is the last element we have the border of last element

0 commit comments

Comments
 (0)