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

[Skill idea] flutter-create-bottom-sheet-flow — scaffold a typed-result bottom sheet

Đang mở
#109 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
dart
Lĩnh vực
mobile-dev

Hướng nghiên cứu

Bắt đầu bằng cách xem xét roadmap của Navigation and Routing và skill flutter-implement-imperative-navigation hiện có, sau đó so sánh cấu trúc của chúng với flow bottom-sheet được đề xuất. Công việc được xem là hoàn tất khi có một skill tập trung bao quát kết quả có kiểu, quản lý chiều cao, cấu hình dismissal và drag, cùng wiring ở phía caller, với cấu trúc template được tham chiếu được cung cấp hoặc ghi lại trong tài liệu.

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

Mô tả

P2 Skill

Environment

  • Language model: Claude Opus 4.7
  • Agent harness: Claude Code
  • Project type: Production Flutter app

Problem

Bottom sheets are one of the most common UX patterns in production Flutter apps, and one of the most frequently misimplemented:

  • Wrong route type (MaterialPageRoute instead of a transparent route)
  • Missing typed result on close (forcing callers to dynamic-cast)
  • Height management mistakes (fitToContent vs heightFactor, max-height clamping)
  • isDismissible / enableDrag / useSafeArea defaults inconsistent across the app

The current Navigation/Routing roadmap has flutter-implement-imperative-navigation (P1) and flutter-setup-declarative-routing (published), but no skill addresses the bottom-sheet flow specifically.

Proposed skill

Name: flutter-create-bottom-sheet-flow

Description (draft):

Scaffold a bottom sheet route with typed pop result, height management (fitToContent vs fractional height), and dismissible/drag configuration. Use when adding a modal flow that returns data to its caller, such as a confirmation, picker, or detail panel.

Decisions the skill captures:

  • Typed Result class vs nullable return
  • fitToContent (max 70% height recommended) vs fixed heightFactor
  • isDismissible + enableDrag policy
  • Caller-side wiring (how the parent ViewModel triggers and consumes the result)

Why a dedicated skill

Bottom sheets sit at the intersection of routing + UI + state contract. A general "navigation" skill won't cover the result-typing and height-management decisions specific to sheets. Doing it as a separate skill keeps both skills small and focused.

Real-world reference

We maintain this as an internal skill and it eliminated a recurring class of "sheet pops dynamic, caller crashes" bugs. Happy to share the template structure.

Roadmap fit

Sits in the Navigation and Routing category alongside flutter-implement-imperative-navigation.

Ngôn ngữ chính
Dart
Star
3k
Fork
180
Merge trung bình
5 ngày 29 phút
Pull request đã merge (30 ngày)
6

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

Mở hướng dẫn đóng góp

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 flutter/agent-plugins

Tất cả issue của flutter/agent-plugins

Issue tương tự

Thêm issue về Dart

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.