We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
大佬好。 我在调用iOS的方法时,方法内部使用了一些UIView,但是报错了,说是不在主线程。 所以想问一下,dart -> native,默认会在非主线程调用吗?怎么样可以让这个调用发生在主线程呢?
The text was updated successfully, but these errors were encountered:
默认是同步调用到 Native,那么此时是在 flutter-ui 线程,并不是 iOS 的主线程。所以 DartNative 也支持切线程(GCD),比如这个例子:
dart_native/dart_native/example/lib/ios/unit_test.dart
Line 175 in dc99cfd
Sorry, something went wrong.
No branches or pull requests
大佬好。
我在调用iOS的方法时,方法内部使用了一些UIView,但是报错了,说是不在主线程。
所以想问一下,dart -> native,默认会在非主线程调用吗?怎么样可以让这个调用发生在主线程呢?
The text was updated successfully, but these errors were encountered: