File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,6 @@ mixin SpinBoxMixin<T extends BaseSpinBox> on State<T> {
7070 decimals: widget.decimals, digits: widget.digits);
7171 }
7272
73- void _stepUp () => controller.value += widget.step;
74- void _stepDown () => controller.value += - widget.step;
75- void _pageStepUp () => controller.value += widget.pageStep;
76- void _pageStepDown () => controller.value -= widget.pageStep;
77-
7873 @override
7974 void initState () {
8075 super .initState ();
@@ -106,6 +101,12 @@ mixin SpinBoxMixin<T extends BaseSpinBox> on State<T> {
106101 super .dispose ();
107102 }
108103
104+ void _stepUp () => controller.value += widget.step;
105+ void _stepDown () => controller.value -= widget.step;
106+
107+ void _pageStepUp () => controller.value += widget.pageStep;
108+ void _pageStepDown () => controller.value -= widget.pageStep;
109+
109110 void _handleValueChange () {
110111 widget.onChanged? .call (_controller.value);
111112 setState (() => _updateText (_controller.value));
You can’t perform that action at this time.
0 commit comments