Lecture 01 ยท Fundamentals
Introduction to Dart & Setup
What is Dart?
Dart is a modern, object-oriented programming language developed by Google. It is optimized for client-side development and powers Flutter, the leading framework for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.
Why Dart?
- Fast development with hot reload
- Excellent performance
- Strong type system with null safety
- Cross-platform with Flutter
Installation
Download the Dart SDK from dart.dev or install Flutter (which includes Dart).
terminal
dart --version flutter --version
Your First Dart Program
hello.dart
void main() { print("Hello, Dart Mastery!"); print("Ready to build cross-platform apps!"); }
Output
Hello, Dart Mastery!Ready to build cross-platform apps!
๐ฏ Exercise 1.1
Install Dart SDK or Flutter. Create a new file hello.dart and run it with
dart run hello.dart.