|
@@ -261,33 +261,46 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
border: InputBorder.none
|
|
border: InputBorder.none
|
|
|
),
|
|
),
|
|
|
onChanged: ((value) {
|
|
onChanged: ((value) {
|
|
|
- print("onchange 了");
|
|
|
|
|
if (tab == 'sendPhone') {
|
|
if (tab == 'sendPhone') {
|
|
|
- RenderObject sendPhoneObj = _sendPhoneKey.currentContext.findRenderObject();
|
|
|
|
|
- setState(() {
|
|
|
|
|
- tipWidth = sendPhoneObj.paintBounds.size.width;
|
|
|
|
|
- tipHeight = sendPhoneObj.paintBounds.size.height;
|
|
|
|
|
- tipPosX = sendPhoneObj.getTransformTo(null).getTranslation().x;
|
|
|
|
|
- tipPosY = sendPhoneObj.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
|
|
|
- tipStatus = false;
|
|
|
|
|
- });
|
|
|
|
|
- print(tipWidth);
|
|
|
|
|
- print(tipHeight);
|
|
|
|
|
- print(tipPosX);
|
|
|
|
|
- print(tipPosY);
|
|
|
|
|
|
|
+ if(value.length>=4){
|
|
|
|
|
+ RenderObject sendPhoneObj = _sendPhoneKey.currentContext.findRenderObject();
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ tipWidth = sendPhoneObj.paintBounds.size.width;
|
|
|
|
|
+ tipHeight = sendPhoneObj.paintBounds.size.height;
|
|
|
|
|
+ tipPosX = sendPhoneObj.getTransformTo(null).getTranslation().x;
|
|
|
|
|
+ tipPosY = sendPhoneObj.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
|
|
|
+ tipStatus = false;
|
|
|
|
|
+ });
|
|
|
|
|
+ }else{
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ tipStatus = true;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // print(tipWidth);
|
|
|
|
|
+ // print(tipHeight);
|
|
|
|
|
+ // print(tipPosX);
|
|
|
|
|
+ // print(tipPosY);
|
|
|
} else if (tab == 'getPhone') {
|
|
} else if (tab == 'getPhone') {
|
|
|
- RenderObject sendPhoneObj = _getPhoneKey.currentContext.findRenderObject();
|
|
|
|
|
- setState(() {
|
|
|
|
|
- tipWidth = sendPhoneObj.paintBounds.size.width;
|
|
|
|
|
- tipHeight = sendPhoneObj.paintBounds.size.height;
|
|
|
|
|
- tipPosX = sendPhoneObj.getTransformTo(null).getTranslation().x;
|
|
|
|
|
- tipPosY = sendPhoneObj.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
|
|
|
- tipStatus = false;
|
|
|
|
|
- });
|
|
|
|
|
- print(tipWidth);
|
|
|
|
|
- print(tipHeight);
|
|
|
|
|
- print(tipPosX);
|
|
|
|
|
- print(tipPosY);
|
|
|
|
|
|
|
+ if(value.length>=4){
|
|
|
|
|
+ RenderObject sendPhoneObj = _getPhoneKey.currentContext.findRenderObject();
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ tipWidth = sendPhoneObj.paintBounds.size.width;
|
|
|
|
|
+ tipHeight = sendPhoneObj.paintBounds.size.height;
|
|
|
|
|
+ tipPosX = sendPhoneObj.getTransformTo(null).getTranslation().x;
|
|
|
|
|
+ tipPosY = sendPhoneObj.getTransformTo(null).getTranslation().y - ScreenUtil.getInstance().setHeight(90);
|
|
|
|
|
+ tipStatus = false;
|
|
|
|
|
+ });
|
|
|
|
|
+ }else{
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ tipStatus = true;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // print(tipWidth);
|
|
|
|
|
+ // print(tipHeight);
|
|
|
|
|
+ // print(tipPosX);
|
|
|
|
|
+ // print(tipPosY);
|
|
|
}
|
|
}
|
|
|
}),
|
|
}),
|
|
|
onEditingComplete: () {
|
|
onEditingComplete: () {
|