Dart study materials and exercises from Kak Faiz (Politeknik IDN), originally for class — now shared with you. Congrats and happy learning!
Tentang Portofolio Ini
Dokumentasi & Alur Fitur
Dart Lesson for Beginners
âšī¸ 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
-
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.
đ 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
-
Fork this repository
-
Create a new branch:
git checkout -b improve-docs
-
Commit your changes:
git commit -m "improve: added better example for loops"
-
Push the branch:
git push origin improve-docs
-
Open a Pull Request â
đĢ Contact
đ License
This repository is open-source and licensed under the MIT License.
See the LICENSE file for more details.