Flutter Slides
Flutter Slides
@firt firt.dev
rtman.github.io/intro- utter
fi
fl
mobile+web developer & trainer
Let’s Start!
What we'll cover
•By Google
•Open Source
•Statically typed language
•Type Inference
•Multi-platform
•Easy to Learn
•Concise - less ceremony
•Modern Ideas
•Null-safety
Every Dart app has a main function
Full OOP language with type inference
Null-safety is available as an
optional feature in Dart 2.12
It feels easy to understand
It has features from many languages:
- Extensions
- Mixins
- Futures (async programming)
When compiling to Web: remember the
engine is the JavaScript VM
Language Types
Mobile devices
-Android
-iOS
-iPadOS
Embedded devices
-Fuchsia OS
Desktop devices
-Windows (win32 y UWP)
-macOS
-Linux
Web platform
-PWAs
Multi UI
Design your Cupertino for
Use Material
own visual iOS/iPadOS and
for all devices
pattern Material for other
devices
Doesn't happen automatically
Multi user Widgets are not translatable
interface There are design patterns to
reduce coding apps twice
Flutter generates:
- Android Studio native SDK project
Flutter and - Xcode project for iOS
Native - Web standard files
Projects
We can have a hybrid Flutter app, part
Flutter, part native SDK or JavaScript
Flutter Console
Dart SDK
Flutter SDK
Flutter CLI
Flutter DevTools
- Code Editor
- Flutter and Dart plugins
Visual Studio - Integration with emulators and
Code DevTools
- Plenty of additional plugins and
services
- IDE
- User Interface Designer (native)
- SwiftUI
- Profiler and other tools
Xcode
- iOS Simulator
- Xcode CLI
- NO Flutter or Dart support
- macOS only!
Flutter Code
Dart code
Flutter framework
Flutter framework
Widget class
Widget
OurCustomWidget FlutterFrameworkWidget
Basic unit for user interface
Only property: key
They have a build method that
returnsother Widgets
They typically have a box within the
canvas but there are invisible
widgets as well
There are mainly two kinds:
* Stateless widgets (literal or
Widgets parametrized)
* State-full widgets
Widget Constructors
Widgets
Containers Containers
for one for Complex
Containers
Child Children
Standalone
different
child children properties
property property Widget
Widget <Widget>[]
Widget Constructors
Scaffold
AppBar
Container, Expanded
ElevatedButton, TextButton,
IconButton
Text, RichText
Column, Row, Wrap
Center
Common Widgets
Padding
Image, Icon
Creating Widgets
Stateful Stateless
Stateless widget
Most of the time, we don't touch the
Widget class
We use the build method of the State
class
State properties are set in the State class
hi@ rt.dev
@ rt
Foto de freefoto.com
fi
fi