Open
Description
Page URL
https://docs.flutter.dev/packages-and-plugins/developing-packages/
Page source
https://github.com/flutter/website/tree/main/src/content/packages-and-plugins/developing-packages.md
Describe the problem
When you create a Flutter plugin, you configure it in the pubspec.yaml
file. For example:
flutter:
plugin:
platforms:
ios:
pluginClass: HelloPlugin
sharedDarwinSource: true
This configuration is mostly explained in this guide: https://docs.flutter.dev/packages-and-plugins/developing-packages
Expected fix
It would be useful to have a reference page that contains a table with entries for all possible configuration values. For example:
Configuration path | Type | Example | Description |
---|---|---|---|
flutter.plugin.platforms.<platform>.pluginClass |
String | HelloPlugin |
The native type that registers the plugin. On iOS, this must implement FlutterPlugin . |
flutter.plugin.platforms.<ios/macos>.sharedDarwinSource |
Bool | true |
Used to share native code for the iOS and macOS platforms. If true , uses the darwin directory for native code.If false , uses the macos directory for macOS plugins and the ios directory for iOS plugins. |
Additional context
This was suggested by @jonasf here: https://github.com/dart-lang/pana/pull/1412/files#r1816312072
I would like to fix this problem.
- I will try and fix this problem on docs.flutter.dev.
Metadata
Metadata
Assignees
Labels
No labels