itsnitigya / sigma

Task for an internship at Sigma Tenant.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sigma

What is the difference between “main()” and “runApp()” functions in Flutter?


Main is the entry point of dart, which is common for various languages such as c++, java and many more.
runApp() loads the flutter application, root of the widget tree is rendered, variables are intitalised.

What is an App State?


As there are two types of widget in flutter, Stateless and Stateful. Stateful widgets store some state in memory which can be changed by some actions. For example if we want to change the title of the app bar. We can set the app bar as some string (variable member of the class) and modify this variable by calling setState(), using that widget will be re-rendered. Default way of managing App's state is through setState() but using packages like Provider makes thing easier.

About

Task for an internship at Sigma Tenant.


Languages

Language:Dart 93.1%Language:Ruby 4.9%Language:Swift 1.5%Language:Kotlin 0.4%Language:Objective-C 0.1%