Flutter+Kuzzle
KuzzleのFlutterチュートリアル的なものをやってみた。
Flutter | Kuzzle Documentation
Dart Null Safety v3.x を選択しても、中身はv2と同じようだ。
pubspec.yamlのSDKバージョン指定まで同じなので、v2系がインストールされてしまってflutter build web
実行したときにコンパイルエラーになる。
kuzzle: ^3.0.2
に編集したらコンパイル通った。
POSTS
KuzzleのFlutterチュートリアル的なものをやってみた。
Flutter | Kuzzle Documentation
Dart Null Safety v3.x を選択しても、中身はv2と同じようだ。
pubspec.yamlのSDKバージョン指定まで同じなので、v2系がインストールされてしまってflutter build web
実行したときにコンパイルエラーになる。
kuzzle: ^3.0.2
に編集したらコンパイル通った。
久しぶりすぎてFlutterアプリの初手を忘れていたのでメモ。
先日、Flutter 3をインストールしてあったのでその続きから。
~/.bashrc にexport追加&bashrc再読み込み。
export PATH=$HOME/sdk/flutter/bin:$PATH
アプリ用のディレクトリに入って初期化実行。
flutter create .
WSL2にインストールしてみる。
$ cd ~/sdk
$ git clone https://github.com/flutter/flutter.git -b stable
$ export PATH="$PATH:`pwd`/flutter/bin"
$ flutter doctor
Missing "unzip" tool. Unable to extract Dart SDK.
Consider running "sudo apt-get install unzip".
$ sudo apt-get install unzip
$ flutter doctor
[✓] Flutter (Channel stable, 3.0.0, on Ubuntu 20.04 LTS 5.10.16.3-microsoft-standard-WSL2, locale C.UTF-8)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[☠] Linux toolchain - develop for Linux desktop (the doctor check crashed)
✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue
at https://github.com/flutter/flutter/issues.
✗ ProcessException: Failed to find "pkg-config" in the search path.
Command: pkg-config
[!] Android Studio (not installed)
[✓] Connected device (1 available)
[✓] HTTP Host Availability
! Doctor found issues in 4 categories.
とりあえず本体は入ったのでヨシ。
Read more[速報]「Flutter 3」登場、FlutterによるmacOSとLinuxアプリ開発が正式版に。Macのユニバーサルバイナリにも対応 - Publickey
MacとLinuxのアプリケーション開発の正式版より、「Firebase plugin for Flutter」のほうが気になった。
これは前に使っていたFlutterFireとは別物?と思ったけど、FlutterFireの説明が「The official Firebase plugins for Flutter.」ってなってるし、https://firebase.flutter.dev/がhttps://firebase.google.com/docs/flutter/setupにリダイレクトされるようになっているので、FlutterFireがFirebase plugin for Flutterに改名したということなのかな。
Read moreSurface Go 2 に Flutter Web 環境をインストールしたのでメモ。
基本的には公式手順に沿って進める。
$ cd ~/workspace
$ git clone https://github.com/flutter/flutter.git -b stable
環境変数PATHに追加 ユーザー環境変数の最後に追加した
flutter doctor実行
[√] Flutter (Channel stable, 1.20.2, on Microsoft Windows [Version 10.0.19041.450], locale ja-JP)
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location.
You may also want to add it to your PATH environment variable.
[!] Android Studio (not installed)
[!] VS Code (version 1.48.2)
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected device
! No devices available
この時点ではこれでOK
Read more