flutter
- flutter is open source
- it compiles to truly native apps
- Fuchsia's user interface and apps are written with Flutter
- Everything Is Widgets
- they’re the building blocks of every Flutter app
- google mission is: To build a better way to develop for mobile
- better create then android/kotlin, ios/swift, html/js
- only Flutter (not React Native / Xamarin) has an option to create a web application in addition to the iOS and Android apps
flutter: linux
- get SDK:
git clone https://github.com/flutter/flutter.git flutter - add flutter binary to path
- run
flutterwill download dart SDK:flutter/bin/cache/dart-sdk/ - run
flutter doctorand follow the instructions (install android studio, android sdk, ...)- hint for android studio desktop entry:
configure > create desktop entry - if you want to use android studio for flutter developer then install plugin: flutter and dart
- also add android sdk to path:
android/sdk/platform-tools
- hint for android studio desktop entry:
- run
flutter devicesto list your device - run app with
flutter run- ensure device or emulator is running.
android emulator
- check if acceleration is on:
$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
- list / run emulators
flutter emulators
flutter emulators --launch Pixel_2_API_29
troubleshooting
- i had the curious case that my device was list with
adb devicesalso withflutter devicesbut not in android studio. Issue was solved when i set env variableANDROID_HOME=.../android/sdk
visual studio code
- visual studio code with flutter extension: create hello world flutter with:
CTRL + SHIFT + P > flutter
links
- https://flutter.dev/docs/get-started/install/linux
- https://developer.android.com/studio/run/emulator-acceleration?utm_source=android-studio#vm-linux
screenshot with adb
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png .
flutter: windows
- get flutter SDK
- set flutter SDK to environment variable PATH:
<...>\flutter\bin - set android SDK / toolchain to environment variable PATH:
<...>\android\sdk\platform-tools