My journey of learning Flutter from scratch and building real-world apps.

Flutter

Day 1 — Flutter Journey Begins

What I learned:

  • What is Flutter and Dart
  • How to setup Flutter environment
  • Created my first Hello World app

What is Flutter?

Flutter is Google's UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.

Day 2 — Dart Language Basics

What I learned:

  • Dart is case sensitive
  • Statements and Semicolons
  • Comments in Dart
  • Dart Keywords
  • Variables and Data Types
  • Boolean in Dart

Dart is Case Sensitive

In Dart, name and Name are two different things. Always be careful with uppercase and lowercase letters.

Statements and Semicolons

Every line of instruction in Dart is called a statement. Each statement must end with a semicolon ;

void main() {
  print("Hello Dart");
}

Comments in Dart

Comments are notes in your code that Dart ignores when running.

// This is a single line comment

/* This is a
   multi-line comment */

Dart Keywords

Keywords are reserved words in Dart that have special meaning. Examples: void, var, int, double, bool, String, if, else, return

You cannot use keywords as variable names.

Variables and Data Types

A variable is a container that stores data. Dart has the following data types:

TypeDescriptionExample
intWhole numbers10, 25
doubleDecimal numbers3.14
StringText"Hello"
boolTrue or Falsetrue, false
void main() {
  var intNumber = 10;
  print(intNumber); // Output: 10
}

Variable Name Rules

  • Variable names are case sensitive — sum and Sum are different
  • Use camelCase — intNumber, myName
  • Keep names short and meaningful
  • Cannot start with a number

Boolean in Dart

A boolean stores only two values — true or false.

void main() {
  bool isFlutterFun = true;
  bool isDartHard = false;

  print(isFlutterFun); // Output: true
  print(isDartHard);   // Output: false
}

Key Takeaway

Dart is a strongly typed, case-sensitive language. Every statement ends with ; and variables must have proper names following camelCase convention.