Skip to content

Flutter 調査 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
HideakiSago opened this issue Dec 21, 2020 · 7 comments
Open

Flutter 調査 #1

HideakiSago opened this issue Dec 21, 2020 · 7 comments
Assignees

Comments

@HideakiSago
Copy link
Owner

HideakiSago commented Dec 21, 2020

調査項目一覧

@HideakiSago HideakiSago self-assigned this Dec 21, 2020
@HideakiSago
Copy link
Owner Author

HideakiSago commented Dec 26, 2020

Log

Logging (Flutter 公式)

print, debugPrint, log などいくつか logging の手段がありそうだけど、違いが謎。

とりあえず https://pub.dev/packages/fimber を使っておけば良さそう..?
→ Fimber はちょっと微妙だった。。。

2020-12-26 20:17:16.722 7054-7085/com.example.flutter_sample I/flutter: 2020-12-26T20:17:16.722071	D	fimberSample:	 DEBUG
2020-12-26 20:17:16.722 7054-7085/com.example.flutter_sample I/flutter: 2020-12-26T20:17:16.722373	I	fimberSample:	 INFO
2020-12-26 20:17:16.722 7054-7085/com.example.flutter_sample I/flutter: 2020-12-26T20:17:16.722791	W	fimberSample:	 WARN
2020-12-26 20:17:16.723 7054-7085/com.example.flutter_sample I/flutter: 2020-12-26T20:17:16.723095	E	fimberSample:	 ERROR

VERBOSE は Tree で Filter されていてそもそも出力されず..
logcat 上は全部 INFO level で出てしまう...
マルチプラットフォームという点では仕方ないのかもしれない...

とりあえず面倒なので Fimber 使っておきます。

@HideakiSago
Copy link
Owner Author

HideakiSago commented Dec 27, 2020

Dart

基本文法

要点・注意点

Kotlin (Swift) に慣れてると、基本的な言語の設計がダサいなーという印象..
コンパイル性能とかブラウザで動かすことを想定するとこれが限界なんだろうか..

Null Safety

拡張関数

@HideakiSago
Copy link
Owner Author

非同期処理

言語標準で async, await があるっぽいけど、
Rx に慣れてるので、もう普通に RxDart で良いかなと言う感じ。

@HideakiSago
Copy link
Owner Author

Serialization

JSON convert は dart:convert (Flutter 公式) を使えば良さそう。

@HideakiSago
Copy link
Owner Author

REST API Client

標準 package

標準でもある程度簡単に実装できそう。 dart:convert 使えるし、 Rx は対応してなさそうだけど、 async 対応してるので、そのままでもまぁ使えそう。

でもやっぱり http status code を全 API 実装するのはめんどいよなー..

Retrofit

Square 製じゃないのが気になるけど、、

@HideakiSago
Copy link
Owner Author

DB

いろいろあるけど、 Floor 一択かな..

その他参考

@HideakiSago
Copy link
Owner Author

HideakiSago commented Dec 28, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant