Skip to content

Commit

Permalink
docs: Support for overriding endorsed plugin implementations (flutter…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed Jul 14, 2024
1 parent 332c794 commit ee666a2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/content/packages-and-plugins/developing-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,16 @@ If you can't, for whatever reason, get your implementation
added by the original plugin author, then your plugin
is _not_ endorsed. A developer can still use your
implementation, but must manually add the plugin
to the app's pubspec file. So, the developer
must include both the `foobar` dependency _and_
the `foobar_windows` dependency in order to achieve
full functionality.
to the app's `pubspec.yaml` file:

```yaml
dependencies:
foobar: ^1.0.0
foobar_windows: ^1.0.0 # Non-endorsed plugin implementation
```
This approach also works for overriding an already
endorsed plugin implementation of `foobar`.

For more information on federated plugins,
why they are useful, and how they are
Expand Down

0 comments on commit ee666a2

Please sign in to comment.