import 'package:flutter/material.dart'; String domain='http://49.4.66.233:8201/'; // String domain='http://192.168.50.226:8080/'; //本地ip String debugID='84671';//测试id bool isDebug=false;//是否测试(未链接登录需要该值获取测试id) bool checkPhone (phone){ bool result = false; RegExp exp=new RegExp(r"^1[3|4|5|8|7|6|9][0-9]\d{8}$"); if (exp.hasMatch(phone)) { result = true; } return result; }