File tree 2 files changed +8
-8
lines changed
firebase_ui_auth/example/lib
firebase_ui_shared/lib/src
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ class FirebaseAuthUIExample extends StatelessWidget {
78
78
@override
79
79
Widget build (BuildContext context) {
80
80
final buttonStyle = ButtonStyle (
81
- padding: MaterialStateProperty .all (const EdgeInsets .all (12 )),
82
- shape: MaterialStateProperty .all (
81
+ padding: WidgetStateProperty .all (const EdgeInsets .all (12 )),
82
+ shape: WidgetStateProperty .all (
83
83
RoundedRectangleBorder (borderRadius: BorderRadius .circular (8 )),
84
84
),
85
85
);
Original file line number Diff line number Diff line change @@ -120,20 +120,20 @@ class UniversalButton extends PlatformWidget {
120
120
ButtonStyle ? style;
121
121
122
122
if (materialColor != null ) {
123
- MaterialStateColor ? foregroundColor;
124
- MaterialStateColor ? backgroundColor;
123
+ WidgetStateColor ? foregroundColor;
124
+ WidgetStateColor ? backgroundColor;
125
125
126
126
if (variant == ButtonVariant .text) {
127
- foregroundColor = MaterialStateColor .resolveWith ((_) => materialColor! );
127
+ foregroundColor = WidgetStateColor .resolveWith ((_) => materialColor! );
128
128
} else {
129
- foregroundColor = MaterialStateColor .resolveWith ((_) => contentColor! );
130
- backgroundColor = MaterialStateColor .resolveWith ((_) => materialColor! );
129
+ foregroundColor = WidgetStateColor .resolveWith ((_) => contentColor! );
130
+ backgroundColor = WidgetStateColor .resolveWith ((_) => materialColor! );
131
131
}
132
132
133
133
style = ButtonStyle (
134
134
foregroundColor: foregroundColor,
135
135
backgroundColor: backgroundColor,
136
- overlayColor: MaterialStateColor .resolveWith (
136
+ overlayColor: WidgetStateColor .resolveWith (
137
137
(states) => materialColor! .withAlpha (20 ),
138
138
),
139
139
);
You can’t perform that action at this time.
0 commit comments