王亚玲 2 years ago
parent 4884014ddf
commit f9b48743ca

@ -2,11 +2,6 @@
/// ***************************************************** /// *****************************************************
/// FlutterGen /// FlutterGen
/// ***************************************************** /// *****************************************************
// coverage:ignore-file
// ignore_for_file: type=lint
// ignore_for_file: directives_ordering,unnecessary_import
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
class $AssetsIconsGen { class $AssetsIconsGen {

@ -1,32 +1,22 @@
import 'dart:async'; import 'dart:async';
import 'dart:io';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_xupdate/flutter_xupdate.dart';
import 'package:fluwx/fluwx.dart'; import 'package:fluwx/fluwx.dart';
import 'package:get/get_navigation/src/root/get_material_app.dart'; import 'package:get/get_navigation/src/root/get_material_app.dart';
import 'package:permission_handler/permission_handler.dart'; import 'package:permission_handler/permission_handler.dart';
import 'package:project_telephony/providers/phone_num_provider.dart'; import 'package:project_telephony/providers/phone_num_provider.dart';
import 'package:project_telephony/providers/user_provider.dart'; import 'package:project_telephony/providers/user_provider.dart';
import 'package:project_telephony/ui/loading.dart'; import 'package:project_telephony/ui/loading.dart';
import 'package:project_telephony/ui/tab_navigator.dart'; import 'package:project_telephony/ui/tab_navigator.dart';
import 'package:project_telephony/utils/developer_util.dart'; import 'package:project_telephony/utils/developer_util.dart';
import 'package:project_telephony/utils/hive_store.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import 'package:telephony/telephony.dart'; import 'package:telephony/telephony.dart';
import 'package:project_telephony/utils/hive_store.dart';
void main() async { void main() async {
const buildType = String.fromEnvironment('BUILD_TYPE'); const buildType = String.fromEnvironment('BUILD_TYPE');

@ -1,5 +1,6 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'contant_list_model.g.dart'; part 'contant_list_model.g.dart';

@ -1,5 +1,5 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'exclude_phone_model.g.dart'; part 'exclude_phone_model.g.dart';

@ -1,8 +1,9 @@
import 'package:equatable/equatable.dart';
import 'package:hive/hive.dart'; import 'package:hive/hive.dart';
import 'package:json_annotation/json_annotation.dart'; import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart';
import 'content_list_model.dart'; import 'content_list_model.dart';
part 'ContentHive.g.dart'; part 'ContentHive.g.dart';

@ -1,5 +1,6 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'content_list_model.g.dart'; part 'content_list_model.g.dart';

@ -1,6 +1,6 @@
import 'package:equatable/equatable.dart';
import 'package:hive/hive.dart'; import 'package:hive/hive.dart';
import 'package:json_annotation/json_annotation.dart'; import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart';
part 'phone_model.g.dart'; part 'phone_model.g.dart';

@ -1,6 +1,7 @@
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:platform/platform.dart'; import 'package:platform/platform.dart';
import '../../constants/api.dart'; import '../../constants/api.dart';
import '../../utils/inner_model/base_list_model.dart'; import '../../utils/inner_model/base_list_model.dart';
import '../../utils/toast/cloud_toast.dart'; import '../../utils/toast/cloud_toast.dart';

@ -2,6 +2,7 @@ import 'package:dio/dio.dart';
import 'package:get/get.dart' hide Response; import 'package:get/get.dart' hide Response;
import 'package:power_logger/power_logger.dart'; import 'package:power_logger/power_logger.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import '../../providers/user_provider.dart'; import '../../providers/user_provider.dart';
import '../../ui/login/login_page.dart'; import '../../ui/login/login_page.dart';
import '../../utils/toast/cloud_toast.dart'; import '../../utils/toast/cloud_toast.dart';

@ -1,5 +1,6 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'phone_num_model.g.dart'; part 'phone_num_model.g.dart';
@JsonSerializable() @JsonSerializable()

@ -1,5 +1,6 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'sms_content_model.g.dart'; part 'sms_content_model.g.dart';

@ -1,5 +1,6 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'state_model.g.dart'; part 'state_model.g.dart';

@ -1,5 +1,5 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'update_model.g.dart'; part 'update_model.g.dart';

@ -1,5 +1,5 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart'; import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'user_info_model.g.dart'; part 'user_info_model.g.dart';

@ -1,8 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_contacts/flutter_contacts.dart'; import 'package:flutter_contacts/flutter_contacts.dart';
import 'package:project_telephony/utils/hive_store.dart'; import 'package:project_telephony/utils/hive_store.dart';
import '../model/hive/phone_model.dart'; import '../model/hive/phone_model.dart';

@ -1,13 +1,11 @@
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:project_telephony/model/hive/phone_model.dart'; import 'package:project_telephony/model/hive/phone_model.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'package:project_telephony/utils/hive_store.dart'; import 'package:project_telephony/utils/hive_store.dart';
import '../../base/base_style.dart'; import '../../base/base_style.dart';
import '../widget/plone_back_button.dart'; import '../widget/plone_back_button.dart';
import '../widget/plone_bottom.dart'; import '../widget/plone_bottom.dart';
import 'call_list_page.dart'; import 'call_list_page.dart';

@ -7,7 +7,6 @@ import '../../base/base_style.dart';
import '../../model/hive/phone_model.dart'; import '../../model/hive/phone_model.dart';
import '../exclude/exclude_contacts_page.dart'; import '../exclude/exclude_contacts_page.dart';
import '../exclude/exclude_single_page.dart'; import '../exclude/exclude_single_page.dart';
import '../widget/plone_back_button.dart'; import '../widget/plone_back_button.dart';
class CallListPage extends StatefulWidget { class CallListPage extends StatefulWidget {

@ -1,6 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_sms/flutter_sms.dart'; import 'package:flutter_sms/flutter_sms.dart';
import 'package:project_telephony/base/base_style.dart'; import 'package:project_telephony/base/base_style.dart';
import 'package:project_telephony/ui/TextMe/text_template.dart'; import 'package:project_telephony/ui/TextMe/text_template.dart';
import 'package:project_telephony/ui/widget/plone_bottom.dart'; import 'package:project_telephony/ui/widget/plone_bottom.dart';

@ -6,10 +6,8 @@ import 'package:project_telephony/utils/headers.dart';
import 'package:project_telephony/utils/user_tool.dart'; import 'package:project_telephony/utils/user_tool.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import '../../base/base_style.dart'; import '../../base/base_style.dart';
import '../home/add_sms_page.dart'; import '../home/add_sms_page.dart';
import '../widget/plone_back_button.dart'; import '../widget/plone_back_button.dart';
typedef TextCallback = Function(String content); typedef TextCallback = Function(String content);

@ -1,7 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
@ -9,7 +8,6 @@ import '../../base/base_style.dart';
import '../../constants/api.dart'; import '../../constants/api.dart';
import '../../model/network/api_client.dart'; import '../../model/network/api_client.dart';
import '../../model/network/base_model.dart'; import '../../model/network/base_model.dart';
import '../../providers/user_provider.dart'; import '../../providers/user_provider.dart';
import '../../utils/toast/cloud_toast.dart'; import '../../utils/toast/cloud_toast.dart';
import '../user/content_details_page.dart'; import '../user/content_details_page.dart';

@ -1,5 +1,4 @@
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';

@ -1,5 +1,6 @@
import 'dart:async'; import 'dart:async';
import 'dart:ui'; import 'dart:ui';
import 'package:call_log/call_log.dart'; import 'package:call_log/call_log.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter_background_service/flutter_background_service.dart'; import 'package:flutter_background_service/flutter_background_service.dart';

@ -1,5 +1,4 @@
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';

@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:project_telephony/base/base_style.dart'; import 'package:project_telephony/base/base_style.dart';
import 'package:project_telephony/ui/home/calling_idle_list.dart'; import 'package:project_telephony/ui/home/calling_idle_list.dart';
import 'package:project_telephony/ui/widget/plone_back_button.dart'; import 'package:project_telephony/ui/widget/plone_back_button.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'package:tab_indicator_styler/tab_indicator_styler.dart'; import 'package:tab_indicator_styler/tab_indicator_styler.dart';

@ -1,6 +1,6 @@
import 'dart:async'; import 'dart:async';
import 'package:bot_toast/bot_toast.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_background_service/flutter_background_service.dart'; import 'package:flutter_background_service/flutter_background_service.dart';
import 'package:package_info/package_info.dart'; import 'package:package_info/package_info.dart';
@ -10,6 +10,7 @@ import 'package:project_telephony/ui/home/set/phone_set_page.dart';
import 'package:project_telephony/ui/user/privacy_rights_page.dart'; import 'package:project_telephony/ui/user/privacy_rights_page.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
import '../user/privacy_rights_page.dart'; import '../user/privacy_rights_page.dart';
import 'content_connect_page.dart'; import 'content_connect_page.dart';
import 'content_refuse_page.dart'; import 'content_refuse_page.dart';
@ -56,18 +57,18 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver {
callLog = await Permission.callLog.request().isGranted; callLog = await Permission.callLog.request().isGranted;
addressBook = await Permission.contacts.request().isGranted; addressBook = await Permission.contacts.request().isGranted;
kg = await service.isRunning(); kg = await service.isRunning();
// setState(() {}); setState(() {});
} }
getUpdate() async { getUpdate() async {
PackageInfo packageInfo = await PackageInfo.fromPlatform(); PackageInfo packageInfo = await PackageInfo.fromPlatform();
String version = packageInfo.version; // // String version = packageInfo.version; //
String buildNumber = packageInfo.buildNumber; // String buildNumber = packageInfo.buildNumber; //
var res = await UserInfoFunc.getUpdate(); var res = await UserInfoFunc.getUpdate();
print("版本号$version"); // print("版本号$version");
print('版本构建号$buildNumber'); // print('版本构建号$buildNumber');
print("服务器上的${res.versionCode}"); // print("服务器上的${res.versionCode}");
print("服务器上的${res.versionName}"); // print("服务器上的${res.versionName}");
if (res.versionCode > int.parse(buildNumber)) { if (res.versionCode > int.parse(buildNumber)) {
// CloudToast.show("是否进行版本更新"); // CloudToast.show("是否进行版本更新");
showDialog( showDialog(

@ -2,6 +2,7 @@ import 'package:project_telephony/constants/api.dart';
import 'package:project_telephony/model/network/api_client.dart'; import 'package:project_telephony/model/network/api_client.dart';
import 'package:project_telephony/model/network/base_model.dart'; import 'package:project_telephony/model/network/base_model.dart';
import 'package:project_telephony/utils/inner_model/base_list_model.dart'; import 'package:project_telephony/utils/inner_model/base_list_model.dart';
import '../../../../model/exclude_phone_model.dart'; import '../../../../model/exclude_phone_model.dart';
import '../../../../utils/toast/cloud_toast.dart'; import '../../../../utils/toast/cloud_toast.dart';

@ -6,6 +6,7 @@ import 'package:project_telephony/base/base_style.dart';
import 'package:project_telephony/ui/home/set/func/exclude_contacts_func.dart'; import 'package:project_telephony/ui/home/set/func/exclude_contacts_func.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import '../../../../model/phone_num_model.dart'; import '../../../../model/phone_num_model.dart';
import '../../../../utils/toast/cloud_toast.dart'; import '../../../../utils/toast/cloud_toast.dart';
import '../../../widget/scaffold_theme_widget.dart'; import '../../../widget/scaffold_theme_widget.dart';

@ -1,13 +1,13 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_background_service/flutter_background_service.dart'; import 'package:flutter_background_service/flutter_background_service.dart';
import 'package:flutter_contacts/flutter_contacts.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:project_telephony/ui/home/set/specify_phone_page.dart'; import 'package:project_telephony/ui/home/set/specify_phone_page.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'package:project_telephony/utils/user_tool.dart'; import 'package:project_telephony/utils/user_tool.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import 'package:flutter_contacts/flutter_contacts.dart';
import '../../../base/base_style.dart';
import '../../../base/base_style.dart';
import '../../widget/plone_back_button.dart'; import '../../widget/plone_back_button.dart';
// class setItem{ // class setItem{

@ -6,14 +6,13 @@ import 'package:project_telephony/model/network/api_client.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/exclude/exclude_single_page.dart'; import 'package:project_telephony/ui/exclude/exclude_single_page.dart';
import 'package:project_telephony/ui/home/set/phone_num_list/call_records_list.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/ui/widget/plone_bottom.dart'; import 'package:project_telephony/ui/widget/plone_bottom.dart';
import 'package:project_telephony/utils/headers.dart';
import 'package:project_telephony/utils/toast/cloud_toast.dart'; import 'package:project_telephony/utils/toast/cloud_toast.dart';
import 'package:project_telephony/utils/user_tool.dart'; import 'package:project_telephony/utils/user_tool.dart';
import '../../../base/base_style.dart';
import '../../../base/base_style.dart';
import '../../../model/exclude_phone_model.dart'; import '../../../model/exclude_phone_model.dart';
import '../../widget/scaffold_theme_widget.dart'; import '../../widget/scaffold_theme_widget.dart';
import 'func/exclude_contacts_func.dart'; import 'func/exclude_contacts_func.dart';

@ -1,7 +1,8 @@
import 'dart:async';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:project_telephony/ui/tab_navigator.dart'; import 'package:project_telephony/ui/tab_navigator.dart';
import 'dart:async';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';

@ -1,4 +1,5 @@
import 'dart:async'; import 'dart:async';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
@ -9,6 +10,7 @@ import 'package:project_telephony/ui/login/login_psd_page.dart';
import 'package:project_telephony/ui/user/set_password_page.dart'; import 'package:project_telephony/ui/user/set_password_page.dart';
import 'package:project_telephony/ui/widget/plone_back_button.dart'; import 'package:project_telephony/ui/widget/plone_back_button.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import '../../base/base_style.dart'; import '../../base/base_style.dart';
import '../../constants/api.dart'; import '../../constants/api.dart';
import '../../constants/environment/environment.dart'; import '../../constants/environment/environment.dart';
@ -75,7 +77,6 @@ class _LoginPageState extends State<LoginPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return CloudScaffold( return CloudScaffold(
systemStyle: const SystemUiOverlayStyle( systemStyle: const SystemUiOverlayStyle(
statusBarIconBrightness: Brightness.dark, statusBarIconBrightness: Brightness.dark,
@ -124,7 +125,7 @@ class _LoginPageState extends State<LoginPage> {
const Spacer(), const Spacer(),
TextButton( TextButton(
onPressed: () { onPressed: () {
Get.to(()=>const LoginPsdPage()); Get.to(() => const LoginPsdPage());
}, },
child: const Text( child: const Text(
'密码登录', '密码登录',
@ -155,17 +156,25 @@ class _LoginPageState extends State<LoginPage> {
// BotToast.showText(text: "过快"); // BotToast.showText(text: "过快");
return; return;
} }
_lastTap = DateTime.now(); _lastTap = DateTime.now();
var base = await apiClient.request(API.app.login, data: { var base = await apiClient.request(API.app.login, data: {
'phone': _phoneController.text, 'phone': _phoneController.text,
'code': _smsCodeController.text 'code': _smsCodeController.text
}); });
if (base.code == 0) { if (base.code == 0) {
await UserTool.userProvider.setToken(base.data['token']); print("1");
Get.offAll(const TabNavigator()); await UserTool.userProvider.setToken(base.data['token']);
if (UserTool.userProvider.userInfo.havePwd == 0) { print("2");
Get.to(()=>const SetPasswordPage()); Get.offAll(const TabNavigator());
} print("3");
if (UserTool.userProvider.userInfo.havePwd == 0) {
Get.to(() => const SetPasswordPage());
}
} else { } else {
CloudToast.show(base.msg); CloudToast.show(base.msg);
} }

@ -136,8 +136,11 @@ class _LoginPsdPageState extends State<LoginPsdPage> {
'password': _pwdController.text 'password': _pwdController.text
}); });
if (base.code == 0) { if (base.code == 0) {
print("1");
await UserTool.userProvider.setToken(base.data['token']); await UserTool.userProvider.setToken(base.data['token']);
print("2");
Get.offAll(const TabNavigator()); Get.offAll(const TabNavigator());
print("3");
} else { } else {
CloudToast.show(base.msg); CloudToast.show(base.msg);

@ -2,6 +2,7 @@ import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:project_telephony/ui/user/user_page.dart'; import 'package:project_telephony/ui/user/user_page.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'TextMe/text_me_page.dart'; import 'TextMe/text_me_page.dart';
import 'home/home_page.dart'; import 'home/home_page.dart';
@ -31,7 +32,7 @@ class _TabNavigatorState extends State<TabNavigator>
// await HiveStore.init(); // await HiveStore.init();
// }); // });
// , const TextMePage() // , const TextMePage()
_pages = [const HomePage() , const TextMePage(),const UserPage()]; _pages = [const HomePage(),const UserPage()];
_tabController = TabController( _tabController = TabController(
length: _pages.length, vsync: this, initialIndex: widget.index ?? 0); length: _pages.length, vsync: this, initialIndex: widget.index ?? 0);
} }
@ -59,8 +60,8 @@ class _TabNavigatorState extends State<TabNavigator>
List<BottomNavigationBarItem> _bottomNav = <BottomNavigationBarItem>[ List<BottomNavigationBarItem> _bottomNav = <BottomNavigationBarItem>[
_buildBottomBar("首页", Assets.icons.homeNoSelected.path, _buildBottomBar("首页", Assets.icons.homeNoSelected.path,
Assets.icons.homeSelected.path), Assets.icons.homeSelected.path),
_buildBottomBar("群发", Assets.icons.nomass.path, // _buildBottomBar("群发", Assets.icons.nomass.path,
Assets.icons.mass.path), // Assets.icons.mass.path),
_buildBottomBar( _buildBottomBar(
"我的", Assets.icons.myNoselected.path, Assets.icons.mySelected.path) "我的", Assets.icons.myNoselected.path, Assets.icons.mySelected.path)
]; ];

@ -1,6 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../../base/base_style.dart'; import '../../base/base_style.dart';
import '../widget/plone_back_button.dart'; import '../widget/plone_back_button.dart';

@ -2,12 +2,10 @@ import 'package:flutter/material.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'package:project_telephony/utils/user_tool.dart'; import 'package:project_telephony/utils/user_tool.dart';
import '../../base/base_style.dart'; import '../../base/base_style.dart';
import '../../constants/api.dart'; import '../../constants/api.dart';
import '../../model/network/api_client.dart'; import '../../model/network/api_client.dart';
import '../../model/network/base_model.dart'; import '../../model/network/base_model.dart';
import '../../utils/toast/cloud_toast.dart'; import '../../utils/toast/cloud_toast.dart';
import '../widget/plone_back_button.dart'; import '../widget/plone_back_button.dart';
import '../widget/plone_bottom.dart'; import '../widget/plone_bottom.dart';

@ -4,9 +4,8 @@ import 'package:bot_toast/bot_toast.dart';
import 'package:flustars/flustars.dart'; import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:fluwx/fluwx.dart' as fluwx;
import 'package:project_telephony/base/base_style.dart'; import 'package:project_telephony/base/base_style.dart';
import 'package:project_telephony/ui/widget/check_radio.dart'; import 'package:project_telephony/ui/widget/check_radio.dart';
import 'package:project_telephony/ui/widget/plone_back_button.dart'; import 'package:project_telephony/ui/widget/plone_back_button.dart';
import 'package:project_telephony/ui/widget/plone_bottom.dart'; import 'package:project_telephony/ui/widget/plone_bottom.dart';
@ -14,7 +13,6 @@ import 'package:project_telephony/ui/widget/putup_widget.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'package:project_telephony/utils/user_tool.dart'; import 'package:project_telephony/utils/user_tool.dart';
import 'package:tobias/tobias.dart'; import 'package:tobias/tobias.dart';
import 'package:fluwx/fluwx.dart' as fluwx;
import '../../constants/api.dart'; import '../../constants/api.dart';
import '../../model/network/api_client.dart'; import '../../model/network/api_client.dart';

@ -1,8 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:permission_handler/permission_handler.dart'; import 'package:permission_handler/permission_handler.dart';
import 'package:project_telephony/base/base_style.dart'; import 'package:project_telephony/base/base_style.dart';
import 'package:project_telephony/ui/widget/plone_back_button.dart'; import 'package:project_telephony/ui/widget/plone_back_button.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';

@ -12,7 +12,6 @@ import 'package:project_telephony/ui/tab_navigator.dart';
import 'package:project_telephony/ui/user/content_authority_page.dart'; import 'package:project_telephony/ui/user/content_authority_page.dart';
import 'package:project_telephony/ui/user/members_page.dart'; import 'package:project_telephony/ui/user/members_page.dart';
import 'package:project_telephony/ui/user/privacy_rights_page.dart'; import 'package:project_telephony/ui/user/privacy_rights_page.dart';
import 'package:project_telephony/ui/user/set_password_page.dart';
import 'package:project_telephony/ui/user/setting_page.dart'; import 'package:project_telephony/ui/user/setting_page.dart';
import 'package:project_telephony/ui/user/user_card_page.dart'; import 'package:project_telephony/ui/user/user_card_page.dart';
import 'package:project_telephony/ui/widget/image_scaffold.dart'; import 'package:project_telephony/ui/widget/image_scaffold.dart';
@ -21,15 +20,14 @@ import 'package:project_telephony/utils/headers.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import 'package:telephony/telephony.dart'; import 'package:telephony/telephony.dart';
import '../../constants/api.dart'; import '../../constants/api.dart';
import '../../model/network/api_client.dart'; import '../../model/network/api_client.dart';
import '../../providers/user_provider.dart'; import '../../providers/user_provider.dart';
import '../../utils/toast/cloud_toast.dart'; import '../../utils/toast/cloud_toast.dart';
import '../../utils/user_tool.dart'; import '../../utils/user_tool.dart';
import '../home/call.dart'; import '../home/call.dart';
import '../widget/appdialog.dart'; import '../widget/appdialog.dart';
import 'content_details_page.dart'; import 'content_details_page.dart';
class UserPage extends StatefulWidget { class UserPage extends StatefulWidget {
@ -310,7 +308,8 @@ class _UserPageState extends State<UserPage> {
if (UserTool.userProvider.userInfo.isVip != 1) { if (UserTool.userProvider.userInfo.isVip != 1) {
isVip = false; isVip = false;
vle = false; vle = false;
// _easyRefreshController.callRefresh(); // UserTool.userProvider.updateUserInfo();
_easyRefreshController.callRefresh();
} else { } else {
isVip = true; isVip = true;
vle = await service.isRunning(); vle = await service.isRunning();

@ -1,8 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import '../../constants/api.dart'; import '../../constants/api.dart';
import '../../model/network/api_client.dart'; import '../../model/network/api_client.dart';
import '../../utils/toast/cloud_toast.dart'; import '../../utils/toast/cloud_toast.dart';

@ -1,5 +1,4 @@
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';

@ -2,7 +2,6 @@ import 'dart:io';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:image_picker/image_picker.dart'; import 'package:image_picker/image_picker.dart';
// import 'package:image_picker/image_picker.dart'; // import 'package:image_picker/image_picker.dart';
import 'package:project_telephony/utils/headers.dart'; import 'package:project_telephony/utils/headers.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';

@ -1,10 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:project_telephony/model/sms_content_model.dart';
import 'package:project_telephony/utils/user_tool.dart';
import 'package:provider/provider.dart';
import 'package:velocity_x/velocity_x.dart';
import '../../base/base_style.dart'; import '../../base/base_style.dart';
import '../widget/plone_back_button.dart'; import '../widget/plone_back_button.dart';

@ -1,7 +1,7 @@
// export 'package:cloud_car/base/base_style.dart'; // export 'package:cloud_car/base/base_style.dart';
export 'package:flutter_screenutil/flutter_screenutil.dart';
export 'package:get/get.dart';
export 'package:project_telephony/extensions/num_ext.dart'; export 'package:project_telephony/extensions/num_ext.dart';
export 'package:project_telephony/extensions/num_ext.dart'; export 'package:project_telephony/extensions/num_ext.dart';
export 'package:project_telephony/extensions/wigget_list_ext.dart'; export 'package:project_telephony/extensions/wigget_list_ext.dart';
export 'package:project_telephony/gen/assets.gen.dart'; export 'package:project_telephony/gen/assets.gen.dart';
export 'package:flutter_screenutil/flutter_screenutil.dart';
export 'package:get/get.dart';

@ -1,5 +1,6 @@
// import 'package:project_telephony/providers/phone_provider.dart'; // import 'package:project_telephony/providers/phone_provider.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import '../providers/phone_num_provider.dart'; import '../providers/phone_num_provider.dart';
import '../providers/user_provider.dart'; import '../providers/user_provider.dart';
import 'headers.dart'; import 'headers.dart';

Loading…
Cancel
Save