Execute Only Dart Code After Installing Flutter
I do not speak well English, my default language is French, so if there are small mistakes, let me know …
Dart 🐦?
Dart (originally called Dash4) is a web programming language developed by Google. Its original purpose is to replace JavaScript to become the new lingua franca of web development, however, the current focus of developers is that Dart code can be converted to JavaScript code compatible with all modern browsers, as well as multi-application development.
Dart can also be used for server-side programming as well as mobile application development (via the Flutter API).
And we will have to know that Dart has a long history … It was already almost dead and Flutter made he resuscitate from death
We see how Dart Evolves in time and more and more dart becomes one of the best languages to learn in 2019 see even 2020.
No more blah blah, let’s get to the basics anyway 🕺💃
⚠️I am working on Linux Ubuntu 18.04
1. Install Flutter
obviously to be able to use flutter, you will have to install Flutter
And in the link above, it is largely well explained the steps of the installation …
2. Locate Flutter Installation
you have it installed … it’s good now, just find where you installed the Flutter project in your system
3. Add Dart to environment variables
in the /home/ folder of your Linux you would find the file .bashrc (in case you use Bash), and if you do not see this file you can create it.
And once in the open file, at the last line of the file add the code that follows, obviously by moving against the location of flutter and then add the path to flutter :
- export PATH=”$PATH:/path/to/flutter/bin/cache/dart-sdk/bin/”
- and launch a new terminal
4. Rejoice in dart simply
And then write in your terminal: “dart” and then press tab, you will have to see the same thing as me anyway.
5. Hello world
After having our code hello world, we will run it from the terminal as in the good old days … 😄
Thanks
Thank you very much for reading me, I hope you liked the article … Without further ado, we read in the next article 😋😋😋😋…
Best.