Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-26 15:07:12 +08:00
parent 81f72e2c4a
commit 12c13cd25a
22 changed files with 139 additions and 213 deletions

View File

@@ -342,9 +342,8 @@ class _LiveDmBlockPageState extends State<LiveDmBlockPage> {
onChanged: (val) => value = val,
decoration: isKeyword ? null : const InputDecoration(hintText: 'UID'),
keyboardType: isKeyword ? null : TextInputType.number,
inputFormatters: isKeyword
? null
: [FilteringTextInputFormatter.allow(RegExp(r'\d+'))],
inputFormatters:
isKeyword ? null : [FilteringTextInputFormatter.digitsOnly],
),
onConfirm: () {
if (value.isNotEmpty) {