Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

[Bug]Should not store rootViewController of window at plugin register #288

Description

@zouquan741

Describe the bug
Some app will change the rootViewController of window after startup.
image
So we should not store rootViewController of window at plugin register.
Otherwise we will get a Warning: Attempt to present <UINavigationController: 0x106665400> whose view is not in the window hierarchy!, and all UI will be freezed.

Expected behavior
Use the current root vc to present BarcodeView when sacn method called.

Environment (please complete the following information):

  • iOS Version: 12.4.8
  • iPhone 6
  • Version of barcode_scan:
    3.0.1
  • Output of flutter --version:
Flutter 1.20.2 • channel unknown • unknown source
Framework • revision bbfbf1770c (5 weeks ago) • 2020-08-13 08:33:09 -0700
Engine • revision 9d5b21729f
Tools • Dart 2.9.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions