|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
import 'package:project_telephony/ui/exclude/exclude_contacts_page.dart';
|
|
|
|
import 'package:project_telephony/ui/exclude/exclude_contacts_page.dart';
|
|
|
|
import 'package:project_telephony/ui/home/home_page.dart';
|
|
|
|
import 'package:project_telephony/ui/home/home_page.dart';
|
|
|
|
|
|
|
|
import 'package:project_telephony/ui/home/set/phone_num_list/call_records_list.dart';
|
|
|
|
import 'package:project_telephony/utils/headers.dart';
|
|
|
|
import 'package:project_telephony/utils/headers.dart';
|
|
|
|
import 'package:project_telephony/ui/widget/plone_bottom.dart';
|
|
|
|
import 'package:project_telephony/ui/widget/plone_bottom.dart';
|
|
|
|
|
|
|
|
|
|
|
@ -28,99 +29,225 @@ class _SpecifyPhonePageState extends State<SpecifyPhonePage> {
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
return ScaffoldThemeWidget(title: "发送号码设置", bottom: '添加', onTap: () {
|
|
|
|
appBar: AppBar(
|
|
|
|
showModalBottomSheet(
|
|
|
|
elevation: 0,
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
title: Text(
|
|
|
|
return Container(
|
|
|
|
'发送号码设置',
|
|
|
|
width: double.infinity,
|
|
|
|
style: TextStyle(
|
|
|
|
height: 750.w,
|
|
|
|
fontSize: BaseStyle.fontSize34,
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 32.w),
|
|
|
|
color: BaseStyle.color333333,
|
|
|
|
child: Column(
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
children: [
|
|
|
|
),
|
|
|
|
48.hb,
|
|
|
|
titleSpacing: 162.w,
|
|
|
|
Text(
|
|
|
|
leading: const CloudBackButton(isSpecial: true),
|
|
|
|
"添加号码",
|
|
|
|
backgroundColor: kForeGroundColor),
|
|
|
|
style: TextStyle(
|
|
|
|
backgroundColor: kForeGroundColor,
|
|
|
|
fontSize: 34.w,
|
|
|
|
body: EasyRefresh(
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
firstRefresh: true,
|
|
|
|
),
|
|
|
|
controller: _refreshController,
|
|
|
|
Expanded(
|
|
|
|
header: MaterialHeader(),
|
|
|
|
child: ListView(
|
|
|
|
// footer: MaterialFooter(),
|
|
|
|
children: [
|
|
|
|
onRefresh: () async {
|
|
|
|
_getAddPhone("通话记录添加", "通过本机通话记录添加号码", () {
|
|
|
|
// await userProvider.updateUserInfo();
|
|
|
|
Get.to(() => ScaffoldThemeWidget(
|
|
|
|
|
|
|
|
bottom: '添加',
|
|
|
|
|
|
|
|
title: '从通话记录添加',
|
|
|
|
|
|
|
|
isBorder: true,
|
|
|
|
|
|
|
|
isOpacity: false,
|
|
|
|
|
|
|
|
onTap: () { },
|
|
|
|
|
|
|
|
child: const CallRecordsList()
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
_getAddPhone("通迅录添加", "通过本机通讯录添加号码", () {
|
|
|
|
|
|
|
|
Get.to(() => (const ExcludeContactsPage()));
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
_getAddPhone(
|
|
|
|
|
|
|
|
"添加单个或批量号码", "通过输入号码段添加批量号码", () {}),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
)),
|
|
|
|
|
|
|
|
PloneBottom(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
hPadding: 32,
|
|
|
|
|
|
|
|
border: true,
|
|
|
|
|
|
|
|
textColor: const Color(0xFF1890FF),
|
|
|
|
|
|
|
|
color2: const Color(0xFFF9F9F9),
|
|
|
|
|
|
|
|
color1: const Color(0xFFF9F9F9),
|
|
|
|
|
|
|
|
text: "取消",
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
32.hb
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
context: context);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: EasyRefresh(
|
|
|
|
|
|
|
|
firstRefresh: true,
|
|
|
|
|
|
|
|
controller: _refreshController,
|
|
|
|
|
|
|
|
header: MaterialHeader(),
|
|
|
|
|
|
|
|
// footer: MaterialFooter(),
|
|
|
|
|
|
|
|
onRefresh: () async {
|
|
|
|
|
|
|
|
// await userProvider.updateUserInfo();
|
|
|
|
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: ListView(
|
|
|
|
child: ListView(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
_getNullList(),
|
|
|
|
_getNullList(),
|
|
|
|
PloneBottom(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
],
|
|
|
|
showModalBottomSheet(
|
|
|
|
)),);
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
// PloneBottom(
|
|
|
|
return Container(
|
|
|
|
// onTap: () {
|
|
|
|
width: double.infinity,
|
|
|
|
// showModalBottomSheet(
|
|
|
|
height: 750.w,
|
|
|
|
// builder: (BuildContext context) {
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 32.w),
|
|
|
|
// return Container(
|
|
|
|
child: Column(
|
|
|
|
// width: double.infinity,
|
|
|
|
children: [
|
|
|
|
// height: 750.w,
|
|
|
|
48.hb,
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: 32.w),
|
|
|
|
Text(
|
|
|
|
// child: Column(
|
|
|
|
"添加号码",
|
|
|
|
// children: [
|
|
|
|
style: TextStyle(
|
|
|
|
// 48.hb,
|
|
|
|
fontSize: 34.w,
|
|
|
|
// Text(
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
// "添加号码",
|
|
|
|
),
|
|
|
|
// style: TextStyle(
|
|
|
|
Expanded(
|
|
|
|
// fontSize: 34.w,
|
|
|
|
child: ListView(
|
|
|
|
// fontWeight: FontWeight.bold),
|
|
|
|
children: [
|
|
|
|
// ),
|
|
|
|
_getAddPhone("通话记录添加", "通过本机通话记录添加号码", () {
|
|
|
|
// Expanded(
|
|
|
|
Get.to(() => ScaffoldThemeWidget(
|
|
|
|
// child: ListView(
|
|
|
|
bottom: '添加',
|
|
|
|
// children: [
|
|
|
|
title: '从通话记录添加',
|
|
|
|
// _getAddPhone("通话记录添加", "通过本机通话记录添加号码", () {
|
|
|
|
isBorder: true,
|
|
|
|
// Get.to(() => ScaffoldThemeWidget(
|
|
|
|
isOpacity: false,
|
|
|
|
// bottom: '添加',
|
|
|
|
child: Container(
|
|
|
|
// title: '从通话记录添加',
|
|
|
|
width: 100.w,
|
|
|
|
// isBorder: true,
|
|
|
|
height: 100.w,
|
|
|
|
// isOpacity: false,
|
|
|
|
color: Colors.red,
|
|
|
|
// onTap: () { },
|
|
|
|
),
|
|
|
|
// child: CallRecordsList()
|
|
|
|
));
|
|
|
|
// ));
|
|
|
|
}),
|
|
|
|
// }),
|
|
|
|
_getAddPhone("通迅录添加", "通过本机通讯录添加号码", () {
|
|
|
|
// _getAddPhone("通迅录添加", "通过本机通讯录添加号码", () {
|
|
|
|
Get.to(() => (const ExcludeContactsPage()));
|
|
|
|
// Get.to(() => (const ExcludeContactsPage()));
|
|
|
|
}),
|
|
|
|
// }),
|
|
|
|
_getAddPhone(
|
|
|
|
// _getAddPhone(
|
|
|
|
"添加单个或批量号码", "通过输入号码段添加批量号码", () {}),
|
|
|
|
// "添加单个或批量号码", "通过输入号码段添加批量号码", () {}),
|
|
|
|
],
|
|
|
|
// ],
|
|
|
|
)),
|
|
|
|
// )),
|
|
|
|
PloneBottom(
|
|
|
|
// PloneBottom(
|
|
|
|
onTap: () {
|
|
|
|
// onTap: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
// Navigator.pop(context);
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
hPadding: 32,
|
|
|
|
// hPadding: 32,
|
|
|
|
border: true,
|
|
|
|
// border: true,
|
|
|
|
textColor: const Color(0xFF1890FF),
|
|
|
|
// textColor: const Color(0xFF1890FF),
|
|
|
|
color2: const Color(0xFFF9F9F9),
|
|
|
|
// color2: const Color(0xFFF9F9F9),
|
|
|
|
color1: const Color(0xFFF9F9F9),
|
|
|
|
// color1: const Color(0xFFF9F9F9),
|
|
|
|
text: "取消",
|
|
|
|
// text: "取消",
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
32.hb
|
|
|
|
// 32.hb
|
|
|
|
],
|
|
|
|
// ],
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
);
|
|
|
|
// );
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
context: context);
|
|
|
|
// context: context);
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
border: true,
|
|
|
|
// border: true,
|
|
|
|
color2: const Color(0xFF74BCFF),
|
|
|
|
// color2: const Color(0xFF74BCFF),
|
|
|
|
color1: const Color(0xFF1890FF),
|
|
|
|
// color1: const Color(0xFF1890FF),
|
|
|
|
text: "添加",
|
|
|
|
// text: "添加",
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
],
|
|
|
|
// Scaffold(
|
|
|
|
)),
|
|
|
|
// appBar: AppBar(
|
|
|
|
);
|
|
|
|
// elevation: 0,
|
|
|
|
|
|
|
|
// title: Text(
|
|
|
|
|
|
|
|
// '发送号码设置',
|
|
|
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
|
|
|
// fontSize: BaseStyle.fontSize34,
|
|
|
|
|
|
|
|
// color: BaseStyle.color333333,
|
|
|
|
|
|
|
|
// fontWeight: FontWeight.bold),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// titleSpacing: 162.w,
|
|
|
|
|
|
|
|
// leading: const CloudBackButton(isSpecial: true),
|
|
|
|
|
|
|
|
// backgroundColor: kForeGroundColor),
|
|
|
|
|
|
|
|
// backgroundColor: kForeGroundColor,
|
|
|
|
|
|
|
|
// body: EasyRefresh(
|
|
|
|
|
|
|
|
// firstRefresh: true,
|
|
|
|
|
|
|
|
// controller: _refreshController,
|
|
|
|
|
|
|
|
// header: MaterialHeader(),
|
|
|
|
|
|
|
|
// // footer: MaterialFooter(),
|
|
|
|
|
|
|
|
// onRefresh: () async {
|
|
|
|
|
|
|
|
// // await userProvider.updateUserInfo();
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// setState(() {});
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// child: ListView(
|
|
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
|
|
// _getNullList(),
|
|
|
|
|
|
|
|
// PloneBottom(
|
|
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
|
|
// showModalBottomSheet(
|
|
|
|
|
|
|
|
// builder: (BuildContext context) {
|
|
|
|
|
|
|
|
// return Container(
|
|
|
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
|
|
|
// height: 750.w,
|
|
|
|
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: 32.w),
|
|
|
|
|
|
|
|
// child: Column(
|
|
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
|
|
// 48.hb,
|
|
|
|
|
|
|
|
// Text(
|
|
|
|
|
|
|
|
// "添加号码",
|
|
|
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
|
|
|
// fontSize: 34.w,
|
|
|
|
|
|
|
|
// fontWeight: FontWeight.bold),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Expanded(
|
|
|
|
|
|
|
|
// child: ListView(
|
|
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
|
|
// _getAddPhone("通话记录添加", "通过本机通话记录添加号码", () {
|
|
|
|
|
|
|
|
// Get.to(() => const ScaffoldThemeWidget(
|
|
|
|
|
|
|
|
// bottom: '添加',
|
|
|
|
|
|
|
|
// title: '从通话记录添加',
|
|
|
|
|
|
|
|
// isBorder: true,
|
|
|
|
|
|
|
|
// isOpacity: false,
|
|
|
|
|
|
|
|
// child: CallRecordsList()
|
|
|
|
|
|
|
|
// ));
|
|
|
|
|
|
|
|
// }),
|
|
|
|
|
|
|
|
// _getAddPhone("通迅录添加", "通过本机通讯录添加号码", () {
|
|
|
|
|
|
|
|
// Get.to(() => (const ExcludeContactsPage()));
|
|
|
|
|
|
|
|
// }),
|
|
|
|
|
|
|
|
// _getAddPhone(
|
|
|
|
|
|
|
|
// "添加单个或批量号码", "通过输入号码段添加批量号码", () {}),
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// )),
|
|
|
|
|
|
|
|
// PloneBottom(
|
|
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
|
|
// Navigator.pop(context);
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// hPadding: 32,
|
|
|
|
|
|
|
|
// border: true,
|
|
|
|
|
|
|
|
// textColor: const Color(0xFF1890FF),
|
|
|
|
|
|
|
|
// color2: const Color(0xFFF9F9F9),
|
|
|
|
|
|
|
|
// color1: const Color(0xFFF9F9F9),
|
|
|
|
|
|
|
|
// text: "取消",
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// 32.hb
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// context: context);
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// border: true,
|
|
|
|
|
|
|
|
// color2: const Color(0xFF74BCFF),
|
|
|
|
|
|
|
|
// color1: const Color(0xFF1890FF),
|
|
|
|
|
|
|
|
// text: "添加",
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// )),
|
|
|
|
|
|
|
|
// );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_getAddPhone(String title, String text, VoidCallback widget) {
|
|
|
|
_getAddPhone(String title, String text, VoidCallback widget) {
|
|
|
|