[add-to-app] Cannot re-open Flutter screen after multiple transitions between iOS native and Flutter
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- mobile-dev
Hướng nghiên cứu
Bắt đầu với ứng dụng add_to_app/fullscreen và tái hiện các lần chuyển đổi lặp lại bằng các phiên bản Flutter, Xcode và iOS được liệt kê. So sánh vòng đời của ứng dụng này với các ứng dụng add_to_app/plugin và add_to_app/multiple_flutters, tập trung vào lỗi đính kèm FlutterViewController được ghi lại. Hoàn tất khi màn hình Flutter có thể được mở và đóng lặp lại mà không xảy ra lỗi hoặc không hiển thị.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Steps to Reproduce
- Launch the fullscreen app.
- Tap "Launch Flutter ViewController" to open the Flutter screen.
- Tap "Exit this screen" to close the Flutter screen.
- Repeat steps 2 and 3.
- 💥Tap "Launch Flutter ViewController", but the Flutter screen does not appear.
https://github.com/user-attachments/assets/9f3a406f-4380-4fb7-a633-222a19243fb6
Environment
Flutter: 3.32.4
Xcode: 16.4
iOS Simulator: iPhone 16 (iOS 18.5)
Additional Information
- The following message is logged when attempting to transition to the Flutter screen, even if the transition appears successful.
[ERROR:flutter/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm(183)] The supplied FlutterEngine <FlutterEngine: 0x104807470> is already used with FlutterViewController instance <FlutterViewController: 0x10e808600>. One instance of the FlutterEngine can only be attached to one FlutterViewController at a time. Set FlutterEngine.viewController to nil before attaching it to another FlutterViewController. - Also appeared in the plugin app and an app built following the official guide.
- The number of transitions before the issue appears varies.
- Not appeared in the multiple_flutters app.
- I think setting
flutterEngine.viewController = nilon Flutter screen dismissal would solve the problem, but I don't know if this is the right or recommended solution.
- Ngôn ngữ chính
- Dart
- Star
- 19.3k
- Fork
- 7.8k
- Merge trung bình
- 1 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flutter/samples
-
[compass_app] UI state never updates for the HomeScreen (regression after the implementation of #2788)Có thể đã có người làm @Ersaoktaviannn đã nhận 101 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
Many samples use old Gradle, impossible to build on modern JDKCó thể đã có người làm @ericwindmill đã nhận 664 ngày trước. Đang mởbug
-
meta
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
[navigator2 quickstart] Create a navigator2 quickstartCó thể làm lại được @mranja đã nhận 40 ngày trước và không có pull request nào đang mở. Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Tất cả issue của flutter/samples
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 60/100
hiddify/hiddify-app#2668 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
toyota-connected/emb_cli#358 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: import beta cluster: callers box improvements severity: minor status: confirmed type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ibanner56/CallersCompendium#2366 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ccch1mneyyy/dsh-Go#1777 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: mobile documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
CommandLineCoding/Elephant#383 ·
Maintainer thường phản hồi trong vòng 1 ngày