Commit 49e5e9080a76f44bad8dfc69b2a8704bc08e3552

Authored by “gaiyaguang”
1 parent 46711ac0

合并

@@ -51,7 +51,6 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> { @@ -51,7 +51,6 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> {
51 FocusNode _needNode = FocusNode(); 51 FocusNode _needNode = FocusNode();
52 NotebookDetailModel detailModel = NotebookDetailModel(); 52 NotebookDetailModel detailModel = NotebookDetailModel();
53 EasyContactPicker _contactPicker = EasyContactPicker(); 53 EasyContactPicker _contactPicker = EasyContactPicker();
54 - bool goSetting = false;  
55 54
56 @override 55 @override
57 void initState() { 56 void initState() {
@@ -858,8 +857,10 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> { @@ -858,8 +857,10 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> {
858 _getContactData() async { 857 _getContactData() async {
859 Contact contact = await _contactPicker.selectContactWithNative(); 858 Contact contact = await _contactPicker.selectContactWithNative();
860 setState(() { 859 setState(() {
861 - String fullName = contact.fullName.replaceAll(new RegExp(r"\s+\b|\b\s"), "");  
862 - String phone = contact.phoneNumber.replaceAll(new RegExp(r"\s+\b|\b\s"), ""); 860 + String fullName =
  861 + contact.fullName.replaceAll(new RegExp(r"\s+\b|\b\s"), "");
  862 + String phone =
  863 + contact.phoneNumber.replaceAll(new RegExp(r"\s+\b|\b\s"), "");
863 if (fullName.compareTo(phone) == 0) { 864 if (fullName.compareTo(phone) == 0) {
864 fullName = ''; 865 fullName = '';
865 } else { 866 } else {
@@ -871,7 +872,6 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> { @@ -871,7 +872,6 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> {
871 }); 872 });
872 } 873 }
873 874
874 -  
875 @override 875 @override
876 Widget build(BuildContext context) { 876 Widget build(BuildContext context) {
877 _notebookDetailChangeModel = 877 _notebookDetailChangeModel =
@@ -735,14 +735,18 @@ class DialogUtil { @@ -735,14 +735,18 @@ class DialogUtil {
735 MyDivider( 735 MyDivider(
736 ScreenUtil().setWidth(280 * 2), ScreenUtil().setWidth(2), 736 ScreenUtil().setWidth(280 * 2), ScreenUtil().setWidth(2),
737 color: MyColours.color_efefef), 737 color: MyColours.color_efefef),
738 - FlatButton(  
739 - child: Text(  
740 - '去设置',  
741 - style: TextStyle(  
742 - color: MyColours.color_2bb5b7,  
743 - fontSize: ScreenUtil().setWidth(34)), 738 + InkWell(
  739 + child: Container(
  740 + height: ScreenUtil().setWidth(47 * 2),
  741 + alignment: Alignment.center,
  742 + child: Text(
  743 + '去设置',
  744 + style: TextStyle(
  745 + color: MyColours.color_2bb5b7,
  746 + fontSize: ScreenUtil().setWidth(34)),
  747 + ),
744 ), 748 ),
745 - onPressed: () { 749 + onTap: () {
746 openSetting(); 750 openSetting();
747 Navigator.pop(context, ''); 751 Navigator.pop(context, '');
748 }, 752 },