#flutter_federated_plugin_template
A manually created template for federated flutter plugins.
You can use this template to create federated plugins until flutter create
is able to create plugins in federal structure.
First, clone this repository, then do the following:
- Delete all folders belonging to platforms you don't want to support
- Create a file named
FEDERATED_LICENSE_TEMPLATE
in this folder, which will automatically be copied to all subfolders - Edit
FEDERATED_README_TEMPLATE.md
andFEDERATED_CHANGELOG_TEMPLATE.md
to fit your needs - Run
dart generate.dart plugin_name bundle_identifier version repo_base
with yourplugin_name
,bundle_identifier
(e.g.eu.epnw
) andversion
(e.g.1.0.0
) in this folder to create the template structure. If you plan to publish your package on github you can setrepo_base
so therepository
fields in allpubspec.yaml
are set up correctly. If you omit it, norepository
field is set. - Manually check the
NAME/lib/src/workarounds
folder and remove code form there that you don't need. - Implement your plugin (and don't forget to implement
NAME_paltform_interface/lib/src/NAME_platform_unsupported.dart
as well)