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. 🙏
This repo covers beginner-friendly Dart topics such as:
dynamic
, var
, final
, const
, late
Each file is written with simple English explanations and clear code examples to help you understand better.
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.
Make sure you have Dart SDK installed:
👉 https://dart.dev/get-dart
Clone this repository to your local machine:
git clone https://github.com/Ridhsuki/dart_lesson.git
cd dart_lesson
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.
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.
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!
Feel free to contribute if you:
Create a new branch:
git checkout -b improve-docs
git commit -m "improve: added better example for loops"
git push origin improve-docs
This repository is open-source and licensed under the MIT License.
See the LICENSE file for more details.