Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update home_widget.dart #309

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions packages/home_widget/lib/src/home_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,10 @@ class HomeWidget {
/// Register a callback that gets called when clicked on a specific View in a HomeWidget
/// This enables having Interactive Widgets that can call Dart Code
/// More Info on setting this up in the README
static Future<bool?> registerInteractivityCallback(
FutureOr<void> Function(Uri?) callback,
) {
final args = <dynamic>[
ui.PluginUtilities.getCallbackHandle(callbackDispatcher)?.toRawHandle(),
ui.PluginUtilities.getCallbackHandle(callback)?.toRawHandle(),
static Future<bool?> registerInteractivityCallback(FutureOr<void> Function(Uri?) callback) {
final args = <int>[
ui.PluginUtilities.getCallbackHandle(callbackDispatcher)?.toRawHandle() ?? 0,
ui.PluginUtilities.getCallbackHandle(callback)?.toRawHandle() ?? 1,
];
return _channel.invokeMethod('registerBackgroundCallback', args);
}
Expand Down
Loading