Skip to content

Commit

Permalink
Merge pull request #346 from q920447939/main
Browse files Browse the repository at this point in the history
修复stepper文字未居中
  • Loading branch information
Luozf12345 authored Dec 2, 2024
2 parents 0f19394 + a684213 commit 280a8f2
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 280a8f2

Please sign in to comment.