Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions lib/src/material/spin_box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -277,21 +277,9 @@ class SpinBox extends BaseSpinBox {
}

class _SpinBoxState extends State<SpinBox> with SpinBoxMixin {
Color _activeColor(ThemeData theme) {
if (hasFocus) {
switch (theme.brightness) {
case Brightness.dark:
return theme.colorScheme.secondary;
case Brightness.light:
return theme.primaryColor;
}
}
return theme.hintColor;
}

Color? _iconColor(ThemeData theme, String? errorText) {
if (!widget.enabled) return theme.disabledColor;
if (hasFocus && errorText == null) return _activeColor(theme);
if (hasFocus && errorText == null) return theme.colorScheme.primary;

switch (theme.brightness) {
case Brightness.dark:
Expand Down