Learn Dart & Flutter from Scratch

What is Dart?

Dart is an open-source programming language created by Google. It's optimized for building mobile, desktop, web, and server apps.

It is an object-oriented, class-based language with a C-style syntax.

What is Flutter?

Flutter is an open-source UI toolkit also created by Google. It is used to build natively compiled applications for mobile, web, and desktop from a single codebase.

Start Learning Flutter

What is the Relation Between Dart and Flutter?

Flutter uses Dart as its programming language.

When you develop apps using Flutter, you're writing Dart code to define UI and app logic.

Required Dart Concepts for Flutter Mobile App Development

  1. Variables and Data Types
  2. Functions
  3. Classes and Objects
  4. Oops
  5. Constructors
  6. Inheritance
  7. Interfaces and Abstract Classes
  8. Lists and Maps
  9. Loops and Conditions
  10. Exception Handling
  11. Futures & Async/Await
  12. Null Safety
  13. Getters and Setters

🔹 Understanding main() Function in Dart

The main() function is the entry point of every Dart program. When your app runs, Dart looks for this function and starts executing from there.

void main() {
  print('Hello, Dart!');
}

Code Breakdown:

📦 Where does print() show output?

When you run a Dart program, the print() output appears in the terminal or console.

In Flutter development (in VS Code or Android Studio), you can see this output in the Debug Console.

💡 What is a Terminal?

The Terminal (or Command Line) is a place where developers can run commands, execute code, and see output or errors.

🔗 Reference Links: