Sabin Neupane
Committed by GitHub

Update web dependency (#1703)

@@ -213,7 +213,8 @@ class PrintingPlugin extends PrintingPlatform { @@ -213,7 +213,8 @@ class PrintingPlugin extends PrintingPlatform {
213 script.setAttribute('id', _scriptId); 213 script.setAttribute('id', _scriptId);
214 script.setAttribute('type', 'text/javascript'); 214 script.setAttribute('type', 'text/javascript');
215 script.innerHTML = 215 script.innerHTML =
216 - '''function ${_frameId}_print(){var f=document.getElementById('$_frameId');f.focus();f.contentWindow.print();}'''; 216 + '''function ${_frameId}_print(){var f=document.getElementById('$_frameId');f.focus();f.contentWindow.print();}'''
  217 + .toJS;
217 doc.body!.append(script); 218 doc.body!.append(script);
218 219
219 final frame = doc.getElementById(_frameId) ?? doc.createElement('iframe'); 220 final frame = doc.getElementById(_frameId) ?? doc.createElement('iframe');
@@ -33,7 +33,7 @@ dependencies: @@ -33,7 +33,7 @@ dependencies:
33 pdf: ^3.10.0 33 pdf: ^3.10.0
34 pdf_widget_wrapper: '>=1.0.0 <2.0.0' 34 pdf_widget_wrapper: '>=1.0.0 <2.0.0'
35 plugin_platform_interface: ^2.1.0 35 plugin_platform_interface: ^2.1.0
36 - web: ^0.5.1 36 + web: ^1.0.0
37 37
38 dev_dependencies: 38 dev_dependencies:
39 flutter_lints: ^4.0.0 39 flutter_lints: ^4.0.0