yim
48c6d0703f
Added boundary feature to ReorderableList. (#146182)
Fixes: #146112
<details open><summary>Code sample</summary>
```dart
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
home: Scaffold(
body: Center(
child: Container(
width: 200,
color: Colors.green,
child: DragBoundary(
child: CustomScrollView(
shrinkWrap: true,
slivers: <Widget>[
SliverReorderableList(
itemBuilder: (BuildContext context, int index) {
return ReorderableDragStartListener(
key: ValueKey<int>(index),
index: index,
child: Text('$index'),
);
},
itemCount: 5,
onReorder: (int fromIndex, int toIndex) {},
),
],
),
),
),
),
),
));
}
```
</details>
| without `DragBoundary` | with the `DragBoundary` |
| ------- | -------
| 
| 
|
## Pre-launch Checklist
- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.
If you need help, consider asking for advice on the #hackers-new channel
on [Discord].
<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
[Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
[test-exempt]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[Data Driven Fixes]:
https://github.com/flutter/flutter/wiki/Data-driven-Fixes
2024-12-06 01:39:06 +00:00
..
2024-06-12 20:05:10 +00:00
2024-06-12 20:05:10 +00:00
2024-09-10 15:32:40 -07:00
2024-06-05 15:20:07 +00:00
2024-02-07 10:01:22 -08:00
2024-12-05 16:54:09 +00:00
2024-03-25 10:36:42 -07:00
2024-09-03 19:55:12 +00:00
2024-05-13 22:12:49 +00:00
2024-10-25 16:27:51 +00:00
2024-09-26 04:04:24 +00:00
2024-03-18 21:32:22 +00:00
2024-09-10 15:32:40 -07:00
2024-05-13 22:12:49 +00:00
2024-02-29 00:47:55 +00:00
2024-07-31 23:35:24 +00:00
2024-08-15 19:02:23 +00:00
2024-03-24 18:01:17 +00:00
2024-03-24 18:01:17 +00:00
2024-11-25 20:47:13 +00:00
2024-08-14 18:19:17 +00:00
2024-09-10 15:32:40 -07:00
2024-03-26 12:22:57 -07:00
2024-05-20 17:17:55 +00:00
2024-12-02 21:48:58 +00:00
2024-04-03 18:36:19 +00:00
2024-11-15 22:39:41 +00:00
2024-05-25 19:59:19 +00:00
2024-03-14 14:20:44 -07:00
2024-03-25 10:36:42 -07:00
2024-10-30 03:01:18 +00:00
2024-11-06 00:55:06 +00:00
2024-07-09 15:54:17 -07:00
2024-06-12 20:05:10 +00:00
2024-04-09 19:35:07 +00:00
2024-12-02 17:45:36 +00:00
2024-11-21 01:33:14 +00:00
2024-12-05 16:54:09 +00:00
2024-03-25 10:45:02 -07:00
2024-03-25 10:36:42 -07:00
2024-05-31 03:50:30 +00:00
2024-11-25 21:21:04 +00:00
2024-05-18 10:41:56 -07:00
2024-07-08 22:51:04 +00:00
2024-08-05 23:04:50 +00:00
2024-09-30 17:19:25 +00:00
2024-09-10 15:32:40 -07:00
2024-06-12 20:05:10 +00:00
2024-06-12 20:05:10 +00:00
2024-11-28 01:04:08 +00:00
2024-12-05 16:54:09 +00:00
2024-06-12 20:05:10 +00:00
2024-02-09 12:37:20 -08:00
2024-06-17 19:59:06 +00:00
2024-09-09 20:35:03 +00:00
2024-10-22 17:53:17 +00:00
2024-09-09 17:30:19 +00:00
2024-09-10 15:32:40 -07:00
2024-11-25 20:47:13 +00:00
2024-08-20 15:33:21 -07:00
2024-08-20 15:33:21 -07:00
2024-03-14 14:20:44 -07:00
2024-10-22 10:22:01 -07:00
2024-10-22 10:22:01 -07:00
2024-09-10 15:32:40 -07:00
2024-10-18 22:37:51 +00:00
2024-10-04 18:59:05 +00:00
2024-09-11 23:59:53 +00:00
2024-09-11 17:34:58 +00:00
2024-06-05 20:51:04 +00:00
2024-06-03 16:45:23 +00:00
2024-09-13 01:24:11 +00:00
2024-07-31 23:35:24 +00:00
2024-07-02 23:01:44 +00:00
2024-03-06 03:23:18 +00:00
2024-03-19 17:00:24 +00:00
2024-04-03 15:49:38 -07:00
2024-05-28 10:39:30 -07:00
2024-09-27 00:55:31 +00:00
2024-09-27 00:55:31 +00:00
2024-03-25 10:36:42 -07:00
2024-03-25 10:36:42 -07:00
2024-10-31 16:47:55 +00:00
2024-11-04 16:42:06 +00:00
2024-06-20 06:44:11 -07:00
2024-03-18 12:45:22 +00:00
2024-08-29 01:59:34 +00:00
2024-08-29 21:49:25 +00:00
2024-02-22 19:16:25 +00:00
2024-05-20 17:43:00 +00:00
2024-03-14 14:20:44 -07:00
2024-02-23 20:06:06 +00:00
2024-08-07 16:45:53 +00:00
2024-05-01 22:05:02 +00:00
2024-06-07 21:27:06 +00:00
2024-03-25 10:36:42 -07:00
2024-05-07 09:04:49 -07:00
2024-03-14 14:20:44 -07:00
2024-12-06 01:39:06 +00:00
2024-05-13 22:12:49 +00:00
2024-07-31 23:35:24 +00:00
2024-10-21 21:29:05 +00:00
2024-10-02 20:08:11 +00:00
2024-08-14 18:19:17 +00:00
2024-03-13 07:10:48 +00:00
2024-03-25 10:45:02 -07:00
2024-06-04 22:02:12 +00:00
2024-05-31 20:30:09 +00:00
2024-11-22 19:07:21 +00:00
2024-02-22 19:16:25 +00:00
2024-04-02 21:10:52 +00:00
2024-06-10 17:52:58 +00:00
2024-12-05 16:54:09 +00:00
2024-11-26 00:14:30 +00:00
2024-12-05 16:54:09 +00:00
2024-12-05 16:54:09 +00:00
2024-04-02 21:10:52 +00:00
2024-10-18 22:37:51 +00:00
2024-10-18 22:37:51 +00:00
2024-11-25 21:37:10 +00:00
2024-10-18 22:37:51 +00:00
2024-12-02 21:48:58 +00:00
2024-10-18 22:37:51 +00:00
2024-07-31 23:35:24 +00:00
2024-10-18 22:37:51 +00:00
2024-03-05 00:16:21 +00:00
2024-08-15 19:02:23 +00:00
2024-07-23 15:46:08 +00:00
2024-09-24 22:12:32 +00:00
2024-03-15 10:42:02 -07:00
2024-03-25 10:36:42 -07:00
2024-03-13 16:34:25 +00:00
2024-03-06 03:23:18 +00:00
2024-07-08 19:33:14 +00:00
2024-10-24 19:23:07 +00:00
2024-05-28 16:35:29 -07:00
2024-10-21 19:25:52 +00:00
2024-10-17 18:12:18 +00:00
2024-03-06 03:23:18 +00:00
2024-03-15 10:42:02 -07:00
2024-07-02 23:21:22 +00:00
2024-04-15 16:06:07 +00:00
2024-05-20 17:17:55 +00:00
2024-02-17 01:18:33 +00:00
2024-08-09 13:52:06 -07:00
2024-05-20 17:17:55 +00:00
2024-05-15 16:52:17 -07:00
2024-10-21 16:59:16 +00:00
2024-05-28 16:35:29 -07:00
2024-05-01 20:51:54 +00:00
2024-07-30 01:29:31 +00:00
2024-08-15 23:00:15 +00:00
2024-03-25 10:36:42 -07:00
2024-05-14 13:46:35 -07:00
2024-09-10 15:32:40 -07:00
2024-03-25 10:36:42 -07:00
2024-05-31 20:30:09 +00:00
2024-05-24 16:26:07 +00:00
2024-05-24 16:26:07 +00:00
2024-06-25 21:55:34 -07:00
2024-07-26 00:27:37 +00:00
2024-07-31 23:35:24 +00:00
2024-12-05 16:54:09 +00:00
2024-10-16 20:18:28 +00:00
2024-03-19 17:58:13 +00:00
2024-05-09 20:20:48 -07:00