You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a specialized package that includes platform-specific implementation code for
10
-
Android and/or iOS.
11
-
12
-
For help getting started with Flutter development, view the
13
-
[online documentation](https://flutter.dev/docs), which offers tutorials,
14
-
samples, guidance on mobile development, and a full API reference.
7
+
To implement a new platform-specific, extend `AppWidgetPlatform` with a `registerWith` as static method that set default
8
+
`AppWidgetPlatform.instance = AppWidgetMyPlatform();`. And then create another class `AppWidgetMyPlatformlugin` with an implementation that performs the platform-specific behavior. Finally add your platform initialization in AppWidgetPlugin private
9
+
constructor to reinstantiate with the platform specific implementation `AppWidgetPlatform.instance = AppWidgetMyPlatformPlugin();` when the app run. This is because the plugin registrar will register the first intance before `FlutterWidgetBindings.ensureInitialized()` and will throw an error if we try to access any `methodChannel`.
15
10
11
+
We try to avoid breaking changes at all. Try to reuse the existing interface to keep the api clean whenever possible.
0 commit comments