flutter / website

Flutter documentation web site
https://docs.flutter.dev
Other
2.84k stars 3.24k forks source link

☂️ Refactor Plugins and FFI pages #7123

Open mit-mit opened 2 years ago

mit-mit commented 2 years ago

Page URL

https://docs.flutter.dev/development/packages-and-plugins/developing-packages#plugin-ffi

Describe the problem

The plugins and and FFI docs could use a bit of cleanup.

Relevant pages are:

Issues include:

  1. The 'Developing packages and plugins' page is getting very, very long
  2. There is duplication related to FFI across these three pages

Should include:

timsneath commented 2 years ago

Also see video https://www.youtube.com/watch?v=05Wn2oM_nWw, referenced in https://github.com/flutter/website/issues/6511

parlough commented 1 year ago

We used to have a singular page at /development/platform-integration/c-interop and people keep finding the dead link. Now we don't have any singular entry point for Flutter FFI that's not tied to a specific platform.

Sounds like we should introduce an FFI for Flutter overview page, which can reduce some of the location and be the new destination for that link.

atsansone commented 1 year ago

From #9072

@mit-mit

Our documentation for how to create plugins (i.e. packages with platform specific code) have grown over time as we added more and more technical capabilities. They are now spread out over two main pages:

Each of these are in different places in the left menu, are each very long, and quite complicated.

I think it may be worthwhile to break this up into some smaller, more targeted pages, each handling just a single topic. For example:

1) method channels 2) Dart direct interop (FFI/JNIgen/etc.) 3) pigeon 4) package basics 5) plugins (i.e. packages with platform specific code) 6) federated plugin packages