Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does flutter use dart?

Tags:

flutter

dart

I understand that there could be many reasons but when the developer community has already adopted ES6 and is working hard to make it better then why dart and not JS?

Is there anything special which makes dart such a good fit for Flutter?

like image 656
khajaamin Avatar asked Aug 30 '18 10:08

khajaamin


People also ask

Do I have to use Dart with Flutter?

The popular Flutter toolkit relies on the Dart language, so developers writing Flutter apps—for Android, iOS, or other targets—use Dart. To find a list of Flutter apps, visit the Flutter showcase. Google engineers use Dart to create many apps, including some that are essential to Google's business.

Why is Dart used for?

Dart is a programming language designed for client development, such as for the web and mobile apps. It is developed by Google and can also be used to build server and desktop applications.


1 Answers

That's an FAQ and already answered extensively

  • https://flutter.io/faq/#why-did-flutter-choose-to-use-dart
  • https://hackernoon.com/why-flutter-uses-dart-dd635a054ebf

I'm not sure why you wrote ES6 and "dart js".

Flutter has nothing to do with JavaScript.
While Dart can be compiled to JavaScript, Flutter doesn't use this feature.

For Flutter Dart is compiled to native binary code.

like image 87
Günter Zöchbauer Avatar answered Oct 18 '22 19:10

Günter Zöchbauer