@@ -79,29 +79,29 @@ class ReadMoreButton extends StatelessWidget {
79
79
return OutlinedButton (
80
80
onPressed: onPressed,
81
81
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)) {
87
87
return const BorderSide (color: textPrimary, width: 2 );
88
88
}
89
89
90
90
return const BorderSide (color: textPrimary, width: 2 );
91
91
}),
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)) {
96
96
return Colors .white;
97
97
}
98
98
99
99
return textPrimary;
100
100
}),
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)) {
105
105
return GoogleFonts .montserrat (
106
106
textStyle: const TextStyle (
107
107
fontSize: 14 , color: Colors .white, letterSpacing: 1 ),
@@ -113,7 +113,7 @@ class ReadMoreButton extends StatelessWidget {
113
113
fontSize: 14 , color: textPrimary, letterSpacing: 1 ),
114
114
);
115
115
}),
116
- padding: MaterialStateProperty .all <EdgeInsetsGeometry >(
116
+ padding: WidgetStateProperty .all <EdgeInsetsGeometry >(
117
117
const EdgeInsets .symmetric (horizontal: 12 , vertical: 16 )),
118
118
),
119
119
child: const Text (
0 commit comments