Skip to content

web compilation #9

Closed
Closed

Description

@abdelaziz-mahdy

using with video_player will make the code not compile on web

can the registerWith be wrapped in conditional import ?
like this?
https://github.com/AR-CADE/petit_player/blob/main/lib/fvp_pollyfill.dart

Activity

  1. wang-bin commented on Aug 21, 2023

    @wang-bin
    Owner

    I can add an option for registerWith to select platforms to enable

  2. self-assigned this
    on Aug 21, 2023
  3. added
    enhancement
    on Aug 21, 2023
  4. wang-bin commented on Aug 21, 2023

    @wang-bin
    Owner

    what you can do now is

    if (!dart.library.html)
        registerWith();
  5. abdelaziz-mahdy commented on Aug 21, 2023

    @abdelaziz-mahdy
    ContributorAuthor

    thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions