feat:取消系统自带软键盘设计,改为系统自用键盘组件-初步

feat:将打印分为图片打印和命令式打印-初步
This commit is contained in:
dzc committed 2026-09-20 18:24:01 +08:00
1 parent 94ee7415b1
commit e68f41375b
38 files changed
+1471 -408

No files matched your search

@@ -130,7 +130,8 @@ class _TerminalAdminPasswordDialogState
hint: '请输入管理密码',
maxLines: 1,
obscureText: _obscureText,
keyboardType: TextInputType.number,
// 系统软键盘在定制 ROM 上不可用,触摸输入由下方内嵌键盘承担。
keyboardType: TextInputType.none,
textInputAction: TextInputAction.done,
inputFormatters: [
FilteringTextInputFormatter.digitsOnly,
@@ -162,7 +163,7 @@ class _TerminalAdminPasswordDialogState
FIcon(
FAssets.icons.circleAlert,
color: XfjDesignTokens.danger,
size: 18.sp,
size: 18.w,
),
SizedBox(width: 8.w),
Text(
@@ -175,6 +176,16 @@ class _TerminalAdminPasswordDialogState
],
),
],
SizedBox(height: 20.h),
// 弹框高度有限且需要输入,键盘直接内嵌在弹框内跟随展示;
// 管理密码仅数字且最长 12 位。
AppSoftKeyboardPanel(
controller: _controller,
mode: AppSoftKeyboardMode.digits,
allowPattern: RegExp('[0-9]'),
maxLength: 12,
semanticLabel: '管理密码数字键盘',
),
],
),
),