mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() This PR introduces the `dartFileName` parameter for platform plugin configurations with Dart platform implementations. This new parameter allows plugin developers to specify a custom path to the file where the `dartPluginClass` is defined. **Implementation is opt-in**. `dartFileName` is completely optional and is taken in account only with `dartClassName`. Possibility to set `dartClassName` without `dartFileName` remains. **Implementation is backward compatible** â existing configurations using only `dartClassName` remain fully supported. If `dartFileName` is omitted, the system falls back to the previous behavior of deriving the file name from the plugin name. ## Example ```yaml flutter: plugin: platforms: some_platform: dartPluginClass: MyPlugin dartFileName: 'src/my_plugin_implementation.dart' ``` fixes #152833 |
||
---|---|---|
.. | ||
migrations | ||
application_package_test.dart | ||
plugins_test.dart | ||
visual_studio_test.dart | ||
visual_studio_validator_test.dart | ||
windows_device_test.dart | ||
windows_workflow_test.dart |