Chapter 2 (JY) - Flutter & Dart Basics (Part 2)
Chapter 2 (JY) - Flutter & Dart Basics (Part 2)
Dart
Fundamentals
(Part 2)
6002CEM
Mobile App Development
Flutter & Dart Learning Steps
Watching
effective
Attending tutorial videos Studying
lecture & (YouTube) – examples / Doing hands-
practical the art of tutorials / on projects.
classes. choosing the sample
right video to
watch.
The Art of Effective Learning
Important activities that ensure your success in learning Dart
language:
Watching
effective
Attending tutorial videos Studying
lecture & (YouTube) – examples / Doing hands-
practical the art of tutorials / on projects.
classes. choosing the sample
right video to
watch.
The Art of Effective Learning
Important activities that ensure your success in learning Dart
language:
Watching
effective
Attending tutorial videos Studying
lecture & (YouTube) – examples / Doing hands-
practical the art of tutorials / on projects.
classes. choosing the sample
right video to
watch.
The Art of Effective Learning
Important activities that ensure your success in learning Dart
language:
Watching
effective
Attending tutorial videos Studying
lecture & (YouTube) – examples / Doing hands-
practical the art of tutorials / on projects.
classes. choosing the sample
right video to
watch.
Learning Outcomes
Example:
• Go to:
• https://dartpad.dev/
Basic Data Types (Most Used)
• String
• int
• double
• bool
Math Operators
if(conditions){
……
}else if(conditions){ Which
…… programming
}else{ language is
…… using the same
} syntax as this?
Conditional Statements - Example
}else{
switch(grade){
case “A”:
print(“Excellent”);
break;
case “B”:
print(“Good”);
break;
case “C”:
print(“Average”)
break;
case “D”:
print(“Poor”)
break;
default:
print(“Invalid Grade”)
}
For Loop
}
For Loop – Example 1
void greet(){
print(“Hello, World!”);
}
Function – Example 2 (With Parameter but Without Return Type)
Or
Map user = {
'name': 'Selena G',
'age': 88,
'height': 168,
};