安卓版本号修改,iOS配置修改,修改消息为零时不断获取消息数bug

This commit is contained in:
CYH 2023-11-08 16:32:29 +08:00
parent b31a658a1b
commit 4818b67f64
5 changed files with 43 additions and 35 deletions

View File

@ -71,8 +71,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 14 versionCode 21
versionName "1.2.2" versionName "1.2.7"
manifestPlaceholders = [ manifestPlaceholders = [
vivo_APPID: "105669716", vivo_APPID: "105669716",
vivo_APPKEY:"84f750207787376b310ca5b0d5969122", vivo_APPKEY:"84f750207787376b310ca5b0d5969122",

View File

@ -381,8 +381,8 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 1.2.2; MARKETING_VERSION = 1.2.5;
PRODUCT_BUNDLE_IDENTIFIER = com.exampe.circleApp; PRODUCT_BUNDLE_IDENTIFIER = com.example.circleApp;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO; SUPPORTS_MACCATALYST = NO;
@ -530,8 +530,8 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 1.2.2; MARKETING_VERSION = 1.2.5;
PRODUCT_BUNDLE_IDENTIFIER = com.exampe.circleApp; PRODUCT_BUNDLE_IDENTIFIER = com.example.circleApp;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO; SUPPORTS_MACCATALYST = NO;
@ -573,8 +573,8 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 1.2.2; MARKETING_VERSION = 1.2.5;
PRODUCT_BUNDLE_IDENTIFIER = com.exampe.circleApp; PRODUCT_BUNDLE_IDENTIFIER = com.example.circleApp;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO; SUPPORTS_MACCATALYST = NO;

View File

@ -35,15 +35,19 @@ class _CirclePageState extends State<CirclePage>
late TabController _tabController; late TabController _tabController;
late PageController _pageController; late PageController _pageController;
int currentIndex = 0;
@override @override
bool get wantKeepAlive => true; bool get wantKeepAlive => true;
@override @override
void initState() { void initState() {
super.initState(); super.initState();
int initIndex = Random().nextInt(3); currentIndex = Random().nextInt(3);
_pageController = PageController(initialPage: initIndex); _pageController = PageController(initialPage: currentIndex);
_tabController = TabController(length: 3, vsync: this, initialIndex: initIndex); _tabController = TabController(length: 3, vsync: this, initialIndex: currentIndex);
_tabController.addListener(_handleTabChange); _tabController.addListener(_handleTabChange);
} }
@ -734,11 +738,8 @@ class _CirclePageState extends State<CirclePage>
], ],
), ),
onTap: (index) { onTap: (index) {
_pageController.animateToPage(
index, // if (currentIndex == index) {
duration: const Duration(milliseconds: 300), //
curve: Curves.ease, // 线
);
if (index == 2) { if (index == 2) {
EventBusManager.fire(DiscovrScrollTap()); EventBusManager.fire(DiscovrScrollTap());
} else if (index == 1) { } else if (index == 1) {
@ -746,6 +747,15 @@ class _CirclePageState extends State<CirclePage>
} else if (index == 0) { } else if (index == 0) {
EventBusManager.fire(ScrollToTop()); EventBusManager.fire(ScrollToTop());
} }
return;
}
currentIndex = index;
_pageController.animateToPage(
index, //
duration: const Duration(milliseconds: 300), //
curve: Curves.ease, // 线
);
}, },
), ),
], ],

View File

@ -2,7 +2,7 @@ import 'dart:io';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
// import 'package:flutter_install_app/flutter_install_app.dart'; import 'package:flutter_install_app/flutter_install_app.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
@ -42,7 +42,7 @@ class _CustomDialogState extends State<UpdateDialog> {
child: Dialog( child: Dialog(
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
child: Container( child: Container(
height: 277.sp, height: 317.sp,
padding: const EdgeInsets.all(1.0), padding: const EdgeInsets.all(1.0),
child: Stack( child: Stack(
children: [ children: [
@ -79,17 +79,17 @@ class _CustomDialogState extends State<UpdateDialog> {
style: TextStyle(color: Colors.white, fontSize: 16.sp), style: TextStyle(color: Colors.white, fontSize: 16.sp),
), ),
), ),
Container( // Container(
margin: EdgeInsets.only(top: 14.sp), // margin: EdgeInsets.only(top: 14.sp),
alignment: Alignment.center, // alignment: Alignment.center,
child: Image( // child: Image(
image: AssetImage(getBaseImage("ic_launcher")), // image: AssetImage(getBaseImage("ic_launcher")),
width: 70.sp, // width: 70.sp,
height: 70.sp, // height: 70.sp,
), // ),
), // ),
SizedBox( SizedBox(
height: 65.sp, height: 215.sp,
child: ListView( child: ListView(
children: [ children: [
Container( Container(
@ -98,7 +98,7 @@ class _CustomDialogState extends State<UpdateDialog> {
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
widget.updateInfo.updateInfo, widget.updateInfo.updateInfo,
textAlign: TextAlign.center, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: const Color(0xCCF7FAFA), color: const Color(0xCCF7FAFA),
fontSize: 16.sp), fontSize: 16.sp),
@ -191,7 +191,7 @@ class _CustomDialogState extends State<UpdateDialog> {
}, },
child: Container( child: Container(
width: 200.sp, width: 200.sp,
margin: EdgeInsets.only(top: 24.sp), margin: EdgeInsets.only(top: 10.sp),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(17), borderRadius: BorderRadius.circular(17),
gradient: const LinearGradient( gradient: const LinearGradient(
@ -260,7 +260,7 @@ class _CustomDialogState extends State<UpdateDialog> {
// SmartDialog.dismiss(); // SmartDialog.dismiss();
print(error); print(error);
}); });
// await AppInstaller.installApk(filePath, actionRequired: false); await AppInstaller.installApk(filePath, actionRequired: false);
} }
} }

View File

@ -148,8 +148,6 @@ class HomeLogic extends GetxController {
if (Platform.isAndroid) { if (Platform.isAndroid) {
setOfflinePushStatus(status: AppStatus.foreground); setOfflinePushStatus(status: AppStatus.foreground);
} }
} else {
getUnreadSize();
} }
} catch (e) {} } catch (e) {}
} }