Slidable open Not effective ?
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ó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
The reporter's snippet wraps Slidable in a GestureDetector, so the context in onLongPress sits above the Slidable subtree and Slidable.of(context) returns null. Start by reading how Slidable.of looks up its ancestor in the package source, then reproduce with a minimal ListView like the one in the issue. Done means either a documented pattern for opening a pane from outside the item, such as a Builder inside child, or a clearer failure than a silent null. The issue is over 1,000 days old with no comments, and the desired behaviour is not settled, so confirm the scope with a maintainer first.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When I can't open ActionPanel for a long time.
Here is my main code:
ListView.builder(
itemCount: myPositions.length,
padding: EdgeInsets.zero,
itemBuilder: (ctx, index) {
return GestureDetector(
onLongPress: () {
Slidable.of(context)?.openEndActionPane();
},
child: Slidable(
groupTag: MyPositionView.routeName,
key: ValueKey(index),
direction: Axis.horizontal,
endActionPane: ActionPane(
extentRatio: 0.2,
motion: const ScrollMotion(),
children: [
Builder(builder: (context) {
return Container(
margin: EdgeInsets.symmetric(vertical: 6.w),
child: Column(
children: [
Expanded(
child: TextButton(
onPressed: () => deletePosition(index, context),
style: TextButton.styleFrom(
backgroundColor: const Color(0xff4077DE),
foregroundColor: Colors.white,
),
child: const Icon(Icons.delete_forever),
),
),
],
),
);
}),
],
),
child: MyWidget(),
),
);
},
)
It is very unreasonable to ensure that the context can only be used with Slidable. of (context).
- Ngôn ngữ chính
- Dart
- Star
- 2.9k
- Fork
- 646
- Merge trung bình
- 5 phút
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 letsar/flutter_slidable
-
Broken links in the docsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
letsar/flutter_slidable#563 ·
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 48/100
letsar/flutter_slidable#549 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Lock action-pane intent for a continuous drag until neutral settleCó thể đã có người làm @lukemmtt đã nhận 194 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
letsar/flutter_slidable#546 ·
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 35/100
letsar/flutter_slidable#541 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Example is not runnable on androidCó thể đã có người làm @akhil-ge0rge đã nhận 350 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 18/100
letsar/flutter_slidable#540 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của letsar/flutter_slidable
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
InlitX/GymMane#311 · 1 reaction ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Remove Info buttonĐang mởenhancement user request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
mill-road-winter-fair/mill_road_winter_fair_app#646 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[CarouselView] Crash (RangeError / ArgumentError) when children or itemCount is empty with infinite: true or CarouselController.animateToItemCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởp: material_ui package platform-android platform-ios platform-linux platform-macos platform-web team-design
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
flutter/flutter#195878 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add an NCBA Bank packĐang mởgood first issue help wanted parser-pack
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
pesaclarity/ujumbe-parsers#30 ·
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 82/100
AimesSoft/NipaPlay-Reload#1092 ·
Maintainer thường phản hồi trong vòng 1 ngày