Skip to content

Problem with Dart Streams on iOS devices and simulator when IDE restart application. #31848

Description

@borysmatveichuk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    d: stackoverflowGood question for Stack Overflow

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions