Skip to content

Latest commit

 

History

History
109 lines (81 loc) · 3.58 KB

README.md

File metadata and controls

109 lines (81 loc) · 3.58 KB

Dart Complete Course

Welcome to the Dart Complete Course repository! 🚀 This repository provides a structured learning path for mastering Dart programming language, covering fundamental concepts, hands-on projects, and advanced topics.

📥 Installation Guide

Install Dart SDK (Windows)

Using Chocolatey (Windows Package Manager):

  1. Open PowerShell as Administrator (Win + X → Select PowerShell as Administrator).
  2. Run the following command to install Dart SDK:
    choco install dart-sdk
  3. Set the Environment Variable for the SDK bin:
    • Open System Variables (Search ENV in Windows Search).
    • Navigate to Path and click New.
    • Enter the path to the SDK bin: C:\tools\dart-sdk\bin.
    • Click OK.
  4. Verify installation by running:
    dart --version
    If the output is similar to:
    Dart SDK version: 3.6.1 (stable) (Tue Jan 7 09:50:00 2025 -0800) on "windows_x64"
    Then, the installation was successful! 🎉

Upgrade Dart SDK (if needed)

choco upgrade dart-sdk

🔹 Introduction to Dart

Dart is a client-optimized programming language developed by Google for building mobile, desktop, web, and server applications. It is:

  • Object-oriented
  • Class-based
  • Garbage collected
  • C-style syntax
  • Compiles to native code or JavaScript

🚀 Dart Entry Point

Every Dart program starts execution from the main function:

void main() {
  print("Hello, World!");
}

📝 Dart Comments

Dart supports both single-line and multi-line comments:

  • Single-line comment: // This is a comment
  • Multi-line comment:
    /*
      This is a
      multi-line comment
    */

📂 Course Content

This course covers the following topics:

No. Topic Description
01 Variables Learn about Dart variables and data types.
02 Operators Understand different operators in Dart.
03 Conditional Expressions Explore conditional expressions and decision-making.
04 String String methods and properties in Dart.
05 IO (Input/Output) Handling user input and output in Dart.
06 Hands-on Practice Practical projects (e.g., Temperature Converter).
07 Lists Properties & methods of lists in Dart.
08 Sets Working with sets, including adding/removing elements.
09 Map Introduction to maps and their functionalities.
10 Control Flow Statements Loops, conditions, and skipping logic.
11 Functions Understanding functions, parameters, and return types.

🎯 Summary of Commands

Command Purpose
dart --version Check Dart version
dart run filename.dart Run a Dart script
dart compile exe filename.dart Compile Dart to EXE
main.exe Run the compiled executable

🤝 Contributing

Contributions are welcome! Feel free to fork this repo, create pull requests, or suggest improvements.

Happy coding! 🎯