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

[Discover + Join/Leave] Refresh Discover while keeping previous data

Đang mở
#105 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
50/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart, flutter
Lĩnh vực
frontend, mobile

Hướng nghiên cứu

Start in lib/screens/discover_screen.dart, which depends on the Discover feed from #104 being in place, and use lib/screens/home_screen.dart as the reference for the existing loader and refresh pattern. Wrap the always-scrollable list in a RefreshIndicator, keep the current cards while the refresh is pending, and on failure keep them and show a short error. Done when flutter test test/screens/discover_screen_dp_d03_2_test.dart passes for the one-card-plus-failed-refresh case and flutter analyze is clean.

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

Mô tả

discover

What to build

Add pull-to-refresh to Discover without clearing the current list while loading. On failure, keep the previous meetings visible and show a retry message.

Design

Home wireframe. Pull-to-refresh applies to the list under the search box. The search box, Filter button, calendar grid and Recent Groups are later work (Future milestones); don't build them here. The bottom bar comes from #133.

The wireframes are layout guidance: where they differ from this issue, this issue wins. Use the app theme rather than hard-coding the brief's colours or fonts, and say "study group" in UI text (code and the schema keep session).

Files

Steps

  1. Wrap a scrollable always-scrollable list in RefreshIndicator and reuse loader.
  2. On refresh keep previous cards while pending; replace on success.
  3. On failure retain previous cards plus short refresh error; finally stop indicator.

Example

Existing one card+failed refresh still shows one card and error; no realtime subscription.

Check it works

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

Before starting

  • #104 — Render the Discover feed and states

References

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

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ề Web Dev

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.