瀏覽代碼

修复部分问题

Jimmy 2 年之前
父節點
當前提交
ac7400ff16
共有 5 個文件被更改,包括 3 次插入1 次删除
  1. 0 0
      .flutter-plugins-dependencies
  2. 二進制
      assets/images/flyinsono.png
  3. 1 1
      lib/src/qrcode_withlogo.dart
  4. 2 0
      pubspec.yaml
  5. 0 0
      qrcode/.flutter-plugins-dependencies

文件差異過大導致無法顯示
+ 0 - 0
.flutter-plugins-dependencies


二進制
assets/images/flyinsono.png


+ 1 - 1
lib/src/qrcode_withlogo.dart

@@ -95,7 +95,7 @@ class _QRCodeWithLogoState extends State<QRCodeWithLogo> {
 
   Future<ui.Image> _loadOverlayImage() async {
     final completer = Completer<ui.Image>();
-    final byteData = await rootBundle.load('assets/images/4.0x/flyinsono.png');
+    final byteData = await rootBundle.load('images/flyinsono.png');
     ui.decodeImageFromList(byteData.buffer.asUint8List(), completer.complete);
     return completer.future;
   }

+ 2 - 0
pubspec.yaml

@@ -39,3 +39,5 @@ dev_dependencies:
 
 flutter:
   uses-material-design: false
+  assets:
+    - assets/images/flyinsono.png

文件差異過大導致無法顯示
+ 0 - 0
qrcode/.flutter-plugins-dependencies


部分文件因文件數量過多而無法顯示