Skip to content

Commit 29ad4b3

Browse files
author
Rad Azzouz
committed
Rename image to fix the exception in the Image Document example
Having spaces in the assert name caused the following exception on both iOS and Android: ``` [VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: Unable to load asset: PDFs/PSPDFKit Image Example.jpg #0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:221:7) <asynchronous suspension> #1 _MyAppState.extractAsset (package:pspdfkit_example/main.dart:53:65) #2 _MyAppState.showImage (package:pspdfkit_example/main.dart:75:41) #3 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24) #4 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:486:11) #5 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:264:5) #6 BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:236:7) #7 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27) #8 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:222:20) #9 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22) #10 GestureBinding<…> [VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: Unable to load asset: PDFs/PSPDFKit Image Example.jpg #0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:221:7) <asynchronous suspension> #1 _MyAppState.extractAsset (package:pspdfkit_example/main.dart:53:65) #2 _MyAppState.showImage (package:pspdfkit_example/main.dart:75:41) #3 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24) #4 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:486:11) #5 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:264:5) #6 BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:236:7) #7 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27) #8 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:222:20) #9 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22) #10 GestureBinding<…> ```
1 parent 395edf7 commit 29ad4b3

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
File renamed without changes.

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import 'package:pspdfkit_flutter/pspdfkit.dart';
1818

1919
const String _documentPath = 'PDFs/PSPDFKit.pdf';
2020
const String _lockedDocumentPath = 'PDFs/protected.pdf';
21-
const String _imagePath = 'PDFs/PSPDFKit Image Example.jpg';
21+
const String _imagePath = 'PDFs/PSPDFKit_Image_Example.jpg';
2222
const String _formPath = 'PDFs/Form_example.pdf';
2323
const String _instantDocumentJsonPath = 'PDFs/Instant/instant-document.json';
2424
const String _pspdfkitFlutterPluginTitle = 'PSPDFKit Flutter Plugin example app';

0 commit comments

Comments
 (0)