Skip to content

Dart study materials and exercises from Kak Faiz (Politeknik IDN), originally for class — now shared with you. Congrats and happy learning!

License

Notifications You must be signed in to change notification settings

ridhsuki/dart_lesson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dart Logo

Dart Lesson for Beginners

License GitHub Stars Dart Author

ℹ️ About

This repository is a collection of Dart basic learning materials, written in the form of .dart files to help beginners learn Dart step by step, from zero to confident!

All files are located inside the /bin folder and are created as part of my learning journey in Semester 2 — with guidance from @abdillahfaiz as my mentor. 🙏


📘 What You'll Learn

This repo covers beginner-friendly Dart topics such as:

  • ✅ Hello World
  • ✅ Variables & Comments
  • ✅ Data Types & Type Conversion
  • ✅ Arithmetic & Assignment Operators
  • ✅ Increment/Decrement
  • ✅ Collections (List, Set, Map)
  • dynamic, var, final, const, late
  • ✅ Comparison & Logical Operators
  • ✅ Control Flow: if-else, switch-case
  • ✅ Loops: for, for-in, while, do-while
  • ✅ Null Safety, Null Check, Default Value, Ternary
  • ✅ stdout & stdin
  • ✅ Functions: basic, parameters, return, short expression, inner, higher-order, anonymous
  • ✅ OOP: Class, Object, Constructor

Each file is written with simple English explanations and clear code examples to help you understand better.


📂 Folder Structure

dart_lesson/
│
├── bin/              # ← All Dart learning materials here
│   ├── 00_hello_world.dart
│   ├── 01_variables.dart
│   ├── 02_comments.dart
│   ├── 03_type_data.dart
│   ├── 04_type_conversion.dart
│   ├── 05_arithmathic_operator.dart
│   ├── 06_assignment_operator.dart
│   ├── 07_increment_decrement.dart
│   ├── 08_collections.dart
│   ├── 09_dynamic.dart
│   ├── 10_var.dart
│   ├── 11_final_const_late.dart
│   ├── 12_comparison_operators.dart
│   ├── 13_logical_operators.dart
│   ├── 14_if_else.dart
│   ├── 15_switch_case.dart
│   ├── 16_loops.dart
│   ├── 17_null_and_ternary.dart
│   ├── 18_stdout_stdin.dart
│   ├── 19_functions.dart
│   ├── 20_oop_class_object.dart
│   └── 21_constructor.dart
│
├── lib/              # (default folder, not used here)
├── test/             # (default folder, not used here)
├── pubspec.yaml      # Dart project configuration
├── pubspec.lock      # Auto-generated dependency file
├── .gitignore
├── analysis_options.yaml
├── CHANGELOG.md
└── README.md         # ← This file

📌 All learning materials are inside the bin/ folder and follow a numbered sequence from beginner topics to object-oriented programming.


🚀 How to Use

  1. Make sure you have Dart SDK installed:
    👉 https://dart.dev/get-dart

  2. Clone this repository to your local machine:

    git clone https://github.com/Ridhsuki/dart_lesson.git
    cd dart_lesson
  3. Run any .dart file from the /bin folder:

    dart run bin/19_functions.dart

    📌 Examples:

     dart run bin/00_hello_world.dart
     dart run bin/08_collections.dart
     dart run bin/16_loops.dart
     dart run bin/21_constructor.dart

💡 You can explore each file from the beginning (00) to the last, or run them one by one based on the topic you're learning.


📎 Supporting Material (Slide)

This repository is also supported by a visual slide deck to help beginners understand Dart concepts more clearly:

🎞️ Dart Basics Slide (via Canva)

This slide includes summarized explanations of key Dart topics in a clean and beginner-friendly layout.

Slide from @abdillahfaiz.


👨‍🏫 About This Project & Credits

This repository was created as part of my self-study journey in Semester 2 at IDN Polytechnic, to help myself and others learn the basics of Dart programming in a structured and beginner-friendly way.

Special thanks to:

🧑‍🏫 @abdillahfaiz — for being my mentor and guide during this learning journey.

I hope this repository can be useful for many other students and self-learners who want to start learning Dart — especially before jumping into Flutter development!


❤️ Contribute

Feel free to contribute if you:

  • Found a mistake or typo
  • Want to improve explanations or add new examples
  • Have better or simpler ways to explain a topic
  • Want to add exercises or practice challenges

How to Contribute

  1. Fork this repository

  2. Create a new branch:

    git checkout -b improve-docs
  3. Commit your changes:

    git commit -m "improve: added better example for loops"
  4. Push the branch:

    git push origin improve-docs
  5. Open a Pull Request ✅


📫 Contact

Website GitHub Instagram LinkedIn YouTube Threads Facebook BlueSky TikTok


📄 License

This repository is open-source and licensed under the MIT License.
See the LICENSE file for more details.

About

Dart study materials and exercises from Kak Faiz (Politeknik IDN), originally for class — now shared with you. Congrats and happy learning!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages