Flutter Course
https://www.youtube.com/watch?v=3kaGC_DrUnw
07:11 Widget is Capital Letter. Argument use lowercase letter.
07:22 Data Types
Map myMap = { } //he's call this "map"
Map myMap<String, dynamic> = { } //
09:33 showDebugCheckedModeBanner: false. This is in build
CTRL space is a good one
11:43 end code with "," will tidy list up.
12:17 right click Container
13:31 decoration argument... but he says "BoxDecoration" is better
13:35 BorderRadius.circular(25.0) ERROR! can't have color AND decoration
15:12 padding (is inside)
double.infinity.. red box went massive.
16:22 margin. Double box yellow in red.
16.52 Column has list of children. Contain is one.
double.infinity was a problem with 2 children. Debug window helped.
disappeared. Added height came back.
19:52 mainAxis and crossAxisAlignment.start and end.
21:42 MainAxisSize
22:13 Row
24:00 CrossAxis is opposite axis to whatever it already, row or col.
25:31 Center
This was done by adding child into Container. Adding Center widget, that too had a child with Text widget Text("kuihuibhu")
27:18 Images. Use VS click ( [cool tip]
body:Image.network("url")
28:52 wanted the image full height:double.infinity.
fit: BoxFit.cover,
29:35 /assets/image & fonts
Image.asset("/path") but don't work.
find pubspec.yml (note alignment in this file)
change to - assets/images/
Might have to "STOP" and "START"
https://youtu.be/3kaGC_DrUnw?si=fGrIcroR-oRl7Op2&t=1936
Comments
Post a Comment