How I created my app with Flutter
Have been reading a lot about Flutter lately. It is easy, intuitive, has a robust support and easy to learn tutorials, etc., etc. But the question is how can I create an app with Flutter? Let me create a real app and share the steps with you. Let us learn together in this journey.
What software I am using
- I am using a Windows 10.
- We have a lot of IDEs which help to develop Flutter apps. I am using Android Studio. Here's how to install-
- Click on this link.
- However, Flutter has a whole bunch of IDEs to be developed on. You may choose any one of them.
Flutter uses the Dart programming language. Let us have a quick Dart tutorial.
1. Let us write Hello world using Dart.
main(){
print(Hello world);
}
The main() command is important. Without this, the code won't compile.
Whatever you put in print() command will show in the output.
Every dart statement must end with a semicolon (;).
Dart is case sensitive.
The output of this code will be Hello world
2. Let us add a comment in Dart.
Dart codes can be separated by using comments. These are lines in between the codes which will not be executed.
If you want to add only one line of comment, use // at the beginning of the line like this.
// I am commenting
If you want to add multiple lines of comments, use /* */ like this.
/* Comments are ways to improve readability. I like to add comments between chunks of code. They are like adding space between two lines to improve readability. */
3. Object orientation
First let us understand a bit about what object orientation is in general. Then we will understand object orientation in Dart in particular. Object orientation concepts should be strong for any developer who is going to use Dart.
Comments
Post a Comment