Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Native mobile application using google dart language

How to develop a native mobile applications for android using dart language ? Is it possible?

like image 221
rejo Avatar asked Oct 08 '13 09:10

rejo


3 Answers

Yes this is possible. A Dart application can be compiled to a regular JS/HTML app and packaged as such.

For a real world example see Veterninary Anesthesia in the Play store.This app was written in Dart and an installable phone application version was build with PhoneGap. The developer's blog extensively details how it was done.

Native Dart apps may come eventually. There's some reports of people compiling the Dart VM on Android. Currently, the Dart team are focussing on the Web client.

like image 76
daftspaniel Avatar answered Oct 14 '22 19:10

daftspaniel


Necronomicon :)

I know this is an old post, but for those who find it... Now there is an option to create native apps for Android and iOS using Flutter. Flutter Official Website ~> https://flutter.dev/

Update[July-19]: Now you can develop app/apps for all platform(including web) with a single code base using flutter.

Flutter is a new project to help developers build high-performance, high-fidelity, mobile apps for iOS and Android from a single codebase

By now it is in early stage, but looks very promising.

Update[September-2020]: Alfa support for Windows, MacOS and Lunix announced https://medium.com/flutter/announcing-flutter-windows-alpha-33982cd0f433

like image 33
dmikam Avatar answered Oct 14 '22 18:10

dmikam


There would be some tools like PhoneGap, where you could write Dart, compile to JS, then use it to convert this whole thing to a native app. The question is if this is really worth it - I never tried it, but I could imagine that with Dart you'd need to use JS-Interop extensively, if it even works altogether - the tool might not even be able to use Dart's optimized JS output. Anyway, if you really want to do this, this might be worth a try.

like image 32
MarioP Avatar answered Oct 14 '22 18:10

MarioP