Flutter: Difference between revisions

Jump to navigation Jump to search
142 bytes added ,  27 September 2018
m
no edit summary
add Programming Notes
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 13: Line 13:
''runApp()'' function takes the given Widget and makes it the root of the widget tree. The following makes the Center widget the root.
''runApp()'' function takes the given Widget and makes it the root of the widget tree. The following makes the Center widget the root.


<source lang="dart">
<source lang="dart" highlight="3">
void main() {
void main() {
runApp(
runApp(
Line 23: Line 23:
}
}
</source>
</source>
A widget's main job is to implement a '''build''' function, which describes the widget in terms of other, lower-level widgets.

Navigation menu