I've created simple application with Bloc pattern.
When I run application first time everything is OK, but when I restart it in IDE without stop, the application stuck. Looks like Dart Stream is broken. It happens only with iOS devices and simulator, for Android everything is fine.
flutter doctor
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.2 18C54, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.4)
flutter --version
Flutter 1.2.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8661d8aecd (2 months ago) • 2019-02-14 19:19:53 -0800
Engine • revision 3757390fa4
Tools • Dart 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
Bug reproduced on:
iPhone X iOS 12.2
iPhone 7 iOS 12.1
main.dart
https://github.com/borysmatveichuk/flutter_quiz/blob/master/lib/main.dart
Bloc file
https://github.com/borysmatveichuk/flutter_quiz/blob/master/lib/QuizBloc.dart
The whole project link:
https://github.com/borysmatveichuk/flutter_quiz
I've created simple application with Bloc pattern.
When I run application first time everything is OK, but when I restart it in IDE without stop, the application stuck. Looks like Dart Stream is broken. It happens only with iOS devices and simulator, for Android everything is fine.
flutter doctor
flutter --version
Bug reproduced on:
main.dart
https://github.com/borysmatveichuk/flutter_quiz/blob/master/lib/main.dart
Bloc file
https://github.com/borysmatveichuk/flutter_quiz/blob/master/lib/QuizBloc.dart
The whole project link:
https://github.com/borysmatveichuk/flutter_quiz