@@ -63,8 +63,8 @@ class MaterialTheme {
6363 onSecondary: colors.onPrimary,
6464 error: colors.error,
6565 onError: colors.text,
66- background : colors.background,
67- onBackground : colors.text,
66+ surface : colors.background,
67+ onSurface : colors.text,
6868 brightness: brightness,
6969 ),
7070 primaryColor: colors.primary,
@@ -132,8 +132,8 @@ class MaterialTheme {
132132 shadowColor: Colors .transparent,
133133 padding: EdgeInsets .symmetric (horizontal: 13. si, vertical: 22. si),
134134 ).copyWith (
135- backgroundColor: MaterialStateProperty .resolveWith ((states) {
136- if (states.contains (MaterialState .selected)) {
135+ backgroundColor: WidgetStateProperty .resolveWith ((states) {
136+ if (states.contains (WidgetState .selected)) {
137137 return colors.primaryAccent.withOpacity (.15 );
138138 }
139139 return colors.borderAccent.withOpacity (.10 );
@@ -150,7 +150,7 @@ class MaterialTheme {
150150}
151151
152152class ElevatedButtonBorder extends RoundedRectangleBorder
153- implements MaterialStateOutlinedBorder {
153+ implements WidgetStateOutlinedBorder {
154154 const ElevatedButtonBorder ({required this .colors});
155155
156156 @protected
@@ -161,8 +161,8 @@ class ElevatedButtonBorder extends RoundedRectangleBorder
161161 static const border = RoundedRectangleBorder (borderRadius: _borderRadius);
162162
163163 @override
164- OutlinedBorder ? resolve (Set <MaterialState > states) {
165- if (states.contains (MaterialState .selected)) {
164+ OutlinedBorder ? resolve (Set <WidgetState > states) {
165+ if (states.contains (WidgetState .selected)) {
166166 return border.copyWith (
167167 side: BorderSide (
168168 color: colors.primaryAccent,
0 commit comments