王亚玲 2 years ago
commit 43860c914d

@ -31,6 +31,8 @@
android:name="flutterEmbedding" android:name="flutterEmbedding"
android:value="2" /> android:value="2" />
</application> </application>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.SEND_SMS"/> <uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.READ_SMS"/> <uses-permission android:name="android.permission.READ_SMS"/>
<uses-permission android:name="android.permission.RECEIVE_SMS"/> <uses-permission android:name="android.permission.RECEIVE_SMS"/>

@ -109,19 +109,19 @@ class _MyAppState extends State<MyApp> {
// production: false, // production: false,
// debug: true // debug: true
// ); // );
service.start(); // service.start();
List<Permission> permissions = [ // List<Permission> permissions = [
Permission.sms, // Permission.sms,
Permission.phone, // Permission.phone,
]; // ];
PermissionHelper.check(permissions, onSuccess: () { // PermissionHelper.check(permissions, onSuccess: () {
print('onSuccess'); // print('onSuccess');
}, onFailed: () { // }, onFailed: () {
print('onFailed'); // print('onFailed');
}, onOpenSetting: () { // }, onOpenSetting: () {
print('onOpenSetting'); // print('onOpenSetting');
openAppSettings(); // openAppSettings();
}); // });
} }
// onMessage(SmsMessage message) async { // onMessage(SmsMessage message) async {

@ -1,5 +1,3 @@
import 'dart:math';
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';
@ -63,7 +61,7 @@ class _PrivacyRightsPageState extends State<PrivacyRightsPage> {
? null ? null
: Column( : Column(
children: [ children: [
_getRights(pd), _getRights(pd!),
], ],
)); ));
} }

@ -2,8 +2,8 @@ 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:permission_handler/permission_handler.dart'; import 'package:permission_handler/permission_handler.dart';
import 'package:permission_handler_platform_interface/permission_handler_platform_interface.dart';
import 'package:project_telephony/base/base_style.dart'; import 'package:project_telephony/base/base_style.dart';
import 'package:project_telephony/ui/home/home_page.dart';
import 'package:project_telephony/ui/login/login_page.dart'; import 'package:project_telephony/ui/login/login_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';
@ -31,6 +31,7 @@ void initState() {}
class _UserPageState extends State<UserPage> { class _UserPageState extends State<UserPage> {
bool vle = false; bool vle = false;
bool tooken = true; bool tooken = true;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return CloudScaffold( return CloudScaffold(
@ -54,7 +55,8 @@ class _UserPageState extends State<UserPage> {
PloneBottom( PloneBottom(
border: false, border: false,
onTap: () { onTap: () {
// PermissionUtils.requestAllPermission(); PermissionUtils.requestAllPermission();
// Get.to(() => const HomePage()); // Get.to(() => const HomePage());
}, },
textColor: const Color(0xFF1890FF), textColor: const Color(0xFF1890FF),

@ -320,28 +320,7 @@ packages:
name: flutter_background_service name: flutter_background_service
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.8+5" version: "0.2.6"
flutter_background_service_android:
dependency: transitive
description:
name: flutter_background_service_android
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.2"
flutter_background_service_ios:
dependency: transitive
description:
name: flutter_background_service_ios
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.2"
flutter_background_service_platform_interface:
dependency: transitive
description:
name: flutter_background_service_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+3"
flutter_gen_core: flutter_gen_core:
dependency: transitive dependency: transitive
description: description:
@ -369,7 +348,7 @@ packages:
name: flutter_native_splash name: flutter_native_splash
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.3" version: "1.3.2"
flutter_plugin_android_lifecycle: flutter_plugin_android_lifecycle:
dependency: transitive dependency: transitive
description: description:
@ -435,7 +414,7 @@ packages:
name: grinder name: grinder
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.9.2" version: "0.9.1"
hive: hive:
dependency: "direct main" dependency: "direct main"
description: description:
@ -631,7 +610,7 @@ packages:
name: path_provider_android name: path_provider_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.17" version: "2.0.12"
path_provider_ios: path_provider_ios:
dependency: transitive dependency: transitive
description: description:
@ -689,7 +668,7 @@ packages:
source: hosted source: hosted
version: "9.0.4" version: "9.0.4"
permission_handler_platform_interface: permission_handler_platform_interface:
dependency: transitive dependency: "direct main"
description: description:
name: permission_handler_platform_interface name: permission_handler_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
@ -820,7 +799,7 @@ packages:
name: shelf name: shelf
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.2" version: "1.2.0"
shelf_web_socket: shelf_web_socket:
dependency: transitive dependency: transitive
description: description:
@ -896,6 +875,16 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0+2" version: "3.0.0+2"
<<<<<<< HEAD
=======
telephony:
dependency: "direct main"
description:
name: telephony
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
>>>>>>> b3fc551780d9788cb9ec28a234cb871209f9f7ce
term_glyph: term_glyph:
dependency: transitive dependency: transitive
description: description:
@ -1010,4 +999,8 @@ packages:
version: "3.1.1" version: "3.1.1"
sdks: sdks:
dart: ">=2.17.0-0 <3.0.0" dart: ">=2.17.0-0 <3.0.0"
<<<<<<< HEAD
flutter: ">=2.8.1" flutter: ">=2.8.1"
=======
flutter: ">=2.8.0"
>>>>>>> b3fc551780d9788cb9ec28a234cb871209f9f7ce

@ -34,7 +34,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.2
# telephony: any telephony: ^0.2.0
## 获取来电状态 ## 获取来电状态
# provider: ^6.0.3 # provider: ^6.0.3
# 获取通话记录 # 获取通话记录
@ -68,6 +68,8 @@ dependencies:
flustars: ^2.0.1 flustars: ^2.0.1
# model生成 # model生成
json_annotation: ^4.6.0 json_annotation: ^4.6.0
permission_handler_platform_interface: ^3.7.0
# # jdk # # jdk
# jverify: ^2.2.5 # jverify: ^2.2.5
## pub 集成 ## pub 集成

Loading…
Cancel
Save