Skip to content

Dart Complete Course is a structured learning repository covering fundamental to advanced Dart concepts. It includes hands-on projects, essential topics like variables, operators, control flow, functions, and more. Perfect for beginners and those looking to enhance their Dart skills! πŸš€

Notifications You must be signed in to change notification settings

Abdullah-Niaz/Dart-Complete-Course

Repository files navigation

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! 🎯

About

Dart Complete Course is a structured learning repository covering fundamental to advanced Dart concepts. It includes hands-on projects, essential topics like variables, operators, control flow, functions, and more. Perfect for beginners and those looking to enhance their Dart skills! πŸš€

Topics

Resources

Stars

Watchers

Forks

Languages