mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user