Browse Source

更新,部分更改

zyh
w-R 3 years ago
parent
commit
b35827a40a
  1. 2
      lib/main_page.dart
  2. 2
      lib/mine/mine_page.dart
  3. 4
      lib/qr/invite_friends.dart
  4. 8
      lib/view_widget/update_dialog.dart
  5. 2
      pubspec.yaml

2
lib/main_page.dart

@ -356,7 +356,7 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver {
// baseData.data.appLastVersion = "1.0.4";
// baseData.data.appLastVersionUp = "1.0.1";
if(AppUtils.versionCompare(packageInfo.version,baseData.data?.appLastVersion)
&& AppUtils.versionCompare(value.getString("appLastVersion")??"1.0.0",baseData.data?.appLastVersion)){
&& AppUtils.versionCompare(value.getString("appLastVersion"),baseData.data?.appLastVersion)){
showDialog(
context: context,
barrierDismissible: false,

2
lib/mine/mine_page.dart

@ -398,7 +398,7 @@ class MinePageState extends State<MinePage> with AutomaticKeepAliveClientMixin {
margin: EdgeInsets.only(right:14.w,bottom:10.h,left: 14.w),
child: GestureDetector(
onTap: (){
Navigator.of(context).pushNamed('/router/welfare_page');
Navigator.of(context).pushNamed('/router/invite_friends');
},
child:ClipRRect(
child:Image.asset(

4
lib/qr/invite_friends.dart

@ -47,7 +47,7 @@ class _InviteFriends extends State<InviteFriends> {
phone = UserInfo.fromJson(jsonDecode(value.getString('user'))).inviteCode;
setState(() {});
}
queryInviteMember();
queryUserInfo();
queryInviteMember();
});
}
@ -114,7 +114,7 @@ class _InviteFriends extends State<InviteFriends> {
}
_onRefresh(){
queryInviteMember();
queryUserInfo();
queryInviteMember();
}

8
lib/view_widget/update_dialog.dart

@ -30,10 +30,10 @@ class _UpdateDialog extends State<UpdateDialog> {
child: Center(
child: Container(
width: MediaQuery.of(context).size.width - 80.w,
height: 192.h,
height: 165.h,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
borderRadius: BorderRadius.circular(8.r),
),
child: Column(
children: [
@ -52,7 +52,7 @@ class _UpdateDialog extends State<UpdateDialog> {
color: Color(0xFF000000),
),
),
SizedBox(height: 12,),
SizedBox(height: 12.h,),
Text(
"是否需要更新到最新版本?",
style: TextStyle(
@ -138,7 +138,7 @@ class _UpdateDialog extends State<UpdateDialog> {
}
updateApp() async {
String url = Platform.isIOS ? "itms-apps://itunes.apple.com/app/id1575124838":"http://application.lotus-wallet.com/huixaing?release_id=627cadff23389f2fe6d57cb1";
String url = Platform.isIOS ? "itms-apps://itunes.apple.com/app/id1575124838":"http://application.lotus-wallet.com/huixaing?release_id=";
if (await canLaunch(url)) {
await launch(url);
} else {

2
pubspec.yaml

@ -3,7 +3,7 @@ description: 一心回乡.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.96+4
version: 2.0.6+6
environment:
sdk: ">=2.7.0 <3.0.0"

Loading…
Cancel
Save