Loading the lesson...
In the print dialog, choose "Save as PDF" as the destination.
Operating Systems 2 - Lab 2
Native vs Hybrid vs Cross-Platform, and writing your first Flutter app
App Code
OEM Widgets
Java/Kotlin for Android, Swift/Obj-C for iOSWeb App Code
WebView
Native Features
HTML/CSS/JS wrapped in a WebView; the app is effectively a website in a native shellDart Code
Flutter Engine
System Canvas
Dart, which compiles to native machine code60 FPS performance and a UI that looks identical across devicesUser Interface (UI)
Building the visual layout
State Management
Handling data changes and app state efficiently
Networking
Connecting to APIs and server data
Animation
Adding visual polish to the experience
test_appcom.example.myappmain(), which calls runApp()MaterialApp is typically the root widget, providing material design stylingCenter positions its child in the middle of the screen; Container styles size and colorvoid main() {
runApp(
MaterialApp(
home: Center(
child: Container(
color: Colors.red,
width: 40.0,
height: 40.0,
child: Text('Hi'),
),
),
),
);
}lab_one_introMaterialAppCenter to position a Container in the middle of the screen100.0 by 100.0Text widget showing your initialsDart compiles to native code, and Hot Reload makes iteration nearly instantmain() calling runApp(), typically rooted in MaterialAppMahmoud Abas|Lab: Introduction to Flutter Development