修改 提示

This commit is contained in:
WoNiu 2024-04-06 16:35:02 +08:00
parent ff882a5e06
commit b6b6e41e8b
1 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,4 @@
import 'package:common/utils/toast_utils.dart';
import 'package:flutter/material.dart';
import 'package:web_synchronization_tool/windows/number_tool.dart';
import 'package:web_synchronization_tool/windows/socket_tool.dart';
@ -216,7 +217,8 @@ class _ShowWebWidgetState extends State<ShowWebWidget> {
int chidNum = SocketUtils.getInstance().childrenIp.length + 1;
if (num <= chidNum * 10){
numController.text = '金额不能小于${chidNum*10}';
numController.text = '不能小于${chidNum*10}';
ToastUtils.showToast('金额不能太小');
return;
}
@ -229,7 +231,7 @@ class _ShowWebWidgetState extends State<ShowWebWidget> {
nums.removeAt(0);
SynchronizationWebTool.getInstance().input(nums);
}catch(e){
numController.text = '请输入数字';
ToastUtils.showToast('请输入数字');
}
},
child: const Text('填入总金额')),