A new Flutter pet-project with Streams - Applying BLoC Pattern (Scoped Instances)
- bloc: ^7.0.0
- streams
- Stream class
- StreamTransformer<S, T> class
- AsyncSnapshot class
- dependOnInheritedWidgetOfExactType method
- rxdart 0.26.0
- ReactiveXReactiveX
- RxDart API documentation
- combine2<A, B, R> method
- RxJS Marbles
- CombineLatestStream<T, R> class
- BehaviorSubject class
Run in terminal:
flutter pub get
flutter doctor
flutter run
Open web-browser http://localhost:50743/
In case of error:
Failed to establish connection with the application instance in Chrome.
This can happen if the websocket connection used by the web tooling is unable to correctly establish a connection, for example due to a firewall.
- on Editor Android Studio or Intellij goto -> Run >> Flutter Run In Release Mode or:
flutter run -d chrome --release
- To hot restart changes while running, press
r
orShift + r
- To save, press
Ctrl + s
- To quit, press
q
To update the Flutter run:
flutter channel stable
flutter upgrade
- Open plugin preferences in Android Studio (File => Settings => Plugins).
- Select Browse repositories, select the Flutter plugin => click Install.
- Click Yes when prompted to install the Dart plugin.
- Click Restart when prompted.
- Tools => ADV Manager => Create Virtual Device => Actions => Launch this ADV in emulator =>
- open main.dart => select Device (on top panel) => press Run ( ►) https://graphemica.com/%E2%96%B8
- Tools => Flutter
flutter run -d chrome --release
Open web-browser in http://localhost:56338/#/