Help us understand the problem. What is going on with this article?

[Flutter] BLoC + Rx で実装するために見るもの

Business Logic Component + ReactiveX で Flutter を書いてくにあたって見ると良いもの

公式の登壇動画

Flutter / AngularDart – Code sharing, better together (DartConf 2018)

image.png

  • BLoC についての初の登壇動画。 話はこれを見てから!!
  • ソースコード

Google I/O '18 | Build reactive mobile apps with Flutter

image.png

ReactiveConf 2018 | Practical Rx with Flutter

image.png
上記2つを見ていれば復習的な感覚で見られる。
これソースコード見つけられなかった...公開されてないっぽい...?

Google I/O'19 | Pragmatic State Management in Flutter

image.png

その他

上記を踏まえて真面目に組み始めた時、「あれ、 dispose() は...? ん〜どうしよ」となって調べた時、以下の良記事に出会えました。

あと、サンプルとしてはここらへん等が良かったです。

おまけ

Live Templates を用意してタイプ量を減らす。

# 「bhs」
/// $1$
ValueObservable<$2$> get $3$ => _$3$Controller;
final _$3$Controller = BehaviorSubject<$2$>();
# 「pbs」
/// $1$
Sink<$2$> get $3$ => _$3$Controller.sink;
final _$3$Controller = PublishSubject<$2$>();

おわりに

gihub で検索すると BLoC + Rx のサンプルはいくつか出てきますが、構成は割とまちまちです。(これは問題ではありません。一番最初の動画で触れられています。)
中には BLoC + Redux というのもあります。参考: rebloc パッケージ

快適な Flutter ライフを

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away