Skip to content

Commit

Permalink
Document when to use pluginFfi vs plugin (flutter#7428)
Browse files Browse the repository at this point in the history
* Document when to use pluginFfi vs plugin

Adds documentation from the questions answered in:

* flutter/flutter#108974

* clarify sentence
  • Loading branch information
dcharkes authored Aug 17, 2022
1 parent 88c6a65 commit b951e81
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/development/packages-and-plugins/developing-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,16 @@ a section in [Supporting the new Android plugins APIs][].
If you want to develop a package that calls into native APIs using
Dart's FFI, you need to develop an FFI plugin package.

Both FFI plugin packages and (non-FFI) plugin packages support
bundling native code, but FFI plugin packages do not support
method channels and do include method channel registration code.
If you want to implement a plugin that uses both method channels
and FFI, use a (non-FFI) plugin. You can chose per platform to
use an FFI or (non-FFI) plugin.

FFI plugin packages were introduced in Flutter 3.0, if you're
targeting older Flutter versions, you can use a (non-FFI) plugin.

### Step 1: Create the package

To create a starter FFI plugin package,
Expand Down

0 comments on commit b951e81

Please sign in to comment.