jiahao 5 anos atrás
pai
commit
fe3bc0b69f
2 arquivos alterados com 4 adições e 3 exclusões
  1. +3
    -2
      ios/Flutter/flutter_export_environment.sh
  2. +1
    -1
      lib/utils/image_util.dart

+ 3
- 2
ios/Flutter/flutter_export_environment.sh Ver arquivo

@@ -2,9 +2,10 @@
# This is a generated file; do not edit or check into version control. # This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/random/sdk/flutter_sdk" export "FLUTTER_ROOT=/Users/random/sdk/flutter_sdk"
export "FLUTTER_APPLICATION_PATH=/Users/random/code/flutter/project/qunliao" export "FLUTTER_APPLICATION_PATH=/Users/random/code/flutter/project/qunliao"
export "FLUTTER_TARGET=lib/main.dart"
export "FLUTTER_TARGET=/Users/random/code/flutter/project/qunliao/lib/main.dart"
export "FLUTTER_BUILD_DIR=build" export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build/ios" export "SYMROOT=${SOURCE_ROOT}/../build/ios"
export "FLUTTER_FRAMEWORK_DIR=/Users/random/sdk/flutter_sdk/bin/cache/artifacts/engine/ios-release"
export "FLUTTER_FRAMEWORK_DIR=/Users/random/sdk/flutter_sdk/bin/cache/artifacts/engine/ios"
export "FLUTTER_BUILD_NAME=1.0.5" export "FLUTTER_BUILD_NAME=1.0.5"
export "FLUTTER_BUILD_NUMBER=6" export "FLUTTER_BUILD_NUMBER=6"
export "TRACK_WIDGET_CREATION=true"

+ 1
- 1
lib/utils/image_util.dart Ver arquivo

@@ -70,7 +70,7 @@ class WidgetUtil {
static getCompressImg(String imgPath) async { static getCompressImg(String imgPath) async {
File compressedFile = await FlutterNativeImage.compressImage(imgPath, File compressedFile = await FlutterNativeImage.compressImage(imgPath,
quality: 20, percentage: 10);
quality: 20, percentage: 25);
var k =compressedFile.readAsBytesSync().toList(); var k =compressedFile.readAsBytesSync().toList();
print('A图片压缩完毕 : ${k.length}'); print('A图片压缩完毕 : ${k.length}');
// compressedFile. // compressedFile.


Carregando…
Cancelar
Salvar