From 30755b17425a6f8bb097f4b1f122201a4a877cf4 Mon Sep 17 00:00:00 2001 From: datang Date: Thu, 8 Sep 2022 18:26:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8E=E9=80=9A=E8=AE=AF=E5=BD=95=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/exclude/exclude_contacts_page.dart | 20 ++++++++++++++++++++ lib/ui/home/set/specify_phone_page.dart | 5 ++++- lib/ui/widget/scaffold_theme_widget.dart | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 lib/ui/exclude/exclude_contacts_page.dart diff --git a/lib/ui/exclude/exclude_contacts_page.dart b/lib/ui/exclude/exclude_contacts_page.dart new file mode 100644 index 0000000..ac194b7 --- /dev/null +++ b/lib/ui/exclude/exclude_contacts_page.dart @@ -0,0 +1,20 @@ +import 'package:flutter/cupertino.dart'; +import 'package:project_telephony/ui/widget/scaffold_theme_widget.dart'; + +class ExcludeContactsPage extends StatefulWidget { + const ExcludeContactsPage({Key? key}) : super(key: key); + + @override + _ExcludeContactsPageState createState() => _ExcludeContactsPageState(); +} + +class _ExcludeContactsPageState extends State { + @override + Widget build(BuildContext context) { + return ScaffoldThemeWidget( + title: "从通讯录添加", + bottom: "添加", + child: Container(), + ); + } +} diff --git a/lib/ui/home/set/specify_phone_page.dart b/lib/ui/home/set/specify_phone_page.dart index c40d6c1..295bfe6 100644 --- a/lib/ui/home/set/specify_phone_page.dart +++ b/lib/ui/home/set/specify_phone_page.dart @@ -1,5 +1,6 @@ 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/home/home_page.dart'; import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/ui/widget/plone_bottom.dart'; @@ -76,7 +77,9 @@ class _SpecifyPhonePageState extends State { _getAddPhone("通话记录添加", "通过本机通话记录添加号码", () { }), - _getAddPhone("通迅录添加", "通过本机通讯录添加号码", () {}), + _getAddPhone("通迅录添加", "通过本机通讯录添加号码", () { + Get.to(()=>(const ExcludeContactsPage())); + }), _getAddPhone( "添加单个或批量号码", "通过输入号码段添加批量号码", () {}), ], diff --git a/lib/ui/widget/scaffold_theme_widget.dart b/lib/ui/widget/scaffold_theme_widget.dart index b2a8bdd..da33cfc 100644 --- a/lib/ui/widget/scaffold_theme_widget.dart +++ b/lib/ui/widget/scaffold_theme_widget.dart @@ -56,7 +56,7 @@ class _ScaffoldThemeWidgetState extends State { body: widget.child, bottomNavigationBar: PloneBottom( onTap: () async { - + }, text: widget.bottom, ).paddingOnly(bottom: 30.w),