Browse Source

图片路径

Jimmy 2 years ago
parent
commit
f7fd36ad46
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/src/qrcode_withlogo.dart

+ 1 - 1
lib/src/qrcode_withlogo.dart

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