Skip to content

Commit

Permalink
修复stepper文字未居中
Browse files Browse the repository at this point in the history
  • Loading branch information
q920447939 committed Oct 14, 2024
1 parent d970c6f commit a684213
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tdesign-component/lib/src/components/stepper/td_stepper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,11 @@ class _TDStepperState extends State<TDStepper> {
textAlign: TextAlign.center,
textAlignVertical: TextAlignVertical.center,
keyboardType: TextInputType.number,
decoration:
const InputDecoration(border: InputBorder.none),
decoration: InputDecoration(
border: InputBorder.none,
isDense: true,
contentPadding: EdgeInsets.zero,
),
inputFormatters: [
FilteringTextInputFormatter.digitsOnly,
TextInputFormatter.withFunction((oldValue, newValue) {
Expand Down

0 comments on commit a684213

Please sign in to comment.