Flutter Docker#
Build apps for any screen
Install#
Windows install#
git clone https://github.com/flutter/flutter.git -b stable
# Path append C:\path-to-flutter-sdk\bin
flutter --version
Run flutter doctor#
flutter doctor
Flutter Examples#
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
flutter config --enable-web
Hello, world#
The hello world app is a minimal Flutter app that shows the text “hello, world.”
flutter run -d chrome
flutter run lib/arabic.dart -d chrome
Flutter gallery#
Flutter Gallery is a resource to help developers evaluate and use Flutter
Demo#
https://gallery.flutter.dev/
git clone https://github.com/flutter/gallery.git
flutter pub get
flutter run
Layers#
The layers vignettes show how to use the various layers in the Flutter framework.
flutter run raw/spinning_square.dart -d chrome
flutter run rendering/spinning_square.dart -d chrome
flutter run widgets/spinning_square.dart -d chrome
Platform Channel#
The platform channel app demonstrates how to connect a Flutter app to platform-specific APIs.
flutter run -d chrome
Docker#
docker run --rm -it -v ${PWD}:/build --workdir /build cirrusci/flutter:stable flutter test