-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
p: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools package
Milestone
Description
Currently the native interop via PlatformMessages requires registering the native endpoint with FlutterView, e.g.:
public class MyActivity extends FlutterActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
new BatteryPlugin(this).installInto(getFlutterView());
}
This will be cumbersome once we have published plugins that developers can declare a dependency on (#7816). They would have to write native code to 'wire up' the native code that came from the plugin.
Ideally they should just have to declare the dependency in pubspec.yaml, call flutter packages get, and then be ready to call the plugin's Dart interface and have all the wiring handled automagically as part of building/running the app.
jtrunick and rxlabzxster
Metadata
Metadata
Assignees
Labels
p: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools package