fluttercommunity / fluttercommunity/flutter_webview_plugin

onBack stream not closed

Đang mở Phù hợp với người mới
#774 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
1.5k
Fork
938
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## System info

Issue occurs on: both
Plugin version: 0.3.11
Flutter doctor output:

```
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version 10.0.18363.900], locale en-NZ)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[√] Android Studio (version 4.0)
[√] VS Code, 64-bit edition (version 1.46.0)
[√] Connected device (1 available)

• No issues found!
```

## Steps to Reproduce
1. Navigate to the file base.dart in the plugin lib.
2. scroll down to dispose method.

![image](https://user-images.githubusercontent.com/9078067/85355181-27f3d300-b560-11ea-9241-a3f953aab2a3.png)

as you can see also in the image, the _onBack stream controller is created but never closed in the dispose. Not sure if this was on purpose or not.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Mở lib/base.dart và kiểm tra phương thức dispose, sau đó lần theo stream controller _onBack được tạo ở đó. Xác nhận liệu controller đó có nên được đóng khi dispose hay không, và kiểm tra rằng stream onBack được đóng khi plugin được dispose.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
dart, flutter
Lĩnh vực
mobile-dev
Loại issue
Lỗi
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
70/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.