flutter_plugin_generator: ^0.0.9 copied to clipboard
Flutter Plugin generator generates a plugin implementation for you.
- Added support to serialize/deserialize enums and Sets.
- Included header in the generated code.
- Added support to
- MethodChannels are no longer static in any case.
- The abstract plugin class will need to have a constructor, it can be as simple like
PlatformPlugin();, but we need it.
- Fields are no longer supported, always use getters instead.
- Serialization and deserialization of pretty much any combination of Lists, Maps and Classes (without generics).
- Removed example apk.
Updated analyzer to 0.37.1.
Improved generated code formatting.
@FlutterPlugin()annotation should be placed at every plugin class, it is obligatory to write a plugin.
MethodCallPluginwas renamed to
MethodChannelFutures, this annotation is no longer obligatory to write a plugin. This means you can have a plugin with only EventChannels.
- Having a declared
Stream<T>field without an annotation
EventChannelStreamno longer raise an exception. After thinking about flexibility I reached the conclusion that it could limit plugin developments.
- Added support to EventChannel using
EventChannelStreamannotation in fields and getters.
- Added support to use fields and getters for MethodChannel calls.
- Included README.md.
- Updated documentation.
- Added support to filter which platforms the plugin has support.
- Renamed build.dart to flutter_plugin_generator.dart to conform with pub.dev warning.
- Breaking change Now the generated plugin will have a static const MethodChannel shared across instances, unless at least one path replacement is the in the [MethodCallPlugin.channelName] string.
- Removed Flutter dependency.
- Added the ability to list in which platforms a given method will work.
- Better type matching for Map inner types.
- Downgrade meta lib version.
- Improved type matching for maps and lists.
- Included some documentation.
- Initial release.