app_widget_platform_interface

Last updated:

0 purchases

app_widget_platform_interface Image
app_widget_platform_interface Images
Add to Cart

Description:

app widget platform interface

app_widget_platform_interface #
Common platform interface for app_widget plugin.
Usage #
To implement a new platform-specific, extend AppWidgetPlatform with a registerWith as static method that set default
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
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.
We try to avoid breaking changes at all. Try to reuse the existing interface to keep the api clean whenever possible.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.