Commit 46711ac020f97d27e6269cdeab2441b94034e571

Authored by “gaiyaguang”
1 parent d4ddd9f4

权限弹框消失处理

... ... @@ -51,6 +51,7 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> {
FocusNode _needNode = FocusNode();
NotebookDetailModel detailModel = NotebookDetailModel();
EasyContactPicker _contactPicker = EasyContactPicker();
bool goSetting = false;
@override
void initState() {
... ... @@ -857,8 +858,9 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> {
_getContactData() async {
Contact contact = await _contactPicker.selectContactWithNative();
setState(() {
String fullName;
if (contact.fullName.compareTo(contact.phoneNumber) == 0) {
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;
... ... @@ -869,6 +871,7 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> {
});
}
@override
Widget build(BuildContext context) {
_notebookDetailChangeModel =
... ...
... ... @@ -744,7 +744,7 @@ class DialogUtil {
),
onPressed: () {
openSetting();
// Navigator.pop(context, '确认');
Navigator.pop(context, '');
},
)
],
... ...