A new Flutter pet-project with State Management - Applying BLoC Pattern (Single Global Instance)
final bloc = Bloc();
Run in terminal:
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/#/