Search

Flutter

Requirements

๐Ÿ“Œ
To follow this course, it is required to know following โ€ฆ
โ€ข

Setup

Flutter Widget Tree

ThemeData

Statless vs Stateful

Text

Styling

Widgets

Actions

pub.dev Library

Tips

โ€ข
It is recommended to give INTERNET permission when giving permission on Android.
โ€ข
User must use Future class, async, and await when handling permissions.
โ€ข
Need to use async to recieve data from the dialog
โ€ข
Can access context anywhere in stateful widget
โ€ข
Treat dialog as a page i.e. use Navigator.of(context).pop(variable); to recieve the data
โ€ข
async gives Future while async* gives Stream link
โ—ฆ
FutureBuilder and StreamBuilder both stops when error occurs and changes the snapshot.data to null while changing the connection state to done
โ€ข
In a case whene we have to run flutter related code before the runapp, we have to add WidgetsFlutterBinding.ensureInitialized(); right under the void main() .
โ€ข
When user wants to stretch height inside the container but causing error, try to wrap the widget with IntrinsicHeight with row/column using stretch
โ€ข
When you need keyboard on iOS simulator, press CMD + Shift + K
โ€ข
When recieving data from pop be aware that the result can be null (e.g. forced return)

QnA

What is Flutter?
Flutter vs React Native
Why

Error

Reference