From 5bc392b1c2fd01c804a7e4ff044b22f26fce8686 Mon Sep 17 00:00:00 2001 From: fmk Date: Tue, 26 Oct 2021 14:06:03 +0800 Subject: [PATCH] safety --- README.md | 7 ++++++- ios/Podfile.lock | 8 +++++++- .../community_view/community_dynamic.dart | 20 +++++++++++-------- lib/union/union_page.dart | 3 --- 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 60789a18..72c0cabb 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ For help getting started with Flutter, view our samples, guidance on mobile development, and a full API reference. - +#1.0 登录页 发送验证码 @@ -64,3 +64,8 @@ samples, guidance on mobile development, and a full API reference. 订单详情 (订单生成时间) 取消订单 取件码 + +#说明: + huixiang_app/pubspec.yaml #依赖 + + diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 022bd440..8e55d92b 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -103,6 +103,8 @@ PODS: - Flutter - FMDB (>= 2.7.5) - SSZipArchive (2.4.2) + - thumbnails (0.0.1): + - Flutter - TPNS-iOS (1.3.3.0) - tpns_flutter_plugin (1.1.2): - Flutter @@ -136,6 +138,7 @@ DEPENDENCIES: - sharesdk_plugin (from `.symlinks/plugins/sharesdk_plugin/ios`) - sqflite (from `.symlinks/plugins/sqflite/ios`) - SSZipArchive (~> 2.4.2) + - thumbnails (from `.symlinks/plugins/thumbnails/ios`) - tpns_flutter_plugin (from `.symlinks/plugins/tpns_flutter_plugin/ios`) - url_launcher (from `.symlinks/plugins/url_launcher/ios`) - video_player (from `.symlinks/plugins/video_player/ios`) @@ -188,6 +191,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/sharesdk_plugin/ios" sqflite: :path: ".symlinks/plugins/sqflite/ios" + thumbnails: + :path: ".symlinks/plugins/thumbnails/ios" tpns_flutter_plugin: :path: ".symlinks/plugins/tpns_flutter_plugin/ios" url_launcher: @@ -212,7 +217,7 @@ SPEC CHECKSUMS: flutter_scankit: 16936d86b3de3f83c122e763f4c24c5da214c78f fluwx: c192ef1ea3617badb813fa1a761ffc5c9c12208a FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a - image_pickers: 25c8916d358bc9d2707cb470ba3d57497f105773 + image_pickers: 5e6ec7083f9363d014c0fb061f1b9cd97bb5e451 mob_sharesdk: c771f001e00739d24301a9fa250247601efe7a3c MOBFoundation: 2abd23c80c33d1337d30dc4b0018ed914cef8f8e package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62 @@ -224,6 +229,7 @@ SPEC CHECKSUMS: sharesdk_plugin: 6d6634bb480174b607030f19fc9d84d68cfbf326 sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904 SSZipArchive: e7b4f3d9e780c2acc1764cd88fbf2de28f26e5b2 + thumbnails: bb4f4e9bb4b51c8ae4e6ad9a2fa81373f9b634ad TPNS-iOS: 57a146496858ba2fb5d43e5f240feb19243b69cb tpns_flutter_plugin: a366649c8ad71f19dfb864d3c994ed0480b69daa url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef diff --git a/lib/community/community_view/community_dynamic.dart b/lib/community/community_view/community_dynamic.dart index eb6276fa..d2a9518f 100644 --- a/lib/community/community_view/community_dynamic.dart +++ b/lib/community/community_view/community_dynamic.dart @@ -408,16 +408,20 @@ class _CommunityDynamic extends State { )) : Container( width: width, - height: width / 3 * 2, + height: width / 7 * 5, + color: Colors.black, child: Stack( children: [ - MImage( - src, - width: width, - height: width / 3 * 2, - fit: BoxFit.cover, - errorSrc: "assets/image/default_2_1.png", - fadeSrc: "assets/image/default_2_1.png", + Center( + child: MImage( + src, + aspectRatio: videoPlayerController != null + ? videoPlayerController.value.aspectRatio + : (width / 7 * 5), + fit: BoxFit.cover, + errorSrc: "assets/image/default_2_1.png", + fadeSrc: "assets/image/default_2_1.png", + ), ), Center( child: Icon( diff --git a/lib/union/union_page.dart b/lib/union/union_page.dart index b976bd82..b3b3b22f 100644 --- a/lib/union/union_page.dart +++ b/lib/union/union_page.dart @@ -12,7 +12,6 @@ import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/main.dart'; import 'package:huixiang/retrofit/data/base_data.dart'; import 'package:huixiang/retrofit/data/store.dart'; -import 'package:huixiang/retrofit/data/store_type.dart'; import 'package:huixiang/retrofit/retrofit_api.dart'; import 'package:huixiang/store/scan.dart'; import 'package:huixiang/utils/event_type.dart'; @@ -22,8 +21,6 @@ import 'package:huixiang/view_widget/custom_image.dart'; import 'package:huixiang/view_widget/icon_text.dart'; import 'package:huixiang/view_widget/item_title.dart'; import 'package:huixiang/view_widget/my_appbar.dart'; -import 'package:huixiang/view_widget/request_permission.dart'; -import 'package:permission_handler/permission_handler.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:flutter/rendering.dart';