Skip to content

Add platform interface to plugin template #92279

@stuartmorgan-g

Description

@stuartmorgan-g

Currently the plugin template uses platform channels as the cross-platform API, including web. We should change it to use a platform interface internally, just as we would for a federated plugin; there's no reason that platform interfaces need federation, and adding it would:

  • make it clearer that platform channels don't have to be the cross-platform interface
  • demonstrate a better pattern for web
  • make it clearer how to, e.g., use FFI for one implementation
  • be more consistent with the eventual federated template, so the two templates are more similar.

/cc @ditman

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listpackageflutter/packages repository. See also p: labels.toolAffects the "flutter" command-line tool. See also t: labels.waiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions