|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
@ -14,6 +15,7 @@ import '../../../base/base_style.dart';
|
|
|
|
|
|
|
|
|
|
import '../../../model/exclude_phone_model.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import '../../widget/scaffold_theme_widget.dart';
|
|
|
|
|
import 'func/exclude_contacts_func.dart';
|
|
|
|
|
|
|
|
|
@ -26,7 +28,9 @@ class SpecifyPhonePage extends StatefulWidget {
|
|
|
|
|
|
|
|
|
|
class _SpecifyPhonePageState extends State<SpecifyPhonePage> {
|
|
|
|
|
final EasyRefreshController _refreshController = EasyRefreshController();
|
|
|
|
|
List<ExcludePhoneModel> findList = [];
|
|
|
|
|
List<ExcludePhoneModel> findList = [
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void dispose() {
|
|
|
|
@ -76,12 +80,10 @@ class _SpecifyPhonePageState extends State<SpecifyPhonePage> {
|
|
|
|
|
return AlertDialog(
|
|
|
|
|
content: const Text('获取通讯录权限还未开启'),
|
|
|
|
|
actions: [
|
|
|
|
|
ElevatedButton(
|
|
|
|
|
onPressed: () {
|
|
|
|
|
ElevatedButton(onPressed: (){
|
|
|
|
|
openAppSettings();
|
|
|
|
|
},
|
|
|
|
|
child: const Text("前往开启"),
|
|
|
|
|
),
|
|
|
|
|
child: const Text("前往开启"),),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
@ -131,6 +133,7 @@ class _SpecifyPhonePageState extends State<SpecifyPhonePage> {
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_getNum() {
|
|
|
|
@ -170,8 +173,7 @@ class _SpecifyPhonePageState extends State<SpecifyPhonePage> {
|
|
|
|
|
),
|
|
|
|
|
24.hb,
|
|
|
|
|
CupertinoTextField(
|
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 24.w, vertical: 20.w),
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 24.w,vertical: 20.w),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
border: Border.all(color: Colors.white),
|
|
|
|
|
// borderRadius: BorderRadius.all(
|
|
|
|
@ -193,8 +195,7 @@ class _SpecifyPhonePageState extends State<SpecifyPhonePage> {
|
|
|
|
|
),
|
|
|
|
|
24.hb,
|
|
|
|
|
CupertinoTextField(
|
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 24.w, vertical: 20.w),
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 24.w,vertical: 20.w),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
border: Border.all(color: Colors.white),
|
|
|
|
|
// borderRadius: BorderRadius.all(
|
|
|
|
@ -221,14 +222,13 @@ class _SpecifyPhonePageState extends State<SpecifyPhonePage> {
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
title: Text(
|
|
|
|
|
item.phone,
|
|
|
|
|
title: Text(item.phone,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 32.sp,
|
|
|
|
|
color: BaseStyle.color333333,
|
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
|
subtitle: Text(
|
|
|
|
|
item.address,
|
|
|
|
|
item.remark,
|
|
|
|
|
style: TextStyle(fontSize: 28.sp, color: BaseStyle.color999999),
|
|
|
|
|
),
|
|
|
|
|
trailing: TextButton(
|
|
|
|
@ -254,6 +254,7 @@ class _SpecifyPhonePageState extends State<SpecifyPhonePage> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getAddPhone(String title, String text, VoidCallback widget) {
|
|
|
|
|
return GestureDetector(
|
|
|
|
|
onTap: widget,
|
|
|
|
|