Browse Source

增加转发分享页面;

修改分享弹窗跳转;
修改下来刷新成功显示的颜色;
修改动态列表底部四个控件ui显示;
合并new分支代码;
兼容推送类型更改;
更改订单详情刷新颜色;
增加,app在后台高于5分钟后进入前台刷新应用;
dart3_last
wurong 2 years ago
parent
commit
7c2e664341
  1. 328
      ios/Podfile.lock
  2. 12
      ios/Runner.xcodeproj/project.pbxproj
  3. 70
      lib/base_state.dart
  4. 2
      lib/community/community_details.dart
  5. 5
      lib/community/community_view/class_details.dart
  6. 157
      lib/community/community_view/community_dynamic.dart
  7. 2
      lib/community/new_community_details.dart
  8. 229
      lib/community/share_trends.dart
  9. 2
      lib/login/new_login_page.dart
  10. 24
      lib/main_page.dart
  11. 4
      lib/message/im/chat_details_page.dart
  12. 4
      lib/message/system_details.dart
  13. 4
      lib/mine/mine_view/mine_view.dart
  14. 7
      lib/order/order_history_page.dart
  15. 2
      lib/order/order_view/order_status.dart
  16. 8
      lib/utils/status_utils.dart
  17. 6
      lib/view_widget/classic_header.dart
  18. 2
      lib/view_widget/my_appbar.dart
  19. 2
      lib/view_widget/new_coupon_widget.dart
  20. 55
      lib/view_widget/share_dialog.dart
  21. 3
      lib/web/web_page.dart
  22. 2
      lib/web/web_view/input_comment.dart
  23. 10
      pubspec.lock

328
ios/Podfile.lock

@ -1,4 +1,5 @@
PODS: PODS:
- AEINFoundation (3.2.40)
- AFNetworking (4.0.1): - AFNetworking (4.0.1):
- AFNetworking/NSURLSession (= 4.0.1) - AFNetworking/NSURLSession (= 4.0.1)
- AFNetworking/Reachability (= 4.0.1) - AFNetworking/Reachability (= 4.0.1)
@ -49,121 +50,121 @@ PODS:
- image_pickers (0.0.1): - image_pickers (0.0.1):
- AFNetworking - AFNetworking
- Flutter - Flutter
- ZLPhotoBrowser-objc (= 1.0.4) - SDWebImage
- mob_sharesdk (4.4.8): - ZLPhotoBrowser
- mob_sharesdk/ShareSDK (= 4.4.8) - mob_sharesdk_spec2 (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDK (4.4.8): - mob_sharesdk_spec2/ShareSDK (= 0.0.1)
- MOBFoundation (>= 3.2.9) - mob_sharesdk_spec2/ShareSDK (0.0.1):
- mob_sharesdk/ShareSDKExtension (4.4.8): - AEINFoundation
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKExtension (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/DingTalk (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/DingTalk (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Douyin (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Douyin (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Dropbox (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Dropbox (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Evernote (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Evernote (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Facebook (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Facebook (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Flickr (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Flickr (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/GooglePlus (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/GooglePlus (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Instagram (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Instagram (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Instapaper (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Instapaper (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Kakao (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Kakao (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/KuaiShou (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/KuaiShou (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Line (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Line (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/LinkedIn (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/LinkedIn (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Messenger (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Messenger (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/MingDao (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/MingDao (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Oasis (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Oasis (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Pinterest (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Pinterest (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Pocket (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Pocket (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/QQ (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/QQ (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Reddit (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Reddit (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/SinaWeibo (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/SinaWeibo (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/SMS (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/SMS (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/SnapChat (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/SnapChat (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Telegram (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Telegram (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/TikTok (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/TikTok (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Twitter (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Twitter (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/VKontakte (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/VKontakte (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/WatermelonVideo (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/WatermelonVideo (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/WeChat_Lite (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/WeChat_Lite (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/WeWork (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/WeWork (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/WhatsApp (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/WhatsApp (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/Yixin (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/Yixin (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKPlatforms/YouDaoNote (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKPlatforms/YouDaoNote (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKRestoreScene (4.4.8): - mob_sharesdk_spec2/ShareSDK
- mob_sharesdk/ShareSDKExtension - mob_sharesdk_spec2/ShareSDKRestoreScene (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- mob_sharesdk/ShareSDKUI (4.4.8): - mob_sharesdk_spec2/ShareSDKExtension
- mob_sharesdk/ShareSDK - mob_sharesdk_spec2/ShareSDKUI (0.0.1):
- MOBFoundation (>= 3.2.9) - AEINFoundation
- MOBFoundation (3.2.37) - mob_sharesdk_spec2/ShareSDK
- number_precision (0.0.1): - number_precision (0.0.1):
- Flutter - Flutter
- OpenWeChatSDK (1.9.6) - OpenWeChatSDK (1.9.6)
@ -180,45 +181,45 @@ PODS:
- SDWebImage/Core (5.13.4) - SDWebImage/Core (5.13.4)
- shared_preferences_ios (0.0.1): - shared_preferences_ios (0.0.1):
- Flutter - Flutter
- sharesdk_plugin (1.1.3): - sharesdk_plugin (1.1.4):
- Flutter - Flutter
- mob_sharesdk - mob_sharesdk_spec2
- mob_sharesdk/ShareSDKExtension - mob_sharesdk_spec2/ShareSDKExtension
- mob_sharesdk/ShareSDKPlatforms/DingTalk - mob_sharesdk_spec2/ShareSDKPlatforms/DingTalk
- mob_sharesdk/ShareSDKPlatforms/Douyin - mob_sharesdk_spec2/ShareSDKPlatforms/Douyin
- mob_sharesdk/ShareSDKPlatforms/Dropbox - mob_sharesdk_spec2/ShareSDKPlatforms/Dropbox
- mob_sharesdk/ShareSDKPlatforms/Evernote - mob_sharesdk_spec2/ShareSDKPlatforms/Evernote
- mob_sharesdk/ShareSDKPlatforms/Facebook - mob_sharesdk_spec2/ShareSDKPlatforms/Facebook
- mob_sharesdk/ShareSDKPlatforms/Flickr - mob_sharesdk_spec2/ShareSDKPlatforms/Flickr
- mob_sharesdk/ShareSDKPlatforms/GooglePlus - mob_sharesdk_spec2/ShareSDKPlatforms/GooglePlus
- mob_sharesdk/ShareSDKPlatforms/Instagram - mob_sharesdk_spec2/ShareSDKPlatforms/Instagram
- mob_sharesdk/ShareSDKPlatforms/Instapaper - mob_sharesdk_spec2/ShareSDKPlatforms/Instapaper
- mob_sharesdk/ShareSDKPlatforms/Kakao - mob_sharesdk_spec2/ShareSDKPlatforms/Kakao
- mob_sharesdk/ShareSDKPlatforms/KuaiShou - mob_sharesdk_spec2/ShareSDKPlatforms/KuaiShou
- mob_sharesdk/ShareSDKPlatforms/Line - mob_sharesdk_spec2/ShareSDKPlatforms/Line
- mob_sharesdk/ShareSDKPlatforms/LinkedIn - mob_sharesdk_spec2/ShareSDKPlatforms/LinkedIn
- mob_sharesdk/ShareSDKPlatforms/Messenger - mob_sharesdk_spec2/ShareSDKPlatforms/Messenger
- mob_sharesdk/ShareSDKPlatforms/MingDao - mob_sharesdk_spec2/ShareSDKPlatforms/MingDao
- mob_sharesdk/ShareSDKPlatforms/Oasis - mob_sharesdk_spec2/ShareSDKPlatforms/Oasis
- mob_sharesdk/ShareSDKPlatforms/Pinterest - mob_sharesdk_spec2/ShareSDKPlatforms/Pinterest
- mob_sharesdk/ShareSDKPlatforms/Pocket - mob_sharesdk_spec2/ShareSDKPlatforms/Pocket
- mob_sharesdk/ShareSDKPlatforms/QQ - mob_sharesdk_spec2/ShareSDKPlatforms/QQ
- mob_sharesdk/ShareSDKPlatforms/Reddit - mob_sharesdk_spec2/ShareSDKPlatforms/Reddit
- mob_sharesdk/ShareSDKPlatforms/SinaWeibo - mob_sharesdk_spec2/ShareSDKPlatforms/SinaWeibo
- mob_sharesdk/ShareSDKPlatforms/SMS - mob_sharesdk_spec2/ShareSDKPlatforms/SMS
- mob_sharesdk/ShareSDKPlatforms/SnapChat - mob_sharesdk_spec2/ShareSDKPlatforms/SnapChat
- mob_sharesdk/ShareSDKPlatforms/Telegram - mob_sharesdk_spec2/ShareSDKPlatforms/Telegram
- mob_sharesdk/ShareSDKPlatforms/TikTok - mob_sharesdk_spec2/ShareSDKPlatforms/TikTok
- mob_sharesdk/ShareSDKPlatforms/Twitter - mob_sharesdk_spec2/ShareSDKPlatforms/Twitter
- mob_sharesdk/ShareSDKPlatforms/VKontakte - mob_sharesdk_spec2/ShareSDKPlatforms/VKontakte
- mob_sharesdk/ShareSDKPlatforms/WatermelonVideo - mob_sharesdk_spec2/ShareSDKPlatforms/WatermelonVideo
- mob_sharesdk/ShareSDKPlatforms/WeChat_Lite - mob_sharesdk_spec2/ShareSDKPlatforms/WeChat_Lite
- mob_sharesdk/ShareSDKPlatforms/WeWork - mob_sharesdk_spec2/ShareSDKPlatforms/WeWork
- mob_sharesdk/ShareSDKPlatforms/WhatsApp - mob_sharesdk_spec2/ShareSDKPlatforms/WhatsApp
- mob_sharesdk/ShareSDKPlatforms/Yixin - mob_sharesdk_spec2/ShareSDKPlatforms/Yixin
- mob_sharesdk/ShareSDKPlatforms/YouDaoNote - mob_sharesdk_spec2/ShareSDKPlatforms/YouDaoNote
- mob_sharesdk/ShareSDKRestoreScene - mob_sharesdk_spec2/ShareSDKRestoreScene
- mob_sharesdk/ShareSDKUI - mob_sharesdk_spec2/ShareSDKUI
- SSZipArchive (2.4.3) - SSZipArchive (2.4.3)
- thumbnails (0.0.1): - thumbnails (0.0.1):
- Flutter - Flutter
@ -236,8 +237,9 @@ PODS:
- Flutter - Flutter
- webview_flutter (0.0.1): - webview_flutter (0.0.1):
- Flutter - Flutter
- ZLPhotoBrowser-objc (1.0.4): - ZLPhotoBrowser (4.3.7):
- SDWebImage - ZLPhotoBrowser/Core (= 4.3.7)
- ZLPhotoBrowser/Core (4.3.7)
DEPENDENCIES: DEPENDENCIES:
- emoji_picker_flutter (from `.symlinks/plugins/emoji_picker_flutter/ios`) - emoji_picker_flutter (from `.symlinks/plugins/emoji_picker_flutter/ios`)
@ -267,16 +269,16 @@ DEPENDENCIES:
SPEC REPOS: SPEC REPOS:
trunk: trunk:
- AEINFoundation
- AFNetworking - AFNetworking
- BaiduMapKit - BaiduMapKit
- BMKLocationKit - BMKLocationKit
- mob_sharesdk - mob_sharesdk_spec2
- MOBFoundation
- OpenWeChatSDK - OpenWeChatSDK
- SDWebImage - SDWebImage
- SSZipArchive - SSZipArchive
- TPNS-iOS - TPNS-iOS
- ZLPhotoBrowser-objc - ZLPhotoBrowser
EXTERNAL SOURCES: EXTERNAL SOURCES:
emoji_picker_flutter: emoji_picker_flutter:
@ -327,6 +329,7 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/webview_flutter/ios" :path: ".symlinks/plugins/webview_flutter/ios"
SPEC CHECKSUMS: SPEC CHECKSUMS:
AEINFoundation: e046b5fbe75aaf120a54fdc530b1d62d4ce88dfe
AFNetworking: 7864c38297c79aaca1500c33288e429c3451fdce AFNetworking: 7864c38297c79aaca1500c33288e429c3451fdce
BaiduMapKit: f227cfb43581e91466fb4f1344f655eab5788777 BaiduMapKit: f227cfb43581e91466fb4f1344f655eab5788777
BMKLocationKit: 688d8e1194980b96fc9a6585c0eb42e62fbaf780 BMKLocationKit: 688d8e1194980b96fc9a6585c0eb42e62fbaf780
@ -338,9 +341,8 @@ SPEC CHECKSUMS:
flutter_baidu_mapapi_utils: f6a5d23da26b0e58f1ae9908da7ba87fd48384b1 flutter_baidu_mapapi_utils: f6a5d23da26b0e58f1ae9908da7ba87fd48384b1
flutter_bmflocation: 1bd73181196567fe1529f765aa4f8e2615a8a3cf flutter_bmflocation: 1bd73181196567fe1529f765aa4f8e2615a8a3cf
fluwx: 79c66b6d795ab8208262ada215d9e60388cfe492 fluwx: 79c66b6d795ab8208262ada215d9e60388cfe492
image_pickers: 5e6ec7083f9363d014c0fb061f1b9cd97bb5e451 image_pickers: 075764ed041c5e3089fcd4d040384ecdb23840e0
mob_sharesdk: b707987dfbe7e180ea60ddf4b5db30126ac98390 mob_sharesdk_spec2: efa0cb438a29b37ab99d015a272dff69177e30a2
MOBFoundation: 2fcfc8b48bf311ace31e99c941b70f573c88880a
number_precision: 26fa2be2212f9d1429f92d667d6b0aa4df0058d8 number_precision: 26fa2be2212f9d1429f92d667d6b0aa4df0058d8
OpenWeChatSDK: 8fb6c3c7ce9a57f37d001060282de1f138d09940 OpenWeChatSDK: 8fb6c3c7ce9a57f37d001060282de1f138d09940
package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62 package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
@ -349,7 +351,7 @@ SPEC CHECKSUMS:
scan: aea35bb4aa59ccc8839c576a18cd57c7d492cc86 scan: aea35bb4aa59ccc8839c576a18cd57c7d492cc86
SDWebImage: e5cc87bf736e60f49592f307bdf9e157189298a3 SDWebImage: e5cc87bf736e60f49592f307bdf9e157189298a3
shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
sharesdk_plugin: ad2cacfb74c4b82fbc4100cc882d05507f908aed sharesdk_plugin: d9c8e928116aba323b21da64b4437ed766ee843e
SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef
thumbnails: bb4f4e9bb4b51c8ae4e6ad9a2fa81373f9b634ad thumbnails: bb4f4e9bb4b51c8ae4e6ad9a2fa81373f9b634ad
tobias: 2aded9b83e3663b907360a800d8e3c13284f25c5 tobias: 2aded9b83e3663b907360a800d8e3c13284f25c5
@ -359,7 +361,7 @@ SPEC CHECKSUMS:
video_player_avfoundation: e489aac24ef5cf7af82702979ed16f2a5ef84cff video_player_avfoundation: e489aac24ef5cf7af82702979ed16f2a5ef84cff
wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
webview_flutter: 5fb4def2bbd4339889ee14d045b605cefc5bc232 webview_flutter: 5fb4def2bbd4339889ee14d045b605cefc5bc232
ZLPhotoBrowser-objc: c7657d3bc85ae231884e058d0e3638f619164736 ZLPhotoBrowser: f571bdaec6d0b64ae94a29787e4c7cbd8900d10f
PODFILE CHECKSUM: 9a26c1c4037e42be4afc95d70f8bd02a4b989a1c PODFILE CHECKSUM: 9a26c1c4037e42be4afc95d70f8bd02a4b989a1c

12
ios/Runner.xcodeproj/project.pbxproj

@ -617,7 +617,7 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO; CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = YF3Q8DVP52; DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
@ -667,7 +667,7 @@
"$(PROJECT_DIR)/baidu", "$(PROJECT_DIR)/baidu",
"$(PROJECT_DIR)/Runner/baidu", "$(PROJECT_DIR)/Runner/baidu",
); );
MARKETING_VERSION = 3.2.2; MARKETING_VERSION = 3.2.6;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = ( OTHER_LDFLAGS = (
"$(inherited)", "$(inherited)",
@ -819,7 +819,7 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO; CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = YF3Q8DVP52; DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
@ -869,7 +869,7 @@
"$(PROJECT_DIR)/baidu", "$(PROJECT_DIR)/baidu",
"$(PROJECT_DIR)/Runner/baidu", "$(PROJECT_DIR)/Runner/baidu",
); );
MARKETING_VERSION = 3.2.2; MARKETING_VERSION = 3.2.6;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = ( OTHER_LDFLAGS = (
"$(inherited)", "$(inherited)",
@ -912,7 +912,7 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO; CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = YF3Q8DVP52; DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
@ -962,7 +962,7 @@
"$(PROJECT_DIR)/baidu", "$(PROJECT_DIR)/baidu",
"$(PROJECT_DIR)/Runner/baidu", "$(PROJECT_DIR)/Runner/baidu",
); );
MARKETING_VERSION = 3.2.2; MARKETING_VERSION = 3.2.6;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = ( OTHER_LDFLAGS = (
"$(inherited)", "$(inherited)",

70
lib/base_state.dart

@ -49,41 +49,41 @@ abstract class BaseState<T extends StatefulWidget> extends State<T>
if (pushMap != null) { if (pushMap != null) {
String routeName = ""; String routeName = "";
Map<String, dynamic> params = {}; Map<String, dynamic> params = {};
switch (pushMap["typed"]) { switch (pushMap["typed"].toString()) {
case 1: case "1":case "ARTICLE":
routeName = "/router/store_detail_page"; routeName = "/router/web_page";
params["articleId"] = pushMap["info"]; params["articleId"] = pushMap["info"];
break; break;
case 2: case "2":case "ACTIVITY":
routeName = "/router/store_detail_page"; routeName = "/router/web_page";
params["activityId"] = pushMap["info"]; params["activityId"] = pushMap["info"];
break; break;
case 3: case "3":case "SHOP":
routeName = "/router/store_order"; routeName = "/router/store_order";
params["id"] = pushMap["info"]; params["id"] = pushMap["info"];
params["tenant"] = pushMap["tenant"]; params["tenant"] = pushMap["tenant"];
params["storeName"] = pushMap["storeName"]; params["storeName"] = pushMap["storeName"];
break; break;
case 4: case "4":case "CREDIT_GOODS":
routeName = "/router/integral_store_page"; routeName = "/router/integral_store_page";
params["goodsId"] = pushMap["info"]; params["goodsId"] = pushMap["info"];
break; break;
case 5: case "5":case "ORDER":
routeName = "/router/order_details"; routeName = "/router/order_details";
params["id"] = pushMap["info"]; params["id"] = pushMap["info"];
break; break;
case 6: case "6":case "MEMBER":
routeName = "/router/community_details"; routeName = "/router/community_details";
params["businessId"] = pushMap["info"]; params["businessId"] = pushMap["info"];
break; break;
case 8: case "8":case "WALLET":
routeName = "/router/mine_wallet"; routeName = "/router/mine_wallet";
params["id"] = pushMap["info"]; params["id"] = pushMap["info"];
break; break;
case 9: case "9":case "WELFARE":
routeName = "/router/welfare_page"; routeName = "/router/welfare_page";
params["id"] = pushMap["info"]; params["id"] = pushMap["info"];
break; break;
} }
sharedPreferences.setString("pushData", ""); sharedPreferences.setString("pushData", "");
print("xgPushClickAction: routeName: $routeName"); print("xgPushClickAction: routeName: $routeName");

2
lib/community/community_details.dart

@ -51,7 +51,6 @@ class _CommunityDetails extends State<CommunityDetails>
final GlobalKey inputKey = GlobalKey(); final GlobalKey inputKey = GlobalKey();
final TextEditingController commentTextController = TextEditingController(); final TextEditingController commentTextController = TextEditingController();
bool emojiShowing = false; bool emojiShowing = false;
static double keyboard_height=300;
double keyboard = -1; double keyboard = -1;
bool needShowSmiley = false; bool needShowSmiley = false;
bool needHideSmiley = false; bool needHideSmiley = false;
@ -252,7 +251,6 @@ class _CommunityDetails extends State<CommunityDetails>
inputKey, inputKey,
hintText, hintText,
isKeyBoardShow, isKeyBoardShow,
keyboard_height,
keyboard, keyboard,
emojiShowing, emojiShowing,
commentFocus, commentFocus,

5
lib/community/community_view/class_details.dart

@ -55,7 +55,6 @@ class _ClassDetails extends State<ClassDetails> with WidgetsBindingObserver {
double height = 0; double height = 0;
var isShowMore = false; var isShowMore = false;
bool emojiShowing = false; bool emojiShowing = false;
static double keyboard_height=300;
double keyboard = -1; double keyboard = -1;
bool needShowSmiley = false; bool needShowSmiley = false;
bool needHideSmiley = false; bool needHideSmiley = false;
@ -117,6 +116,7 @@ class _ClassDetails extends State<ClassDetails> with WidgetsBindingObserver {
@override @override
void didChangeMetrics() { void didChangeMetrics() {
WidgetsBinding.instance.addPostFrameCallback((_) { WidgetsBinding.instance.addPostFrameCallback((_) {
isKeyBoardShow = MediaQuery.of(context).viewInsets.bottom > 0;
if (!mounted) return; if (!mounted) return;
if (MediaQuery.of(context).viewInsets.bottom == 0) { if (MediaQuery.of(context).viewInsets.bottom == 0) {
if (isKeyBoardShow) { if (isKeyBoardShow) {
@ -185,7 +185,7 @@ class _ClassDetails extends State<ClassDetails> with WidgetsBindingObserver {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
double h = MediaQuery.of(context).viewInsets.bottom; double h = MediaQuery.of(context).viewInsets.bottom;
if(h > 0 && keyboard <= 0) { if(h > 0 && keyboard < h) {
setState(() { setState(() {
keyboard = h; keyboard = h;
}); });
@ -476,7 +476,6 @@ class _ClassDetails extends State<ClassDetails> with WidgetsBindingObserver {
inputKey, inputKey,
hintText, hintText,
isKeyBoardShow, isKeyBoardShow,
keyboard_height,
keyboard, keyboard,
emojiShowing, emojiShowing,
commentFocus, commentFocus,

157
lib/community/community_view/community_dynamic.dart

@ -3,6 +3,7 @@ import 'dart:ui';
import 'package:chewie/chewie.dart'; import 'package:chewie/chewie.dart';
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:flutter_svg/svg.dart'; import 'package:flutter_svg/svg.dart';
import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/generated/l10n.dart';
@ -389,64 +390,62 @@ class _CommunityDynamic extends State<CommunityDynamic> {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Expanded( Container(
child: Container( padding: EdgeInsets.only(bottom: 16.h),
padding: EdgeInsets.only(bottom: 16.h), margin: EdgeInsets.only(right: 52.w),
child: Row( child: Row(
children: [ children: [
SvgPicture.asset( SvgPicture.asset(
"assets/svg/liulanliang.svg", "assets/svg/liulanliang.svg",
width: 16, width: 16,
height: 16, height: 16,
), ),
SizedBox( SizedBox(
width: 5.w, width: 5.w,
),
Text(
(widget.article != null)
? "${widget.article.viewers}"
: "",
style: TextStyle(
fontSize: 14.sp,
fontFamily: 'JDZhengHT',
fontWeight: MyFontWeight.regular,
color: Color(0xFF1A1A1A),
), ),
Text( ),
(widget.article != null) ],
? "${widget.article.viewers}" )),
: "", Container(
style: TextStyle( padding: EdgeInsets.only(bottom: 16.h),
fontSize: 14.sp, margin: EdgeInsets.only(right: 52.w),
fontFamily: 'JDZhengHT', child: Row(
fontWeight: MyFontWeight.regular, children: [
color: Color(0xFF1A1A1A), SvgPicture.asset(
), "assets/svg/pinglun.svg",
width: 16,
height: 16,
),
SizedBox(
width: 5.w,
),
Text(
"${widget.article.comments ?? 0}",
style: TextStyle(
fontSize: 14.sp,
fontFamily: 'JDZhengHT',
fontWeight: MyFontWeight.regular,
color: Color(0xFF1A1A1A),
), ),
], ),
)), ],
), )),
Expanded( GestureDetector(
child: Container(
padding: EdgeInsets.only(bottom: 16.h),
child: Row(
children: [
SvgPicture.asset(
"assets/svg/pinglun.svg",
width: 16,
height: 16,
),
SizedBox(
width: 5.w,
),
Text(
"${widget.article.comments ?? 0}",
style: TextStyle(
fontSize: 14.sp,
fontFamily: 'JDZhengHT',
fontWeight: MyFontWeight.regular,
color: Color(0xFF1A1A1A),
),
),
],
))),
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: () { onTap: () {
setState(() { setState(() {
widget.article.liked = widget.article.liked =
!(widget.article.liked ?? false); !(widget.article.liked ?? false);
_queryInformationLikes( _queryInformationLikes(
widget.article.liked ?? false); widget.article.liked ?? false);
}); });
@ -457,15 +456,15 @@ class _CommunityDynamic extends State<CommunityDynamic> {
children: [ children: [
(widget.article.liked ?? false) (widget.article.liked ?? false)
? Image.asset( ? Image.asset(
"assets/image/icon_like.webp", "assets/image/icon_like.webp",
width: 16, width: 16,
height: 16, height: 16,
) )
: Image.asset( : Image.asset(
"assets/image/icon_like_h.webp", "assets/image/icon_like_h.webp",
width: 16, width: 16,
height: 16, height: 16,
), ),
SizedBox( SizedBox(
width: 5.w, width: 5.w,
), ),
@ -480,10 +479,10 @@ class _CommunityDynamic extends State<CommunityDynamic> {
), ),
], ],
)), )),
)), ),
if ((widget?.article?.author != widget.userId ?? "") && ((widget?.article?.author != widget.userId ?? "") &&
widget.commentType == 0) widget.commentType == 0)
Expanded( ? Expanded(
child: GestureDetector( child: GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: () { onTap: () {
@ -494,13 +493,13 @@ class _CommunityDynamic extends State<CommunityDynamic> {
child: Container( child: Container(
padding: padding:
EdgeInsets.only(top: 3.h, bottom: 16.h), EdgeInsets.only(top: 3.h, bottom: 16.h),
alignment: Alignment.center, alignment: Alignment.centerRight,
// color: Colors.red, // color: Colors.red,
child: Icon( child: Icon(
Icons.more_horiz, Icons.more_horiz,
color: Colors.black, color: Colors.black,
), ),
))), ))) :Spacer(),
], ],
), ),
), ),
@ -554,12 +553,27 @@ class _CommunityDynamic extends State<CommunityDynamic> {
if (platform == ShareSDKPlatforms.line) { if (platform == ShareSDKPlatforms.line) {
params.map["type"] = SSDKContentTypes.text.value; params.map["type"] = SSDKContentTypes.text.value;
params.map["text"] = params.map["text"] =
"${widget?.article?.mainTitle ?? ""} ${buildShareUrl()}"; "${widget?.article?.mainTitle ?? ""} ${buildShareUrl()}";
} else if (platform == ShareSDKPlatforms.douyin) {
Navigator.of(context).popAndPushNamed('/router/share_trends',
arguments: {"articleId": widget.article.id});
return;
} else if (platform == ShareSDKPlatforms.facebook) {
Navigator.of(context).popAndPushNamed('/router/chat_details_page',
arguments: {"articleId": widget.article.id,
"shareUrl":buildShareUrl(),});
return;
} else if (platform == ShareSDKPlatforms.copy) {
copy(buildShareUrl());
SmartDialog.showToast("已复制", alignment: Alignment.center);
Navigator.of(context).pop();
return;
} }
SharesdkPlugin.share(platform, params, SharesdkPlugin.share(platform, params,
(state, userData, contentEntity, error) { (state, userData, contentEntity, error) {
print("share!$state"); print("share!$state");
}); });
Navigator.of(context).pop();
}); });
}); });
} }
@ -568,6 +582,11 @@ class _CommunityDynamic extends State<CommunityDynamic> {
return "https://hx.lotus-wallet.com/communityShare.html?id=${widget.article.id}"; return "https://hx.lotus-wallet.com/communityShare.html?id=${widget.article.id}";
} }
copy(String url) {
print(url);
Clipboard.setData(ClipboardData(text: url));
}
/// ///
Widget buildMedia(String subjectInfo) { Widget buildMedia(String subjectInfo) {
if (subjectInfo == null || !subjectInfo.startsWith("{")) { if (subjectInfo == null || !subjectInfo.startsWith("{")) {

2
lib/community/new_community_details.dart

@ -57,7 +57,6 @@ class _NewCommunityDetails extends State<NewCommunityDetails> with WidgetsBindin
String commentsId; String commentsId;
String userId; String userId;
bool emojiShowing =false; bool emojiShowing =false;
static double keyboard_height=300;
double keyboard = -1; double keyboard = -1;
bool needShowSmiley = false; bool needShowSmiley = false;
bool needHideSmiley = false; bool needHideSmiley = false;
@ -371,7 +370,6 @@ class _NewCommunityDetails extends State<NewCommunityDetails> with WidgetsBindin
inputKey, inputKey,
hintText, hintText,
isKeyBoardShow, isKeyBoardShow,
keyboard_height,
keyboard, keyboard,
emojiShowing, emojiShowing,
commentFocus, commentFocus,

229
lib/community/share_trends.dart

@ -0,0 +1,229 @@
import 'dart:convert';
import 'dart:ui';
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:huixiang/retrofit/retrofit_api.dart';
import 'package:huixiang/view_widget/my_appbar.dart';
import 'package:flutter/cupertino.dart';
import 'package:shared_preferences/shared_preferences.dart';
import '../../generated/l10n.dart';
import '../../utils/font_weight.dart';
import '../retrofit/data/article.dart';
import '../retrofit/data/base_data.dart';
import '../view_widget/custom_image.dart';
class ShareTrends extends StatefulWidget {
final Map<String, dynamic> arguments;
ShareTrends({this.arguments});
@override
State<StatefulWidget> createState() {
return _ShareTrends();
}
}
class _ShareTrends extends State<ShareTrends>{
ApiService apiService;
bool topSetting = false;
final TextEditingController textController = TextEditingController();
var commentFocus = FocusNode();
Article article;
@override
void initState() {
super.initState();
queryDetails(widget.arguments["articleId"]);
}
///
queryDetails(id) async {
SharedPreferences value = await SharedPreferences.getInstance();
if (apiService == null)
apiService = ApiService(
Dio(),
context: context,
token: value.getString("token"),
showLoading: true
);
BaseData<Article> baseData =
await apiService.informationInfo(id).catchError((onError) {
debugPrint(onError.toString());
});
if (baseData != null && baseData.isSuccess) {
setState(() {
article = baseData.data;
});
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Color(0xFFF9FAF7),
// appBar: MyAppBar(
// title:"转发",
// titleColor: Colors.black,
// titleSize: 18.sp,
// background: Colors.white,
// leading: false,
// leadingColor: Colors.black,
// actions: [
// Container(
// alignment: Alignment.center ,
// color: Color(0xFF32A060),
// margin:EdgeInsets.only(right: 16.w) ,
// child: Text(
// S.of(context).fabu,
// style: TextStyle(
// color: Colors.white,
// fontSize:12.sp,
// fontWeight: MyFontWeight.regular,
// ),
// ),
// )
// ],
// ),
body: Container(
child: Column(
children: [
Container(
padding:EdgeInsets.only(top: MediaQuery.of(context).padding.top+11.h,bottom:14.w),
color: Colors.white,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Expanded(
child: Container(
alignment: Alignment.center,
margin: EdgeInsets.only(left:60.w,),
child: Text(
"转发",
style: TextStyle(
color: Colors.black,
fontSize:17.sp,
fontWeight: MyFontWeight.regular,
),
),)),
Container(
alignment: Alignment.center ,
margin:EdgeInsets.only(right: 16.w) ,
padding: EdgeInsets.symmetric(horizontal: 16.w,vertical: 3.h),
decoration: BoxDecoration(
color: Color(0xFF32A060),
borderRadius: BorderRadius.circular(10.5),
),
child: Text(
S.of(context).fabu,
style: TextStyle(
color: Colors.white,
fontSize:12.sp,
fontWeight: MyFontWeight.regular,
),
),
),
],
),
),
Expanded(child:
Container(
margin: EdgeInsets.symmetric(vertical: 14.h),
width: double.infinity,
color: Colors.white,
padding: EdgeInsets.only(left: 20.w,right: 16.w),
child: Column(
children: [
Container(
decoration: BoxDecoration(
color: Color(0xffF2F2F2),
borderRadius: BorderRadius.circular(6),
),
margin: EdgeInsets.only(top: 30.w),
child: Container(
margin: EdgeInsets.only(left:16.w,right: 10.w,),
alignment: Alignment.topLeft,
child: TextField(
textInputAction:TextInputAction.send,
onEditingComplete: () {
},
maxLines: 8,
minLines: 1,
focusNode:commentFocus,
controller: textController,
decoration: InputDecoration(
border: InputBorder.none,
hintText: "想说点什么...",
hintStyle: TextStyle(
fontSize: 14.sp,
color: Color(0xFF7C7C7C),
),
),
),
),
),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: (){
Navigator.of(context).pushNamed(
'/router/scan_web',
arguments: {
"result": widget.arguments["shareUrl"],
"title":"",
},
);
},
child: Container(
decoration: BoxDecoration(
color: Color(0xFFF2F2F2),
borderRadius: BorderRadius.circular(6),
),
padding: EdgeInsets.only(top: 8.h,bottom: 8.h,left: 8.w,right: 10.w),
margin: EdgeInsets.only(top: 12.w),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if(article?.content != null && article.content.contains("images\":[\"") || (article?.coverImg ?? "")!= "")
MImage(
article?.content != null &&
article.content.contains("images\":[\"")
? jsonDecode(article.content)["images"][0]
: article?.coverImg ?? "",
radius: BorderRadius.circular(2),
fit: BoxFit.fill,
width: 64,
height: 64,
errorSrc: "assets/image/default_2_1.webp",
fadeSrc: "assets/image/default_2_1.webp",
),
if(article?.content != null || article?.coverImg != null)
SizedBox(width: 7.w,),
Expanded(child: Text(
article?.mainTitle ?? "",
maxLines: 3,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: Color(0xFF4D4D4D),
fontSize:14.sp,
height: 1.4.h,
fontWeight: MyFontWeight.regular,
),
),),
],
),
)),
],
),
),
)
],
),
),
);
}
}

2
lib/login/new_login_page.dart

@ -416,7 +416,7 @@ class _NewLoginPage extends State<NewLoginPage> {
Container( Container(
height: 30.h, height: 30.h,
width: MediaQuery.of(context).size.width - 100.w, width: MediaQuery.of(context).size.width - 100.w,
margin: EdgeInsets.only(bottom: 10.h), margin: EdgeInsets.only(bottom:5.h),
child: TextField( child: TextField(
style: TextStyle( style: TextStyle(
height: 1.h, height: 1.h,

24
lib/main_page.dart

@ -58,6 +58,7 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver {
final GlobalKey vipPageKey = GlobalKey(); final GlobalKey vipPageKey = GlobalKey();
// List<String> iconn; // List<String> iconn;
ApiService apiService; ApiService apiService;
int lastTime = DateTime.now().millisecondsSinceEpoch;
@override @override
@ -74,8 +75,11 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver {
break; break;
case AppLifecycleState.resumed: // case AppLifecycleState.resumed: //
pushRoute(); pushRoute();
if(DateTime.now().millisecondsSinceEpoch - lastTime > 300000)
Navigator.of(context).popAndPushNamed('/router/main_page');
break; break;
case AppLifecycleState.paused: // case AppLifecycleState.paused: //
lastTime = DateTime.now().millisecondsSinceEpoch;
break; break;
case AppLifecycleState.detached: // APP结束时调用 case AppLifecycleState.detached: // APP结束时调用
break; break;
@ -232,7 +236,7 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver {
// SmartDialog.showToast("当前不在聊天页面", alignment: Alignment.center); // SmartDialog.showToast("当前不在聊天页面", alignment: Alignment.center);
// }); // });
/// @typed: 1 2 3 4 5 6 7 8/ 9 /// @typed: ARTICLE(1) ACTIVITY(2) SHOP(3) CREDIT_GOODS(4) ORDER(5) TREND(6) MEMBER(7) WALLET(8)/ WELFARE(9)
xgFlutterPlugin.addEventHandler(xgPushClickAction: (event) async { xgFlutterPlugin.addEventHandler(xgPushClickAction: (event) async {
print("xgPushClickAction1: $event"); print("xgPushClickAction1: $event");
if (event["actionType"] == 2) return event; if (event["actionType"] == 2) return event;
@ -296,38 +300,38 @@ class _MainPage extends State<MainPage> with WidgetsBindingObserver {
if (pushMap != null) { if (pushMap != null) {
String routeName = ""; String routeName = "";
Map<String, dynamic> params = {}; Map<String, dynamic> params = {};
switch (pushMap["typed"]) { switch (pushMap["typed"].toString()) {
case 1: case "1":case "ARTICLE":
routeName = "/router/web_page"; routeName = "/router/web_page";
params["articleId"] = pushMap["info"]; params["articleId"] = pushMap["info"];
break; break;
case 2: case "2":case "ACTIVITY":
routeName = "/router/web_page"; routeName = "/router/web_page";
params["activityId"] = pushMap["info"]; params["activityId"] = pushMap["info"];
break; break;
case 3: case "3":case "SHOP":
routeName = "/router/store_order"; routeName = "/router/store_order";
params["id"] = pushMap["info"]; params["id"] = pushMap["info"];
params["tenant"] = pushMap["tenant"]; params["tenant"] = pushMap["tenant"];
params["storeName"] = pushMap["storeName"]; params["storeName"] = pushMap["storeName"];
break; break;
case 4: case "4":case "CREDIT_GOODS":
routeName = "/router/integral_store_page"; routeName = "/router/integral_store_page";
params["goodsId"] = pushMap["info"]; params["goodsId"] = pushMap["info"];
break; break;
case 5: case "5":case "ORDER":
routeName = "/router/order_details"; routeName = "/router/order_details";
params["id"] = pushMap["info"]; params["id"] = pushMap["info"];
break; break;
case 6: case "6":case "MEMBER":
routeName = "/router/community_details"; routeName = "/router/community_details";
params["businessId"] = pushMap["info"]; params["businessId"] = pushMap["info"];
break; break;
case 8: case "8":case "WALLET":
routeName = "/router/mine_wallet"; routeName = "/router/mine_wallet";
params["id"] = pushMap["info"]; params["id"] = pushMap["info"];
break; break;
case 9: case "9":case "WELFARE":
routeName = "/router/welfare_page"; routeName = "/router/welfare_page";
params["id"] = pushMap["info"]; params["id"] = pushMap["info"];
break; break;

4
lib/message/im/chat_details_page.dart

@ -18,6 +18,10 @@ import 'im_view/on_chat_message.dart';
import 'im_view/on_chat_msg_instance.dart'; import 'im_view/on_chat_msg_instance.dart';
class ChatDetailsPage extends StatefulWidget { class ChatDetailsPage extends StatefulWidget {
final Map<String, dynamic> arguments;
ChatDetailsPage({this.arguments});
@override @override
State<StatefulWidget> createState() { State<StatefulWidget> createState() {
return _ChatDetailsPage(); return _ChatDetailsPage();

4
lib/message/system_details.dart

@ -240,9 +240,9 @@ class _SystemDetails extends State<SystemDetails> {
children: [ children: [
Image.asset( Image.asset(
(message.typed == 1) (message.typed == 1)
? "assets/image/icon_system_message.webp" ? "assets/image/icon_order.webp"
: (message.typed == 2) : (message.typed == 2)
? "assets/image/icon_system_message.webp" ? "assets/image/icon_order.webp"
: "assets/image/icon_cz.webp", : "assets/image/icon_cz.webp",
width: 24.w, width: 24.w,
height: 24.h, height: 24.h,

4
lib/mine/mine_view/mine_view.dart

@ -131,8 +131,8 @@ class _MineView extends State<MineView> {
padding: EdgeInsets.only(left: 12.w,right:16.w,top:8.h,bottom:8.h), padding: EdgeInsets.only(left: 12.w,right:16.w,top:8.h,bottom:8.h),
child: Image.asset( child: Image.asset(
"assets/image/icon_scan_qr_code.webp", "assets/image/icon_scan_qr_code.webp",
width: 24, width: 22,
height: 24, height: 22,
), ),
), ),
), ),

7
lib/order/order_history_page.dart

@ -314,13 +314,10 @@ class _OrderHistoryList extends State<OrderHistoryList>
// ), // ),
// ), // ),
// ), // ),
Container(
margin: EdgeInsets.only(left: 5.w, top: 12.h),
),
Expanded( Expanded(
child: Container( child: Container(
width: double.infinity, width: double.infinity,
margin: EdgeInsets.only(left: 6.w, top: 12.h), margin: EdgeInsets.only(left:12.w, top: 12.h),
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: Text( child: Text(
(orderInfo != null) ? orderInfo.storeName : "", (orderInfo != null) ? orderInfo.storeName : "",
@ -353,7 +350,7 @@ class _OrderHistoryList extends State<OrderHistoryList>
color: (orderInfo == null) color: (orderInfo == null)
? Color(0xFF32A060) ? Color(0xFF32A060)
: (orderInfo.refundStatus == 1 || : (orderInfo.refundStatus == 1 ||
orderInfo.orderStatus >= 5) orderInfo.orderStatus == -1 || orderInfo.orderStatus >= 5)
? Colors.grey ? Colors.grey
: (orderInfo.orderStatus == 4) : (orderInfo.orderStatus == 4)
? Color(0xFF32A060) ? Color(0xFF32A060)

2
lib/order/order_view/order_status.dart

@ -142,7 +142,7 @@ class _OrderStatus extends State<OrderStatus> {
children: timeWidget(), children: timeWidget(),
), ),
), ),
visible: (widget.orderStatus >= 4 || widget.isTakeOut == 2) visible: (widget.orderStatus == -1 || widget.orderStatus >= 4 || widget.isTakeOut == 2)
? false ? false
: (widget.isTakeOut == 0) : (widget.isTakeOut == 0)
? !(widget.payStatus == 1) ? !(widget.payStatus == 1)

8
lib/utils/status_utils.dart

@ -9,7 +9,7 @@ class StatusUtils {
context, refundStatus, orderStatus, payStatus, sendStatus, isTakeOut) { context, refundStatus, orderStatus, payStatus, sendStatus, isTakeOut) {
String statusText = ""; String statusText = "";
if (isTakeOut == 0) { if (isTakeOut == 0) {
if (payStatus == 0) { if (payStatus == 0 && orderStatus != -1) {
statusText = S.of(context).daizhifu; statusText = S.of(context).daizhifu;
} else { } else {
statusText = S.of(context).yizhifu; statusText = S.of(context).yizhifu;
@ -79,7 +79,7 @@ class StatusUtils {
if (refundStatus == 1) { if (refundStatus == 1) {
statusText = S.of(context).yituikuan; statusText = S.of(context).yituikuan;
} }
if (orderStatus == 5) { if (orderStatus == 5 || orderStatus == -1) {
statusText = S.of(context).yiquxiao; statusText = S.of(context).yiquxiao;
} }
return statusText; return statusText;
@ -110,7 +110,7 @@ class StatusUtils {
), ),
]; ];
} }
if (orderStatus > 4) { if (orderStatus > 4 || orderStatus == -1) {
return [ return [
RoundButton( RoundButton(
text: S.of(context).zailaiyidan, text: S.of(context).zailaiyidan,
@ -125,7 +125,7 @@ class StatusUtils {
), ),
]; ];
} else { } else {
if (payStatus == 0) { if (payStatus == 0 && orderStatus != -1) {
return [ return [
RoundButton( RoundButton(
text: S.of(context).quzhifu, text: S.of(context).quzhifu,

6
lib/view_widget/classic_header.dart

@ -11,6 +11,8 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:rive/rive.dart'; import 'package:rive/rive.dart';
class MyHeader extends StatelessWidget { class MyHeader extends StatelessWidget {
final Color color;
MyHeader({this.color});
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MyClassicHeader( return MyClassicHeader(
@ -22,11 +24,11 @@ class MyHeader extends StatelessWidget {
idleText: S.of(context).xialashuaxin, idleText: S.of(context).xialashuaxin,
iconPos: IconPosition.left, iconPos: IconPosition.left,
completeTextStyle: TextStyle( completeTextStyle: TextStyle(
color: Color(0xFF32A060), color: color??Color(0xFF32A060),
), ),
completeIcon: Icon( completeIcon: Icon(
Icons.done, Icons.done,
color: Color(0xFF32A060), color: color??Color(0xFF32A060),
), ),
refreshingIcon: SpinKitCircle( refreshingIcon: SpinKitCircle(
color: Colors.grey, color: Colors.grey,

2
lib/view_widget/my_appbar.dart

@ -93,7 +93,7 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget {
}, },
child: Container( child: Container(
width: double.infinity, width: double.infinity,
margin: EdgeInsets.only(right:34.w), margin: EdgeInsets.only(right:actions.length == 0 ? 34.w:0),
padding: EdgeInsets.all(10), padding: EdgeInsets.all(10),
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(

2
lib/view_widget/new_coupon_widget.dart

@ -84,7 +84,7 @@ class NewCouponWidget extends StatelessWidget {
children: [ children: [
Text( Text(
"${coupon != null ? coupon.couponName ?? "" : ""}", "${coupon != null ? coupon.couponName ?? "" : ""}",
maxLines: 1, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontSize: 15.sp, fontSize: 15.sp,

55
lib/view_widget/share_dialog.dart

@ -6,6 +6,7 @@ import 'package:sharesdk_plugin/sharesdk_defines.dart';
class ShareDialog extends StatefulWidget { class ShareDialog extends StatefulWidget {
final Function(ShareSDKPlatform platform) onTap; final Function(ShareSDKPlatform platform) onTap;
ShareDialog(this.onTap); ShareDialog(this.onTap);
@override @override
@ -27,10 +28,10 @@ class _ShareDialog extends State<ShareDialog> {
// "assets/image/icon_facebook.webp" // "assets/image/icon_facebook.webp"
]; ];
List<ShareSDKPlatform> platforms = [ List<ShareSDKPlatform> platforms = [
ShareSDKPlatforms.line, ShareSDKPlatforms.douyin,//
ShareSDKPlatforms.wechatSession, ShareSDKPlatforms.wechatSession,
ShareSDKPlatforms.wechatTimeline, ShareSDKPlatforms.wechatTimeline,
ShareSDKPlatforms.facebook, ShareSDKPlatforms.facebook,//
ShareSDKPlatforms.copy ShareSDKPlatforms.copy
]; ];
@ -42,7 +43,7 @@ class _ShareDialog extends State<ShareDialog> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
height: 200.h, height: 180.h,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.vertical(top: Radius.circular(8),), borderRadius: BorderRadius.vertical(top: Radius.circular(8),),
@ -60,7 +61,7 @@ class _ShareDialog extends State<ShareDialog> {
), ),
), ),
SizedBox( SizedBox(
height: 28.h, height: 30.h,
), ),
Row( Row(
children: platforms children: platforms
@ -68,7 +69,7 @@ class _ShareDialog extends State<ShareDialog> {
child: InkWell( child: InkWell(
onTap: () { onTap: () {
widget.onTap(e); widget.onTap(e);
Navigator.of(context).pop(); // Navigator.of(context).pop();
}, },
child: Container( child: Container(
child: Column( child: Column(
@ -81,10 +82,11 @@ class _ShareDialog extends State<ShareDialog> {
height: 40, height: 40,
), ),
SizedBox( SizedBox(
height: 4.h, height:8.h,
), ),
Container( Container(
width: 40.w, width: 42.w,
padding: EdgeInsets.symmetric(horizontal:4.w),
child: Text( child: Text(
platformNames[platforms.indexOf(e)], platformNames[platforms.indexOf(e)],
style: TextStyle( style: TextStyle(
@ -101,26 +103,25 @@ class _ShareDialog extends State<ShareDialog> {
)) ))
.toList(), .toList(),
), ),
Spacer(), // GestureDetector(
GestureDetector( // behavior: HitTestBehavior.opaque,
behavior: HitTestBehavior.opaque, // onTap: (){
onTap: (){ // Navigator.of(context).pop();
Navigator.of(context).pop(); // },
}, // child: Container(
child: Container( // width: double.infinity,
width: double.infinity, // alignment: Alignment.center,
alignment: Alignment.center, // padding: EdgeInsets.only(top: 14.h,bottom:17.h),
padding: EdgeInsets.only(top: 14.h,bottom:17.h), // color: Color(0xFF32A060),
color: Color(0xFF32A060), // child: Text(
child: Text( // S.of(context).quxiao,
S.of(context).quxiao, // style: TextStyle(
style: TextStyle( // fontWeight: FontWeight.bold,
fontWeight: FontWeight.bold, // fontSize: 16.sp,
fontSize: 16.sp, // color: Colors.white),
color: Colors.white), // ),
), // ),
), // )
)
], ],
), ),
); );

3
lib/web/web_page.dart

@ -52,7 +52,6 @@ class _WebPage extends State<WebPage> with WidgetsBindingObserver {
final ScrollController scrollController = ScrollController(); final ScrollController scrollController = ScrollController();
final TextEditingController commentTextController = TextEditingController(); final TextEditingController commentTextController = TextEditingController();
bool emojiShowing = false; bool emojiShowing = false;
static double keyboard_height=300;
double keyboard = -1; double keyboard = -1;
bool needShowSmiley = false; bool needShowSmiley = false;
bool needHideSmiley = false; bool needHideSmiley = false;
@ -72,6 +71,7 @@ class _WebPage extends State<WebPage> with WidgetsBindingObserver {
@override @override
void didChangeMetrics() { void didChangeMetrics() {
WidgetsBinding.instance.addPostFrameCallback((_) { WidgetsBinding.instance.addPostFrameCallback((_) {
isKeyBoardShow = MediaQuery.of(context).viewInsets.bottom > 0;
if (MediaQuery.of(context).viewInsets.bottom == 0) { if (MediaQuery.of(context).viewInsets.bottom == 0) {
if (isKeyBoardShow) { if (isKeyBoardShow) {
FocusScope.of(context).requestFocus(FocusNode()); FocusScope.of(context).requestFocus(FocusNode());
@ -363,7 +363,6 @@ class _WebPage extends State<WebPage> with WidgetsBindingObserver {
inputKey, inputKey,
hintText, hintText,
isKeyBoardShow, isKeyBoardShow,
keyboard_height,
keyboard, keyboard,
emojiShowing, emojiShowing,
commentFocus, commentFocus,

2
lib/web/web_view/input_comment.dart

@ -13,7 +13,6 @@ class InputComment extends StatefulWidget {
final Activity activity; final Activity activity;
final Article article; final Article article;
final bool isKeyBoardShow; final bool isKeyBoardShow;
final double keyboard_height;
final double keyboard; final double keyboard;
final bool emojiShowing; final bool emojiShowing;
final FocusNode commentFocus; final FocusNode commentFocus;
@ -30,7 +29,6 @@ class InputComment extends StatefulWidget {
Key key, Key key,
this.hintText, this.hintText,
this.isKeyBoardShow, this.isKeyBoardShow,
this.keyboard_height,
this.keyboard, this.keyboard,
this.emojiShowing, this.emojiShowing,
this.commentFocus, this.commentFocus,

10
pubspec.lock

@ -166,7 +166,7 @@ packages:
name: flutter_baidu_mapapi_base name: flutter_baidu_mapapi_base
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "3.3.0" version: "3.2.0"
flutter_baidu_mapapi_map: flutter_baidu_mapapi_map:
dependency: "direct main" dependency: "direct main"
description: description:
@ -180,21 +180,21 @@ packages:
name: flutter_baidu_mapapi_search name: flutter_baidu_mapapi_search
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "3.3.0" version: "3.2.0"
flutter_baidu_mapapi_utils: flutter_baidu_mapapi_utils:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_baidu_mapapi_utils name: flutter_baidu_mapapi_utils
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "3.3.0" version: "3.2.0"
flutter_bmflocation: flutter_bmflocation:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_bmflocation name: flutter_bmflocation
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "3.3.0" version: "3.2.1"
flutter_easyloading: flutter_easyloading:
dependency: "direct main" dependency: "direct main"
description: description:
@ -307,7 +307,7 @@ packages:
name: fluwx name: fluwx
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "3.12.2" version: "3.9.0+2"
font_awesome_flutter: font_awesome_flutter:
dependency: "direct main" dependency: "direct main"
description: description:

Loading…
Cancel
Save