修改不同意协议退出方式

This commit is contained in:
yangyuhao 2023-09-04 10:39:15 +08:00
parent 9860ad3ce1
commit a2b8a959fa
8 changed files with 14 additions and 13 deletions

View File

@ -65,8 +65,8 @@ android {
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 21 minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion targetSdkVersion flutter.targetSdkVersion
versionCode 7 versionCode 8
versionName "1.0.6" versionName "1.0.7"
manifestPlaceholders = [ manifestPlaceholders = [
vivo_APPID: "105669716", vivo_APPID: "105669716",
vivo_APPKEY:"84f750207787376b310ca5b0d5969122", vivo_APPKEY:"84f750207787376b310ca5b0d5969122",

View File

@ -7,7 +7,7 @@
<item> <item>
<bitmap <bitmap
android:gravity="center" android:gravity="center"
android:src="@mipmap/launch_image" /> android:src="@mipmap/launch_back" />
</item> </item>
<item> <item>
<bitmap <bitmap

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

View File

@ -3,8 +3,8 @@ import 'dart:io';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/gestures.dart'; import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:tencent_chat_push_for_china/tencent_chat_push_for_china.dart'; import 'package:tencent_chat_push_for_china/tencent_chat_push_for_china.dart';
import 'package:tencent_cloud_chat_uikit/tencent_cloud_chat_uikit.dart'; import 'package:tencent_cloud_chat_uikit/tencent_cloud_chat_uikit.dart';
@ -86,7 +86,7 @@ class _CustomDialogState extends State<YesAgreementDialog> {
children: [ children: [
TextSpan( TextSpan(
text: "《用户协议》", text: "《用户协议》",
style: TextStyle( style: const TextStyle(
color: Color(0xFF21BEAB), color: Color(0xFF21BEAB),
), ),
recognizer: TapGestureRecognizer() recognizer: TapGestureRecognizer()
@ -94,7 +94,7 @@ class _CustomDialogState extends State<YesAgreementDialog> {
navigateToUserAgreement(); navigateToUserAgreement();
}, },
), ),
TextSpan( const TextSpan(
text: "", text: "",
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
@ -102,7 +102,7 @@ class _CustomDialogState extends State<YesAgreementDialog> {
), ),
TextSpan( TextSpan(
text: "《隐私政策》", text: "《隐私政策》",
style: TextStyle( style: const TextStyle(
color: Color(0xFF21BEAB), color: Color(0xFF21BEAB),
), ),
recognizer: TapGestureRecognizer() recognizer: TapGestureRecognizer()
@ -133,12 +133,12 @@ class _CustomDialogState extends State<YesAgreementDialog> {
}, },
child: Container( child: Container(
width: 240.sp, width: 240.sp,
padding: EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
vertical: 10, vertical: 10,
horizontal: 44, horizontal: 44,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: LinearGradient( gradient: const LinearGradient(
colors: [Color(0xFFDD3DF4), Color(0xFF30FFD9)], colors: [Color(0xFFDD3DF4), Color(0xFF30FFD9)],
begin: Alignment.centerLeft, begin: Alignment.centerLeft,
end: Alignment.centerRight, end: Alignment.centerRight,
@ -159,7 +159,8 @@ class _CustomDialogState extends State<YesAgreementDialog> {
TextButton( TextButton(
onPressed: () { onPressed: () {
// //
exit(1); // exit(1);
SystemNavigator.pop();
}, },
child: Text( child: Text(
"不同意并退出应用", "不同意并退出应用",

View File

@ -15,7 +15,7 @@ class SplashPage extends StatelessWidget {
return Container( return Container(
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: DecorationImage( image: DecorationImage(
image: AssetImage('assets/images/base/launch_image.webp'), image: AssetImage('assets/images/base/launch_back.webp'),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),

View File

@ -1,9 +1,9 @@
class Api { class Api {
static const baseUrl = 'https://leyuan666.com/zuul-service/'; static const baseUrl = 'https://leyuan666.com/zuul-service/';
// static const baseUrl = 'http://192.168.3.55:2000/' ; // static const baseUrl = 'http://192.168.3.55:2000/' ;
// //