Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

what is the difference between runapp() and main() in flutter

main(): This function starts the program. Flutter does not allow us 
to write any program without the main() function.

runApp(): Using runApp(), you are able to return the widgets 
that are connected to the screen as a root of the widget tree 
that will be rendered on the screen. This function is called in 
the main function, which is the driver of the app.
Source by flutterguide.com #
 
PREVIOUS NEXT
Tagged: #difference #flutter
ADD COMMENT
Topic
Name
9+9 =