Skip to content

sammy6378/Dart-lessons

Repository files navigation

Dart Lessons

This repository contains lessons and examples for learning Dart.

Running Dart Code in VSCode

Prerequisites

  1. Install Dart SDK:

    • Download and install the Dart SDK from the official Dart website.
  2. Install Visual Studio Code:

  3. Install Dart Extension for VSCode:

    • Open VSCode.
    • Go to Extensions (Ctrl+Shift+X or Cmd+Shift+X on Mac).
    • Search for "Dart" and install the Dart extension.

Creating and Running Dart Projects in VSCode

  1. Create a New Dart Project:

    • Open the terminal in VSCode.
    • Navigate to your desired directory.
    • Run the following command to create a new Dart project:
      dart create my_project
    • Navigate into the project directory:
      cd my_project
  2. Open the Project in VSCode:

    • Open the project folder in VSCode:
      code .
  3. Running Dart Code:

    • Open the Dart file you want to run (e.g., bin/main.dart).
    • Press F5 to start debugging and run the Dart code, or use the terminal:
      dart run

Troubleshooting


Feel free to explore the Dart lessons and examples provided in this repository. Happy coding!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages