Skip to content

Commit 9881444

Browse files
committed
Dart Fix Flutter v3.24.0
1 parent bd68c2e commit 9881444

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/components/blog.dart

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,29 +79,29 @@ class ReadMoreButton extends StatelessWidget {
7979
return OutlinedButton(
8080
onPressed: onPressed,
8181
style: ButtonStyle(
82-
overlayColor: MaterialStateProperty.all<Color>(textPrimary),
83-
side: MaterialStateProperty.resolveWith((states) {
84-
if (states.contains(MaterialState.focused) ||
85-
states.contains(MaterialState.hovered) ||
86-
states.contains(MaterialState.pressed)) {
82+
overlayColor: WidgetStateProperty.all<Color>(textPrimary),
83+
side: WidgetStateProperty.resolveWith((states) {
84+
if (states.contains(WidgetState.focused) ||
85+
states.contains(WidgetState.hovered) ||
86+
states.contains(WidgetState.pressed)) {
8787
return const BorderSide(color: textPrimary, width: 2);
8888
}
8989

9090
return const BorderSide(color: textPrimary, width: 2);
9191
}),
92-
foregroundColor: MaterialStateProperty.resolveWith<Color>((states) {
93-
if (states.contains(MaterialState.focused) ||
94-
states.contains(MaterialState.hovered) ||
95-
states.contains(MaterialState.pressed)) {
92+
foregroundColor: WidgetStateProperty.resolveWith<Color>((states) {
93+
if (states.contains(WidgetState.focused) ||
94+
states.contains(WidgetState.hovered) ||
95+
states.contains(WidgetState.pressed)) {
9696
return Colors.white;
9797
}
9898

9999
return textPrimary;
100100
}),
101-
textStyle: MaterialStateProperty.resolveWith<TextStyle>((states) {
102-
if (states.contains(MaterialState.focused) ||
103-
states.contains(MaterialState.hovered) ||
104-
states.contains(MaterialState.pressed)) {
101+
textStyle: WidgetStateProperty.resolveWith<TextStyle>((states) {
102+
if (states.contains(WidgetState.focused) ||
103+
states.contains(WidgetState.hovered) ||
104+
states.contains(WidgetState.pressed)) {
105105
return GoogleFonts.montserrat(
106106
textStyle: const TextStyle(
107107
fontSize: 14, color: Colors.white, letterSpacing: 1),
@@ -113,7 +113,7 @@ class ReadMoreButton extends StatelessWidget {
113113
fontSize: 14, color: textPrimary, letterSpacing: 1),
114114
);
115115
}),
116-
padding: MaterialStateProperty.all<EdgeInsetsGeometry>(
116+
padding: WidgetStateProperty.all<EdgeInsetsGeometry>(
117117
const EdgeInsets.symmetric(horizontal: 12, vertical: 16)),
118118
),
119119
child: const Text(

0 commit comments

Comments
 (0)