Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Don't use web-only libraries outside Flutter web plugin packages. Try finding a different library for your needs.

Saad Shafiq answered on May 22, 2022 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Flutter plugin not installed; this adds Flutter specific functionality. windows
  • Flutter plugin not installed; this adds Flutter specific functionality
  • flutter plugin installed but in flutter doctor it shows not installed
  • Flutter plugin not installed; this adds Flutter specific functionality.
  • Flutter plugin not installed; this adds Flutter specific functionality

  • Don't use web-only libraries outside Flutter web plugin packages. Try finding a different library for your needs.

    0

    dependencies:

    universal_html: ^1.2.1

    Then instead of using import 'dart:html' as html; you can use the following import:

    import 'package:universal_html/html.dart' as html; 

    source: https://stackoverflow.com/questions/60646793/avoid-using-web-only-libraries-outside-flutter-web-plugin-packages

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 04 2023
    Saad Shafiq
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    -1
    Popularity 8/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 22 2022
    Sore Sardine
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.