SpriteButton.placedInsets is not used
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 92/100
Hướng nghiên cứu
Mở main/packages/flame/lib/src/widgets/sprite_button.dart và kiểm tra việc xây dựng từ SpriteButton sang InternalSpriteButton quanh dòng 234-235. Xác minh cách pressedInsets được truyền vào và cách nó ảnh hưởng đến vị trí của nhãn khi được nhấn. Hoàn tất khi một giá trị pressedInsets tùy chỉnh làm thay đổi chuyển động của nhãn khi widget được nhấn; chạy các kiểm tra Flutter liên quan nếu có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened?
the perameter placedInsets on the SpriteButton widget is not passed to InternalSpriteButton. This results in custom insets not being applies when a SpriteButton is pressed.
What do you expect?
when passing a custom value for pressedInsets into a SpriteButton widget the way that the label moves when the button is pressed should be altered, it is not.
How can we reproduce this?
create a SpriteButton widget and pass in any value of pressedInsets, that value has no effect on how the label is moved when the button is pressed.
What steps should take to fix this?
add
pressedInsets: pressedInsets
between lines 234 and 235 in main/packages/flame/lib/src/widgets/sprite_button.dart
Do have an example of where the bug occurs?
No response
Relevant log output
Execute in a terminal and put output into the code block below
Output of: flutter doctor -v
Affected platforms
All
Other information
No response
Are you interested in working on a PR for this?
- I want to work on this
- Ngôn ngữ chính
- Dart
- Star
- 10.8k
- Fork
- 1k
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 19
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 flame-engine/flame
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
flame-engine/flame#4063 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
flame-engine/flame#4013 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
flame-engine/flame#4012 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
flame-engine/flame#3974 · 6 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a RenderLayer system for global render orderingCó thể làm lại được @spydon đã nhận 70 ngày trước và không có pull request nào đang mở. Đang mởenhancement
flame-engine/flame#3967 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của flame-engine/flame
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
immich-app/immich#31955 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
fluttercommunity/plus_plugins#3994 ·
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
-
Smart charging: USB charger re-assert is starved during BLE scans, so the tablet never dischargesĐang mởbug ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
decentespresso/decaid#931 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
RunanywhereAI/runanywhere-sdks#982 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày