Commit 2095617c0ea30c35b23612294c1b7f9c994479f2

Authored by gaiyaguang
2 parents 2037d6c9 49e5e908

修复bug

... ... @@ -857,8 +857,18 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> {
_getContactData() async {
Contact contact = await _contactPicker.selectContactWithNative();
setState(() {
String fullName =
contact.fullName.replaceAll(new RegExp(r"\s+\b|\b\s"), "");
String phone =
contact.phoneNumber.replaceAll(new RegExp(r"\s+\b|\b\s"), "");
if (fullName.compareTo(phone) == 0) {
fullName = '';
} else {
fullName = contact.fullName;
}
_notebookDetailChangeModel.phoneController.text = contact.phoneNumber;
_notebookDetailChangeModel.nameController.text = contact.fullName;
_notebookDetailChangeModel.nameController.text = fullName;
});
}
... ...
... ... @@ -735,16 +735,20 @@ class DialogUtil {
MyDivider(
ScreenUtil().setWidth(280 * 2), ScreenUtil().setWidth(2),
color: MyColours.color_efefef),
FlatButton(
child: Text(
'去设置',
style: TextStyle(
color: MyColours.color_2bb5b7,
fontSize: ScreenUtil().setWidth(34)),
InkWell(
child: Container(
height: ScreenUtil().setWidth(47 * 2),
alignment: Alignment.center,
child: Text(
'去设置',
style: TextStyle(
color: MyColours.color_2bb5b7,
fontSize: ScreenUtil().setWidth(34)),
),
),
onPressed: () {
onTap: () {
openSetting();
// Navigator.pop(context, '确认');
Navigator.pop(context, '');
},
)
],
... ...