-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Can typings
be used in a flutter app targeting iOS/Android?
#9
Comments
Typings should work with Flutter. Is this the problem you are having? |
No I think my issue is maybe a miss-understanding of the capabilities js_interop. I used That way my Flutter Android/iOS App can call go code directly, which is really useful, So when I saw js_interop and |
My question is, would it be possible to have a flutter app compile to Andoird/iOS that calls javascript? import 'package:typings/core.dart' as js;
//...
void my_dart_function() {
// Call javascript from dart to calculate the sqrt of 9
final num sqrtOfNine = js.Math().sqrt(9);
print(sqrtOfNine);
} |
I am no Flutter expert but I think it can with webviews or Flutter Web. |
Creating a flutter example CounterApp and adding
typings
will not compile to Android.Maybe I'm missing something, or the pub.dev metadata is wrong and should only state WEB as supported platform.
The text was updated successfully, but these errors were encountered: