|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import 'package:flutter/material.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_single_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';
|
|
|
|
@ -29,76 +30,78 @@ class _SpecifyPhonePageState extends State<SpecifyPhonePage> {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return ScaffoldThemeWidget(title: "发送号码设置", bottom: '添加', 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(
|
|
|
|
|
return ScaffoldThemeWidget(
|
|
|
|
|
title: "发送号码设置",
|
|
|
|
|
bottom: '添加',
|
|
|
|
|
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(() => ScaffoldThemeWidget(
|
|
|
|
|
Get.to(() => ScaffoldThemeWidget(
|
|
|
|
|
bottom: '添加',
|
|
|
|
|
title: '从通话记录添加',
|
|
|
|
|
isBorder: true,
|
|
|
|
|
isOpacity: false,
|
|
|
|
|
onTap: () { },
|
|
|
|
|
child: const CallRecordsList()
|
|
|
|
|
));
|
|
|
|
|
onTap: () {},
|
|
|
|
|
child: const CallRecordsList()));
|
|
|
|
|
}),
|
|
|
|
|
_getAddPhone("通迅录添加", "通过本机通讯录添加号码", () {
|
|
|
|
|
Get.to(() => (const ExcludeContactsPage()));
|
|
|
|
|
}),
|
|
|
|
|
_getAddPhone(
|
|
|
|
|
"添加单个或批量号码", "通过输入号码段添加批量号码", () {}),
|
|
|
|
|
_getAddPhone("添加单个或批量号码", "通过输入号码段添加批量号码", () {
|
|
|
|
|
Get.to(() => (const ExcludeSinglePage()));
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
PloneBottom(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
},
|
|
|
|
|
hPadding: 32,
|
|
|
|
|
border: true,
|
|
|
|
|
textColor: const Color(0xFF1890FF),
|
|
|
|
|
color2: const Color(0xFFF9F9F9),
|
|
|
|
|
color1: const Color(0xFFF9F9F9),
|
|
|
|
|
text: "取消",
|
|
|
|
|
PloneBottom(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
},
|
|
|
|
|
hPadding: 32,
|
|
|
|
|
border: true,
|
|
|
|
|
textColor: const Color(0xFF1890FF),
|
|
|
|
|
color2: const Color(0xFFF9F9F9),
|
|
|
|
|
color1: const Color(0xFFF9F9F9),
|
|
|
|
|
text: "取消",
|
|
|
|
|
),
|
|
|
|
|
32.hb
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
32.hb
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
context: context);
|
|
|
|
|
},
|
|
|
|
|
child: EasyRefresh(
|
|
|
|
|
firstRefresh: true,
|
|
|
|
|
controller: _refreshController,
|
|
|
|
|
header: MaterialHeader(),
|
|
|
|
|
// footer: MaterialFooter(),
|
|
|
|
|
onRefresh: () async {
|
|
|
|
|
// await userProvider.updateUserInfo();
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
context: context);
|
|
|
|
|
},
|
|
|
|
|
child: EasyRefresh(
|
|
|
|
|
firstRefresh: true,
|
|
|
|
|
controller: _refreshController,
|
|
|
|
|
header: MaterialHeader(),
|
|
|
|
|
// footer: MaterialFooter(),
|
|
|
|
|
onRefresh: () async {
|
|
|
|
|
// await userProvider.updateUserInfo();
|
|
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
|
},
|
|
|
|
|
child: ListView(
|
|
|
|
|
children: [
|
|
|
|
|
_getNullList(),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
)),);
|
|
|
|
|
setState(() {});
|
|
|
|
|
},
|
|
|
|
|
child: ListView(
|
|
|
|
|
children: [
|
|
|
|
|
_getNullList(),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
// PloneBottom(
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// showModalBottomSheet(
|
|
|
|
|