Document Flutter
Document Flutter
Features of Flutter
Flutter Architecture
Material Cupertino
Widgets
Framework
(Dart) Rendering
Foundation
udiozzzz Canvas
Widgets,
Rendering
Events
Native Services
code
Location Bluetooth
Camera etc.
Module 2 : Componnent of Flutter.
Inspect flutter Counter App
void main(){
runApp(MyApp());
}
2.2Basic layouts in
- Everything in Flutter is Widget. Use Row and Column elements to create layout
- Row – MainAxisAlignment.
Start
Center
End
SpaceBetween
SpaceAround
SpaceEvenly
-Row – CrossAxisAlignment
Start
Center
End
Stretch
Expanded
Scaffold Widget
Scaffold is designed to make applications (that follow Material guidelines) as easy as
possible to build
Per the Flutter docs, it defines the “basic Material Design visual layout,” which
means it can make your app look like this pretty easily
Constructor method: it has over 10 named arguments
Text
A run of text with a single style
The style widget is optional to decoration
Rich Text
A run of text with a multiply style
Image
Several cóntructions are provided:
Image.asset(‘asset/image/dart_lang.png’)
Image.network(‘http://edu.200lab.io/dart_lang.png)
Image.file(File file)
ElevatedButton
A material Design “elevated button”