-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Massive errors after upgrading #321
Comments
Facing the same issue after upgrading to 2.1.1 |
Same issue here |
same issue with compileSdkVersion 33 |
same |
Same issue on windows build |
True I also noticed on the windows build its quite a big issue now i cant move forward and test my stuff. Is there an alternative pdf viewer as good as this one that also works for Web |
Just temporarely roll back to v2.0.1, and update when it is fixed. |
Same here... |
Same error here |
fixed for now using version 2.0.1+2 |
Looks like it was this change that broke things: Added pdfx_plugin.dart into exports list There is a PR to undo that change: 320 Downgraded to
(if you need latest photo_view) |
this is messy the suggested downgrade does not work. |
downgrading is not working |
Fixed in 2.2.0 |
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:13:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:6:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:5:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:3:8: Error: Not found: 'dart:js'
import 'dart:js' as js;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:22:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.4/lib/js.dart:8:1: Error: Not found: 'dart:js'
export 'dart:js' show allowInterop, allowInteropCaptureThis;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.4/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
export 'dart:js_util';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:23:8: Error: Not found: 'dart:js_util'
import 'dart:js_util';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:3:8: Error: Not found: 'dart:js'
import 'dart:js' as js;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:79:48: Error: Type 'html.EventListener' not found.
external ui.VoidCallback addPopStateListener(html.EventListener fn);
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:193:3: Error: Type 'html.Location' not found.
html.Location get _location => html.window.location;
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:195:3: Error: Type 'html.History' not found.
html.History get _history => html.window.history;
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:198:28: Error: Type 'html.EventListener' not found.
void addPopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:203:31: Error: Type 'html.EventListener' not found.
void removePopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:7: Error: Type 'AnchorElement' not found.
final AnchorElement _urlParsingNode = AnchorElement();
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:7: Error: Type 'Element' not found.
final Element? _baseElement = document.querySelector('base');
^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:135:14: Error: Type 'CanvasRenderingContext2D' not found.
required CanvasRenderingContext2D canvasContext,
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:145:12: Error: Type 'CanvasRenderingContext2D' not found.
external CanvasRenderingContext2D get canvasContext;
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:146:30: Error: Type 'CanvasRenderingContext2D' not found.
external set canvasContext(CanvasRenderingContext2D ctx);
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:167:26: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
SchedulerBinding.instance?.cancelFrameCallbackWithId(_frameCallbackID);
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:170:28: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
SchedulerBinding.instance?.scheduleFrameCallback(_beginFrame) ?? -1;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:272:26: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
SchedulerBinding.instance?.cancelFrameCallbackWithId(frameCallbackID);
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:230:16: Error: 'CanvasElement' isn't a type.
final html.CanvasElement canvas =
^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:231:12: Error: Undefined name 'context'.
js.context['document'].createElement('canvas');
^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:232:16: Error: 'CanvasRenderingContext2D' isn't a type.
final html.CanvasRenderingContext2D context =
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:233:41: Error: 'CanvasRenderingContext2D' isn't a type.
canvas.getContext('2d') as html.CanvasRenderingContext2D;
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:248:10: Error: Method not found: 'promiseToFuture'.
.promiseToFuture(pdfJsPage.render(renderContext).promise);
^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:255:25: Error: Method not found: 'FileReader'.
final reader = html.FileReader()..readAsArrayBuffer(blob);
^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:256:35: Error: 'ProgressEvent' isn't a type.
reader.onLoadEnd.listen((html.ProgressEvent e) {
^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:307:30: Error: Undefined name 'window'.
js_util.setProperty(html.window, 'pdfx_texture$id', null);
^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:307:13: Error: Method not found: 'setProperty'.
js_util.setProperty(html.window, 'pdfx_texture_$id', null);
^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:374:30: Error: Undefined name 'window'.
js_util.setProperty(html.window, 'pdfx_texture_$id', data);
^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:374:13: Error: Method not found: 'setProperty'.
js_util.setProperty(html.window, 'pdfx_texture_$id', data);
^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:423:26: Error: Undefined name 'document'.
final canvas = (html.document.createElement('canvas') as html.CanvasElement)
^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:423:67: Error: 'CanvasElement' isn't a type.
final canvas = (html.document.createElement('canvas') as html.CanvasElement)
^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:427:16: Error: 'CanvasRenderingContext2D' isn't a type.
final html.CanvasRenderingContext2D context =
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:428:41: Error: 'CanvasRenderingContext2D' isn't a type.
canvas.getContext('2d') as html.CanvasRenderingContext2D;
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:443:10: Error: Method not found: 'promiseToFuture'.
.promiseToFuture(page.renderer.render(rendererContext).promise);
^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:449:25: Error: Method not found: 'FileReader'.
final reader = html.FileReader()..readAsArrayBuffer(blob);
^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:450:35: Error: 'ProgressEvent' isn't a type.
reader.onLoadEnd.listen((html.ProgressEvent e) {
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:48:14: Error: Method not found: 'allowInterop'.
getPath: allowInterop(strategy.getPath),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:49:15: Error: Method not found: 'allowInterop'.
getState: allowInterop(strategy.getState),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:50:26: Error: Method not found: 'allowInterop'.
addPopStateListener: allowInterop(strategy.addPopStateListener),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:51:25: Error: Method not found: 'allowInterop'.
prepareExternalUrl: allowInterop(strategy.prepareExternalUrl),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:52:16: Error: Method not found: 'allowInterop'.
pushState: allowInterop(strategy.pushState),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:53:19: Error: Method not found: 'allowInterop'.
replaceState: allowInterop(strategy.replaceState),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:54:9: Error: Method not found: 'allowInterop'.
go: allowInterop(strategy.go),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:79:53: Error: 'EventListener' isn't a type.
external ui.VoidCallback addPopStateListener(html.EventListener fn);
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:193:39: Error: Undefined name 'window'.
html.Location get _location => html.window.location;
^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:195:37: Error: Undefined name 'window'.
html.History get _history => html.window.history;
^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:198:33: Error: 'EventListener' isn't a type.
void addPopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:199:10: Error: Undefined name 'window'.
html.window.addEventListener('popstate', fn);
^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:203:36: Error: 'EventListener' isn't a type.
void removePopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:204:10: Error: Undefined name 'window'.
html.window.removeEventListener('popstate', fn);
^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:7: Error: 'AnchorElement' isn't a type.
final AnchorElement _urlParsingNode = AnchorElement();
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:39: Error: Method not found: 'AnchorElement'.
final AnchorElement _urlParsingNode = AnchorElement();
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:7: Error: 'Element' isn't a type.
final Element? _baseElement = document.querySelector('base');
^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:31: Error: Undefined name 'document'.
final Element? _baseElement = document.querySelector('base');
^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/plugin_registry.dart:66:8: Error: Method not found: 'webOnlySetPluginHandler'.
ui.webOnlySetPluginHandler(handleFrameworkMessage);
^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:42:16: Error: Method not found: 'getProperty'.
'cMapUrl': getProperty(_pdfRenderOptions, 'cMapUrl'),
^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:43:19: Error: Method not found: 'getProperty'.
'cMapPacked': getProperty(_pdfRenderOptions, 'cMapPacked'),
^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:45:23: Error: Method not found: 'getProperty'.
final otherParams = getProperty(_pdfRenderOptions, 'params');
^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:55:27: Error: Method not found: 'jsify'.
_pdfjsGetDocument(jsify(_getParams(jsParams))).promise);
^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:54:5: Error: Method not found: 'promiseToFuture'.
promiseToFuture(
^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:135:14: Error: 'CanvasRenderingContext2D' isn't a type.
required CanvasRenderingContext2D canvasContext,
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:146:30: Error: 'CanvasRenderingContext2D' isn't a type.
external set canvasContext(CanvasRenderingContext2D ctx);
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/document.dart:23:7: Error: The method 'promiseToFuture' isn't defined for the class 'Document'.
Try correcting the name to the name of an existing method, or defining a method named 'promiseToFuture'.
promiseToFuture(document.getPage(pageNumber!));
^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:39:16: Error: 'CanvasElement' isn't a type.
final html.CanvasElement canvas =
^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:40:12: Error: Undefined name 'context'.
js.context['document'].createElement('canvas');
^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:41:16: Error: 'CanvasRenderingContext2D' isn't a type.
final html.CanvasRenderingContext2D context =
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:42:41: Error: 'CanvasRenderingContext2D' isn't a type.
canvas.getContext('2d') as html.CanvasRenderingContext2D;
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:62:25: Error: Method not found: 'FileReader'.
final reader = html.FileReader()..readAsArrayBuffer(blob);
^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:64:13: Error: 'ProgressEvent' isn't a type.
(html.ProgressEvent e) {
^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:56:11: Error: The method 'promiseToFuture' isn't defined for the class 'Page'.
Try correcting the name to the name of an existing method, or defining a method named 'promiseToFuture'.
await promiseToFuture(renderer.render(renderContext).promise);
^^^^^^^^^^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
#0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
Update issue templates #1 asFileUri (package:vm/kernel_front_end.dart:652:37)
Add a way to render a subset of a PDF page #2 writeDepfile (package:vm/kernel_front_end.dart:792:21)
BUILD FAILED in 1m 2s
Running Gradle task 'bundleRelease'... 64,0s
Gradle task bundleRelease failed with exit code 1
PS C:\Mobile\digidata> flutter build apk --split-per-abi
Building with sound null safety
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:13:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:6:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:5:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:3:8: Error: Not found: 'dart:js'
import 'dart:js' as js;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:22:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.4/lib/js.dart:8:1: Error: Not found: 'dart:js'
export 'dart:js' show allowInterop, allowInteropCaptureThis;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.4/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
export 'dart:js_util';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:23:8: Error: Not found: 'dart:js_util'
import 'dart:js_util';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:3:8: Error: Not found: 'dart:js'
import 'dart:js' as js;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:79:48: Error: Type 'html.EventListener' not found.
external ui.VoidCallback addPopStateListener(html.EventListener fn);
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:193:3: Error: Type 'html.Location' not found.
html.Location get _location => html.window.location;
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:195:3: Error: Type 'html.History' not found.
html.History get _history => html.window.history;
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:198:28: Error: Type 'html.EventListener' not found.
void addPopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:203:31: Error: Type 'html.EventListener' not found.
void removePopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:7: Error: Type 'AnchorElement' not found.
final AnchorElement _urlParsingNode = AnchorElement();
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:7: Error: Type 'Element' not found.
final Element? _baseElement = document.querySelector('base');
^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:135:14: Error: Type 'CanvasRenderingContext2D' not found.
required CanvasRenderingContext2D canvasContext,
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:145:12: Error: Type 'CanvasRenderingContext2D' not found.
external CanvasRenderingContext2D get canvasContext;
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:146:30: Error: Type 'CanvasRenderingContext2D' not found.
external set canvasContext(CanvasRenderingContext2D ctx);
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:167:26: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
SchedulerBinding.instance?.cancelFrameCallbackWithId(_frameCallbackID);
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:170:28: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
SchedulerBinding.instance?.scheduleFrameCallback(_beginFrame) ?? -1;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:272:26: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
SchedulerBinding.instance?.cancelFrameCallbackWithId(frameCallbackID);
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:230:16: Error: 'CanvasElement' isn't a type.
final html.CanvasElement canvas =
^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:231:12: Error: Undefined name 'context'.
js.context['document'].createElement('canvas');
^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:232:16: Error: 'CanvasRenderingContext2D' isn't a type.
final html.CanvasRenderingContext2D context =
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:233:41: Error: 'CanvasRenderingContext2D' isn't a type.
canvas.getContext('2d') as html.CanvasRenderingContext2D;
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:248:10: Error: Method not found: 'promiseToFuture'.
.promiseToFuture(pdfJsPage.render(renderContext).promise);
^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:255:25: Error: Method not found: 'FileReader'.
final reader = html.FileReader()..readAsArrayBuffer(blob);
^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:256:35: Error: 'ProgressEvent' isn't a type.
reader.onLoadEnd.listen((html.ProgressEvent e) {
^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:307:30: Error: Undefined name 'window'.
js_util.setProperty(html.window, 'pdfx_texture$id', null);
^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:307:13: Error: Method not found: 'setProperty'.
js_util.setProperty(html.window, 'pdfx_texture_$id', null);
^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:374:30: Error: Undefined name 'window'.
js_util.setProperty(html.window, 'pdfx_texture_$id', data);
^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:374:13: Error: Method not found: 'setProperty'.
js_util.setProperty(html.window, 'pdfx_texture_$id', data);
^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:423:26: Error: Undefined name 'document'.
final canvas = (html.document.createElement('canvas') as html.CanvasElement)
^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:423:67: Error: 'CanvasElement' isn't a type.
final canvas = (html.document.createElement('canvas') as html.CanvasElement)
^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:427:16: Error: 'CanvasRenderingContext2D' isn't a type.
final html.CanvasRenderingContext2D context =
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:428:41: Error: 'CanvasRenderingContext2D' isn't a type.
canvas.getContext('2d') as html.CanvasRenderingContext2D;
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:443:10: Error: Method not found: 'promiseToFuture'.
.promiseToFuture(page.renderer.render(rendererContext).promise);
^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:449:25: Error: Method not found: 'FileReader'.
final reader = html.FileReader()..readAsArrayBuffer(blob);
^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:450:35: Error: 'ProgressEvent' isn't a type.
reader.onLoadEnd.listen((html.ProgressEvent e) {
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:48:14: Error: Method not found: 'allowInterop'.
getPath: allowInterop(strategy.getPath),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:49:15: Error: Method not found: 'allowInterop'.
getState: allowInterop(strategy.getState),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:50:26: Error: Method not found: 'allowInterop'.
addPopStateListener: allowInterop(strategy.addPopStateListener),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:51:25: Error: Method not found: 'allowInterop'.
prepareExternalUrl: allowInterop(strategy.prepareExternalUrl),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:52:16: Error: Method not found: 'allowInterop'.
pushState: allowInterop(strategy.pushState),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:53:19: Error: Method not found: 'allowInterop'.
replaceState: allowInterop(strategy.replaceState),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:54:9: Error: Method not found: 'allowInterop'.
go: allowInterop(strategy.go),
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:79:53: Error: 'EventListener' isn't a type.
external ui.VoidCallback addPopStateListener(html.EventListener fn);
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:193:39: Error: Undefined name 'window'.
html.Location get _location => html.window.location;
^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:195:37: Error: Undefined name 'window'.
html.History get _history => html.window.history;
^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:198:33: Error: 'EventListener' isn't a type.
void addPopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:199:10: Error: Undefined name 'window'.
html.window.addEventListener('popstate', fn);
^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:203:36: Error: 'EventListener' isn't a type.
void removePopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:204:10: Error: Undefined name 'window'.
html.window.removeEventListener('popstate', fn);
^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:7: Error: 'AnchorElement' isn't a type.
final AnchorElement _urlParsingNode = AnchorElement();
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:39: Error: Method not found: 'AnchorElement'.
final AnchorElement _urlParsingNode = AnchorElement();
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:7: Error: 'Element' isn't a type.
final Element? _baseElement = document.querySelector('base');
^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:31: Error: Undefined name 'document'.
final Element? _baseElement = document.querySelector('base');
^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/plugin_registry.dart:66:8: Error: Method not found: 'webOnlySetPluginHandler'.
ui.webOnlySetPluginHandler(handleFrameworkMessage);
^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:42:16: Error: Method not found: 'getProperty'.
'cMapUrl': getProperty(_pdfRenderOptions, 'cMapUrl'),
^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:43:19: Error: Method not found: 'getProperty'.
'cMapPacked': getProperty(_pdfRenderOptions, 'cMapPacked'),
^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:45:23: Error: Method not found: 'getProperty'.
final otherParams = getProperty(_pdfRenderOptions, 'params');
^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:55:27: Error: Method not found: 'jsify'.
_pdfjsGetDocument(jsify(_getParams(jsParams))).promise);
^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:54:5: Error: Method not found: 'promiseToFuture'.
promiseToFuture(
^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:135:14: Error: 'CanvasRenderingContext2D' isn't a type.
required CanvasRenderingContext2D canvasContext,
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:146:30: Error: 'CanvasRenderingContext2D' isn't a type.
external set canvasContext(CanvasRenderingContext2D ctx);
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/document.dart:23:7: Error: The method 'promiseToFuture' isn't defined for the class 'Document'.
Try correcting the name to the name of an existing method, or defining a method named 'promiseToFuture'.
promiseToFuture(document.getPage(pageNumber!));
^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:39:16: Error: 'CanvasElement' isn't a type.
final html.CanvasElement canvas =
^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:40:12: Error: Undefined name 'context'.
js.context['document'].createElement('canvas');
^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:41:16: Error: 'CanvasRenderingContext2D' isn't a type.
final html.CanvasRenderingContext2D context =
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:42:41: Error: 'CanvasRenderingContext2D' isn't a type.
canvas.getContext('2d') as html.CanvasRenderingContext2D;
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:62:25: Error: Method not found: 'FileReader'.
final reader = html.FileReader()..readAsArrayBuffer(blob);
^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:64:13: Error: 'ProgressEvent' isn't a type.
(html.ProgressEvent e) {
^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:56:11: Error: The method 'promiseToFuture' isn't defined for the class 'Page'.
Try correcting the name to the name of an existing method, or defining a method named 'promiseToFuture'.
await promiseToFuture(renderer.render(renderContext).promise);
^^^^^^^^^^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
#0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
Update issue templates #1 asFileUri (package:vm/kernel_front_end.dart:652:37)
Add a way to render a subset of a PDF page #2 writeDepfile (package:vm/kernel_front_end.dart:792:21)
BUILD FAILED in 29s
Running Gradle task 'assembleRelease'... 30,5s
Gradle task assembleRelease failed with exit code 1
PS C:\Mobile\digidata> flutter build apk --split-per-abi
Building with sound null safety
e: C:\Flutter.pub-cache\hosted\pub.dartlang.org\pdfx-2.1.1\android\src\main\kotlin\io\scer\pdfx\Messages.kt: (30, 1): Class 'Messages' is not abstract and does not implement abstract member public abstract fun unregisterTexture(message: Pigeon.UnregisterTextureMessage): Unit defined in dev.flutter.pigeon.Pigeon.PdfxApi
e: C:\Flutter.pub-cache\hosted\pub.dartlang.org\pdfx-2.1.1\android\src\main\kotlin\io\scer\pdfx\Messages.kt: (286, 5): 'unregisterTexture' overrides nothing
FAILURE: Build failed with an exception.
Execution failed for task ':pdfx:compileReleaseKotlin'.
The text was updated successfully, but these errors were encountered: