-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[two_dimensional_scrollables] TreeView #6592
Conversation
packages/two_dimensional_scrollables/lib/src/tree_view/tree.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/tree_view/custom_tree.dart
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/tree_view/custom_tree.dart
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/tree_view/simple_tree.dart
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/table_view/simple_table.dart
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/tree_view/custom_tree.dart
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/tree_view/simple_tree.dart
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/test/tree_view/custom_tree_test.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/table_view/infinite_table.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/table_view/infinite_table.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/tree_view/custom_tree.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/tree_view/custom_tree.dart
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/tree_view/custom_tree.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/tree_view/simple_tree.dart
Show resolved
Hide resolved
packages/two_dimensional_scrollables/lib/src/tree_view/tree_delegate.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/lib/src/tree_view/tree_delegate.dart
Show resolved
Hide resolved
packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart
Outdated
Show resolved
Hide resolved
No rush on the re-review, it's a big one. Best taken in breaks. :) Review feedback diff is contained in 5a0194c |
packages/two_dimensional_scrollables/lib/src/tree_view/tree.dart
Outdated
Show resolved
Hide resolved
final T _content; | ||
|
||
/// Other [TreeViewNode]s this this node will be [parent] to. | ||
List<TreeViewNode<T>> get children => _children; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this true? didUpdateWidget
wouldn't be called if I pass a TreeViewNode to TreeView and then later on call .children.append(...)
on that TreeViewNode? Or can you show in a test that that actually works?
packages/two_dimensional_scrollables/lib/src/tree_view/tree.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/lib/src/tree_view/tree_core.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/example/lib/tree_view/custom_tree.dart
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
packages/two_dimensional_scrollables/lib/src/tree_view/render_tree.dart
Outdated
Show resolved
Hide resolved
packages/two_dimensional_scrollables/lib/src/tree_view/tree.dart
Outdated
Show resolved
Hide resolved
auto label is removed for flutter/packages/6592, due to This PR has not met approval requirements for merging. Changes were requested by {TahaTesser}, please make the needed changes and resubmit this PR.
|
Oh right, the autosubmit bot has a bug where if anyone submits a "changes requested" review, even if it is dismissed, the bot can't tell. I'll wait for CI to pass and merge it manually. |
flutter/packages@87a02e3...ae4dd32 2024-05-17 engine-flutter-autoroll@skia.org Roll Flutter from 0d22d91 to 00425ef (14 revisions) (flutter/packages#6753) 2024-05-16 32538273+ValentinVignal@users.noreply.github.com [go_router_builder] Add test for `onExit` (flutter/packages#6614) 2024-05-16 32666446+hamdikahloun@users.noreply.github.com [camera_android_camerax] update to latest stable camerax 1.3.3 (flutter/packages#6737) 2024-05-16 magder@google.com [camera_avfoundation] Revert camera example PRODUCT_BUNDLE_IDENTIFIER (flutter/packages#6735) 2024-05-16 15619084+vashworth@users.noreply.github.com [file_selector_ios, image_picker_ios] Remove Swift Package Support (flutter/packages#6740) 2024-05-16 katelovett@google.com [two_dimensional_scrollables] TreeView (flutter/packages#6592) 2024-05-16 engine-flutter-autoroll@skia.org Roll Flutter from 39651e8 to 0d22d91 (23 revisions) (flutter/packages#6748) 2024-05-16 byoungchan.lee@gmx.com [pigeon][swift] Removes FlutterError in favor of PigeonError (flutter/packages#6611) 2024-05-16 15619084+vashworth@users.noreply.github.com [webview_flutter] Skip "Video playback policy" drive tests (flutter/packages#6747) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
**FYI for Reviewers:** Much of the API surface matches that of the 2D TreeView in flutter/packages#6592. If it changes here, it should change there, and vice versa. � [Design Document](https://docs.google.com/document/d/1-aFI7VjkF9yMkWpP94J8T_JREDS-M3bOak26PVehUYg/edit?usp=sharing) This adds classes and associated callbacks and controllers for TreeSliver. Core components: - TreeSliver - RenderTreeSliver - TreeSliverNode - TreeSliverController - TreeSliverStateMixin - TreeSliverIndentationType Fixes #114299 https://github.com/flutter/flutter/assets/16964204/3facd095-7262-4068-aa33-d713e2deca99 https://github.com/flutter/flutter/assets/16964204/f851ae30-8e71-45c7-82a4-9606986a5872
Reverts: #147171 Initiated by: QuncCccccc Reason for reverting: tree is red due to a test in this PR Original PR Author: Piinks Reviewed By: {QuncCccccc, TahaTesser, bleroux} This change reverts the following previous change: **FYI for Reviewers:** Much of the API surface matches that of the 2D TreeView in flutter/packages#6592. If it changes here, it should change there, and vice versa. 📜 [Design Document](https://docs.google.com/document/d/1-aFI7VjkF9yMkWpP94J8T_JREDS-M3bOak26PVehUYg/edit?usp=sharing) This adds classes and associated callbacks and controllers for TreeSliver. Core components: - TreeSliver - RenderTreeSliver - TreeSliverNode - TreeSliverController - TreeSliverStateMixin - TreeSliverIndentationType Fixes #114299 https://github.com/flutter/flutter/assets/16964204/3facd095-7262-4068-aa33-d713e2deca99 https://github.com/flutter/flutter/assets/16964204/f851ae30-8e71-45c7-82a4-9606986a5872
FYI for Reviewers: Much of the API surface matches that of the 1D SliverTree in flutter/flutter#147171 If it changes here, it should change there, and vice versa.
📜 Design Document
Adds classes and associated callbacks and controllers for TreeView. Core components:
Along with Span subclasses for trees:
Fixes flutter/flutter#42332
Fixes flutter/flutter#126298
treeView_0.mov
treeView_1.mov
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.