@@ -137,74 +137,74 @@ class _${blockName}DefaultsM3 extends InputDecorationTheme {
137
137
final TextStyle textStyle = ${textStyle ("md.comp.filled-text-field.label-text" )} ?? const TextStyle();
138
138
if(states.contains(MaterialState.error)) {
139
139
if (states.contains(MaterialState.focused)) {
140
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.error.focus.label-text' )});
140
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.error.focus.label-text' )});
141
141
}
142
142
if (states.contains(MaterialState.hovered)) {
143
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.error.hover.label-text' )});
143
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.error.hover.label-text' )});
144
144
}
145
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.error.label-text' )});
145
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.error.label-text' )});
146
146
}
147
147
if (states.contains(MaterialState.focused)) {
148
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.focus.label-text' )});
148
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.focus.label-text' )});
149
149
}
150
150
if (states.contains(MaterialState.hovered)) {
151
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.hover.label-text' )});
151
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.hover.label-text' )});
152
152
}
153
153
if (states.contains(MaterialState.disabled)) {
154
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.disabled.label-text' )});
154
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.disabled.label-text' )});
155
155
}
156
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.label-text' )});
156
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.label-text' )});
157
157
});
158
158
159
159
@override
160
160
TextStyle? get floatingLabelStyle => MaterialStateTextStyle.resolveWith((Set<MaterialState> states) {
161
161
final TextStyle textStyle = ${textStyle ("md.comp.filled-text-field.label-text" )} ?? const TextStyle();
162
162
if(states.contains(MaterialState.error)) {
163
163
if (states.contains(MaterialState.focused)) {
164
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.error.focus.label-text' )});
164
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.error.focus.label-text' )});
165
165
}
166
166
if (states.contains(MaterialState.hovered)) {
167
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.error.hover.label-text' )});
167
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.error.hover.label-text' )});
168
168
}
169
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.error.label-text' )});
169
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.error.label-text' )});
170
170
}
171
171
if (states.contains(MaterialState.focused)) {
172
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.focus.label-text' )});
172
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.focus.label-text' )});
173
173
}
174
174
if (states.contains(MaterialState.hovered)) {
175
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.hover.label-text' )});
175
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.hover.label-text' )});
176
176
}
177
177
if (states.contains(MaterialState.disabled)) {
178
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.disabled.label-text' )});
178
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.disabled.label-text' )});
179
179
}
180
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.label-text' )});
180
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.label-text' )});
181
181
});
182
182
183
183
@override
184
184
TextStyle? get helperStyle => MaterialStateTextStyle.resolveWith((Set<MaterialState> states) {
185
185
final TextStyle textStyle = ${textStyle ("md.comp.filled-text-field.supporting-text" )} ?? const TextStyle();${componentColor ('md.comp.filled-text-field.focus.supporting-text' ) == componentColor ('md.comp.filled-text-field.supporting-text' ) ? '' : '''
186
186
if (states.contains(MaterialState.focused)) {
187
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.focus.supporting-text' )});
187
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.focus.supporting-text' )});
188
188
}''' }${componentColor ('md.comp.filled-text-field.hover.supporting-text' ) == componentColor ('md.comp.filled-text-field.supporting-text' ) ? '' : '''
189
189
if (states.contains(MaterialState.hovered)) {
190
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.hover.supporting-text' )});
190
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.hover.supporting-text' )});
191
191
}''' }
192
192
if (states.contains(MaterialState.disabled)) {
193
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.disabled.supporting-text' )});
193
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.disabled.supporting-text' )});
194
194
}
195
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.supporting-text' )});
195
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.supporting-text' )});
196
196
});
197
197
198
198
@override
199
199
TextStyle? get errorStyle => MaterialStateTextStyle.resolveWith((Set<MaterialState> states) {
200
200
final TextStyle textStyle = ${textStyle ("md.comp.filled-text-field.supporting-text" )} ?? const TextStyle();${componentColor ('md.comp.filled-text-field.error.focus.supporting-text' ) == componentColor ('md.comp.filled-text-field.error.supporting-text' ) ? '' : '''
201
201
if (states.contains(MaterialState.focused)) {
202
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.error.focus.supporting-text' )});
202
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.error.focus.supporting-text' )});
203
203
}''' }${componentColor ('md.comp.filled-text-field.error.hover.supporting-text' ) == componentColor ('md.comp.filled-text-field.error.supporting-text' ) ? '' : '''
204
204
if (states.contains(MaterialState.hovered)) {
205
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.error.hover.supporting-text' )});
205
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.error.hover.supporting-text' )});
206
206
}''' }
207
- return textStyle.copyWith(color:${componentColor ('md.comp.filled-text-field.error.supporting-text' )});
207
+ return textStyle.copyWith(color: ${componentColor ('md.comp.filled-text-field.error.supporting-text' )});
208
208
});
209
209
}
210
210
''' ;
0 commit comments