Skip to content

Commit 7bbec03

Browse files
PROGrandthisissandipp
authored andcommitted
Update en-US.mdx
1 parent ec142a2 commit 7bbec03

File tree

1 file changed

+1
-1
lines changed
  • questions/what-is-the-difference-between-main-and-runapp-functions-in-flutter

1 file changed

+1
-1
lines changed

questions/what-is-the-difference-between-main-and-runapp-functions-in-flutter/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ title: What is the difference between `main()` and `runApp()` functions in Flutt
44

55
The `main()` function tells Dart where the program starts, and it must be in the file that is considered the "entry point" for the program. By convention, this will be in a file called `main.dart`. This main function can execute any code within it's code block.
66

7-
The `runApp()` function should return widget that would be attached to the screen as a root of the widget tree that will be rendered.
7+
The `runApp()` function takes (as parameter) widget that would be attached to the screen as a root of the widget tree that will be rendered.

0 commit comments

Comments
 (0)