File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/development/packages-and-plugins Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -614,6 +614,16 @@ a section in [Supporting the new Android plugins APIs][].
614
614
If you want to develop a package that calls into native APIs using
615
615
Dart's FFI, you need to develop an FFI plugin package.
616
616
617
+ Both FFI plugin packages and (non-FFI) plugin packages support
618
+ bundling native code, but FFI plugin packages do not support
619
+ method channels and do include method channel registration code.
620
+ If you want to implement a plugin that uses both method channels
621
+ and FFI, use a (non-FFI) plugin. You can chose per platform to
622
+ use an FFI or (non-FFI) plugin.
623
+
624
+ FFI plugin packages were introduced in Flutter 3.0, if you're
625
+ targeting older Flutter versions, you can use a (non-FFI) plugin.
626
+
617
627
# ## Step 1: Create the package
618
628
619
629
To create a starter FFI plugin package,
You can’t perform that action at this time.
0 commit comments