File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -277,21 +277,9 @@ class SpinBox extends BaseSpinBox {
277277}
278278
279279class _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:
You can’t perform that action at this time.
0 commit comments