You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with import 'dart:html' as html;
was using this
html.AnchorElement(href: url)
// Set the download attribute to file name.
..setAttribute("download", "")
// Trigger a click event on the anchor element to initiate the download.
..click();
and it's was working absolutely fine
url: https://pdfobject.com/pdf/sample.pdf
how it'll work with web package
The text was updated successfully, but these errors were encountered:
It's useful to look at the dart:html source code here to compare. The code should be similar. The only difference is that the AnchorElement constructor in dart:html took in an href that it explicitly set (well that and the rename of the type).
For Android build it's failing how we can use this as web and don't fail the android build
The unavailable library 'dart:js_interop' is imported through these packages:
with import 'dart:html' as html;
was using this
html.AnchorElement(href: url)
// Set the download attribute to file name.
..setAttribute("download", "")
// Trigger a click event on the anchor element to initiate the download.
..click();
and it's was working absolutely fine
url: https://pdfobject.com/pdf/sample.pdf
how it'll work with web package
The text was updated successfully, but these errors were encountered: