Skip to content

Implement PlatformView support on macOS #41722

Open

Description

@stuartmorgan-g

We'll want to support embedding native views in a Flutter view, as is currently supported on mobile.

Remaining tasks:

  • Gesture support
  • Focus traversal
  • Accessibility tree merging

Activity

  1. rodydavis commented on Jan 22, 2020

    @rodydavis
  2. stuartmorgan-g commented on Jan 22, 2020

    @stuartmorgan-g
    Author
  3. MichelDiz commented on Apr 4, 2020

    @MichelDiz
  4. added
    P2Important issues not at the top of the work list
    on Jun 9, 2020
  5. blasten commented on Sep 11, 2020

    @blasten

    @stuartmorgan we should chat. There's some opportunity to refactor the existing implementation on iOS, and I wonder if some code could be shared.

  6. stuartmorgan-g commented on Sep 11, 2020

    @stuartmorgan-g
    ContributorAuthor

    I suspect not—on the Flutter end macOS uses embedder.h and iOS doesn't, while on the native end Cocoa and CocoaTouch are similarly but entirely disjoint—but it's certainly worth investigating to find out for sure.

  7. radvansky-tomas commented on Feb 14, 2021

    @radvansky-tomas

    So basically there is currently no option to create plugins which support native views - and then enable things like Google Maps, etc..

  8. vanlooverenkoen commented on Mar 10, 2021

    @vanlooverenkoen
    Contributor

    Isn't this something that should be implemented before we can speak of a stable desktop release? I can imagine that a lot of apps require some native views, video player, webview, maps,...

  9. stuartmorgan-g commented on Mar 10, 2021

    @stuartmorgan-g
    ContributorAuthor

    Conversely, lots of apps don't require those things; "stable" doesn't mean "has every feature that should eventually be supported" or "supports every use case".

    Flutter 1.0, notably, did not support platform views.

  10. vanlooverenkoen commented on Mar 10, 2021

    @vanlooverenkoen
    Contributor

    Good to know. Is there some kind of roadmap for this? We are building a video streaming app for android, iOS, web, androidtv, tizen, webOS and we want to support desktop apps as well. But I think as long as this is not yet implemented in flutter there is no way to add support for desktop apps.

  11. radvansky-tomas commented on Mar 15, 2021

    @radvansky-tomas

    But isnt PlatformView exactly tool for those features which are NOT supported yet ? so we can use existing OS features / plugins ? I mean having PlatformView ready before actually release of macOSX support seem to be quite essential.

    Anyway I am looking forward for new features added to mac osx package

  12. vanlooverenkoen commented on Mar 28, 2021

    @vanlooverenkoen
    Contributor

    @radvansky-tomas platform channels are supported. The platform views are missing. So you add support for notifications on desktop. But video streaming, google maps (platform views) are not yet supported

  13. 57 remaining items

  14. flutter-triage-bot commented on Mar 25, 2024

    @flutter-triage-bot

    This issue is assigned to @cbracken but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

  15. LylaAhn commented on Apr 3, 2024

    @LylaAhn
  16. stuartmorgan-g commented on Apr 3, 2024

    @stuartmorgan-g
    ContributorAuthor
  17. removed
    ⏳Bot is counting down the days until it unassigns the issue
    on Apr 3, 2024
  18. ekuleshov commented on Apr 3, 2024

    @ekuleshov

    @stuartmorgan @cbracken this issue is linked from the 2024 roadmap but I wasn't been able to find any specific tasks related to this work, e.g. a list of gaps or outstanding issues that need to be completed before this gets real. Do you have any hints on that?

  19. stuartmorgan-g commented on Apr 3, 2024

    @stuartmorgan-g
    ContributorAuthor

    @cbracken Do you want to edit the original issue description to include a checklist of the remaining items (e.g., gesture support) so it stays pinned to a discoverable location?

  20. cbracken commented on Apr 10, 2024

    @cbracken
    Member

    Done!

  21. removed their assignment
    on Apr 10, 2024
  22. added
    team-macosOwned by the macOS platform team
    and removed on Jun 5, 2024
  23. sfshaza2 commented on Jun 27, 2024

    @sfshaza2
    Contributor

    @cbracken @sethladd, it sounds like this might require some new/additional docs on docs.flutter.dev. Let's talk!

  24. cbracken commented on Jun 27, 2024

    @cbracken
    Member

    @sfshaza2 I sent a draft PR yesterday which I'm hoping to finalise today! flutter/website#10796

  25. josxha commented on Jul 16, 2024

    @josxha

    Link to the updated flutter docs that describe the current state of platform view for macos:
    https://docs.flutter.dev/platform-integration/macos/platform-views

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: desktopRunning on desktopa: platform-viewsEmbedding Android/iOS views in Flutter appsc: new featureNothing broken; request for a new capabilityplatform-macosBuilding on or for macOS specificallyteam-macosOwned by the macOS platform teamtriaged-macosTriaged by the macOS platform team

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions