We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72b0981 commit 7b4c099Copy full SHA for 7b4c099
lib/src/material/spin_box.dart
@@ -339,7 +339,15 @@ class _SpinBoxState extends BaseSpinBoxState<SpinBox> {
339
if (bottom > 0) bottom += 8.0; // subTextGap
340
}
341
342
+ final hasAnyBorder = decoration.border != null ||
343
+ decoration.errorBorder != null ||
344
+ decoration.enabledBorder != null ||
345
+ decoration.focusedBorder != null ||
346
+ decoration.disabledBorder != null ||
347
+ decoration.focusedErrorBorder != null;
348
+
349
final inputDecoration = decoration.copyWith(
350
+ border: !hasAnyBorder ? const OutlineInputBorder() : decoration.border,
351
errorText: errorText,
352
prefix: isHorizontal && widget.showButtons
353
? Icon(null, size: widget.decrementIcon.size)
0 commit comments