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

Isolate name in the call stack shown as main in vs code #41

Open
abdimussa87 opened this issue Dec 30, 2023 · 2 comments
Open

Isolate name in the call stack shown as main in vs code #41

abdimussa87 opened this issue Dec 30, 2023 · 2 comments

Comments

@abdimussa87
Copy link

abdimussa87 commented Dec 30, 2023

Whenever I try and run the example code, the call stack found in the debug panel shows it being main and not the isolate name. Is this on purpose? I tried using the inbuilt Isolate.spawn and it does show the method name in the call stack. Is there a way to programmatically check if the method to be called in the isolate is indeed being called from the isolate or the main thread?

@deakjahn
Copy link
Owner

Frankly, now that this plugin is no longer necessary because, starting from Flutter 3.7, isolates and even background isolates can directly use plugins, I didn't pay attention. I guess I'd need to mark it obsolete... Although, the "handler" part still has advantages.

@abdimussa87
Copy link
Author

There's this function in FlutterLocalNotifications plugin that cancels all scheduled notifications _flutterLocalNotification.cancelAll();. Whenever I try to run this function in either an isolate or on the main, it keeps hanging the UI. I was wondering how this can be resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants