Skip to content

Commit 85579f6

Browse files
authored
Fix active icon color (ubuntu-flutter-community#83)
1 parent 11732fd commit 85579f6

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

lib/src/material/spin_box.dart

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -277,21 +277,9 @@ class SpinBox extends BaseSpinBox {
277277
}
278278

279279
class _SpinBoxState extends State<SpinBox> with SpinBoxMixin {
280-
Color _activeColor(ThemeData theme) {
281-
if (hasFocus) {
282-
switch (theme.brightness) {
283-
case Brightness.dark:
284-
return theme.colorScheme.secondary;
285-
case Brightness.light:
286-
return theme.primaryColor;
287-
}
288-
}
289-
return theme.hintColor;
290-
}
291-
292280
Color? _iconColor(ThemeData theme, String? errorText) {
293281
if (!widget.enabled) return theme.disabledColor;
294-
if (hasFocus && errorText == null) return _activeColor(theme);
282+
if (hasFocus && errorText == null) return theme.colorScheme.primary;
295283

296284
switch (theme.brightness) {
297285
case Brightness.dark:

0 commit comments

Comments
 (0)