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

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

Screenshots

https://raw.githubusercontent.com/flutter/website/main/src/assets/images/docs/homepage/reflectly-hero-600px.png

https://raw.githubusercontent.com/flutter/website/main/src/assets/images/docs/tools/android-studio/hot-reload.gif

References