Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Polish] Retry observable launch failure only

Đang mở Phù hợp với người mới
#4 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@SY077 đang làm issue này rồi.

Từ ngày 12/10/2026.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
88/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart, flutter
Lĩnh vực
authentication, mobile

Hướng nghiên cứu

Đọc lib/screens/sign_in_screen.dart và hướng dẫn thiết lập cho lần đóng góp đầu tiên, sau đó kiểm tra luồng đăng nhập thất bại. Thêm phần ánh xạ thông báo thuần trong lib/auth/sign_in_messages.dart và kiểm thử các lỗi đã hủy, bị từ chối, ngoại tuyến và không xác định trong test/sign_in_messages_test.dart. Hoàn tất khi mỗi trường hợp hiển thị một thông báo ngắn cùng nút Try again, nội dung ngoại lệ thô được ẩn và flutter test chạy thành công.

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

Mô tả

good first issue polish

What to build

Show a useful error when the sign-in page fails to open, then let the student retry. The next tap should make a new attempt rather than leave the button disabled.

Files

Steps

  1. In the existing error branch render Try again with onPressed:_signIn when not busy.
  2. _signIn already clears _error before launch; reuse it rather than a new auth path.
  3. Pump RetryLaunch: first call returning false shows error, tap retry, second call returning true clears error.

Example

Two button taps create exactly two signIn calls; successful retry hides prior error.

// In the named test/screens file:
import '../support/fake_gateway.dart';
class RetryLaunch extends FakeGateway {
  @override
  Future<bool> signIn() async {
    signInCalls++;
    return signInCalls > 1;
  }
}

Check it works

In test/screens/sign_in_screen_4_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/screens/sign_in_screen_4_test.dart and flutter analyze.

References

Assign yourself before starting, or comment to claim the issue. Project setup.

If you have already started, keep equivalent working code names and coordinate any shared-file changes with the dependent contributors.

Ngôn ngữ chính
PLpgSQL
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DevDogsUGA/DogPack

Tất cả issue của DevDogsUGA/DogPack

Issue tương tự

Thêm issue về Security

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.