修改 提示
This commit is contained in:
parent
ff882a5e06
commit
b6b6e41e8b
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'package:common/utils/toast_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:web_synchronization_tool/windows/number_tool.dart';
|
import 'package:web_synchronization_tool/windows/number_tool.dart';
|
||||||
import 'package:web_synchronization_tool/windows/socket_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;
|
int chidNum = SocketUtils.getInstance().childrenIp.length + 1;
|
||||||
|
|
||||||
if (num <= chidNum * 10){
|
if (num <= chidNum * 10){
|
||||||
numController.text = '金额不能小于${chidNum*10}';
|
numController.text = '不能小于${chidNum*10}';
|
||||||
|
ToastUtils.showToast('金额不能太小');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -229,7 +231,7 @@ class _ShowWebWidgetState extends State<ShowWebWidget> {
|
||||||
nums.removeAt(0);
|
nums.removeAt(0);
|
||||||
SynchronizationWebTool.getInstance().input(nums);
|
SynchronizationWebTool.getInstance().input(nums);
|
||||||
}catch(e){
|
}catch(e){
|
||||||
numController.text = '请输入数字';
|
ToastUtils.showToast('请输入数字');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: const Text('填入总金额')),
|
child: const Text('填入总金额')),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue