From a68421375b971730bfb8b672130c7e1885393a37 Mon Sep 17 00:00:00 2001 From: leegoo <920447939@qq.com> Date: Mon, 14 Oct 2024 22:55:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dstepper=E6=96=87=E5=AD=97?= =?UTF-8?q?=E6=9C=AA=E5=B1=85=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/src/components/stepper/td_stepper.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tdesign-component/lib/src/components/stepper/td_stepper.dart b/tdesign-component/lib/src/components/stepper/td_stepper.dart index d5cdff666..057326054 100644 --- a/tdesign-component/lib/src/components/stepper/td_stepper.dart +++ b/tdesign-component/lib/src/components/stepper/td_stepper.dart @@ -274,8 +274,11 @@ class _TDStepperState extends State { 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) {