nausharipov commented on code in PR #23776:
URL: https://github.com/apache/beam/pull/23776#discussion_r1017097122
##########
learning/tour-of-beam/frontend/lib/pages/tour/widgets/group.dart:
##########
@@ -36,23 +36,42 @@ class GroupWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
- return ExpansionTileWrapper(
- ExpansionTile(
- tilePadding: EdgeInsets.zero,
- title: GroupTitleWidget(
- group: group,
- onTap: () => contentTreeController.onNodeTap(group),
- ),
- childrenPadding: const EdgeInsets.only(
- left: BeamSizes.size24,
- ),
- children: [
- GroupNodesWidget(
- nodes: group.nodes,
- contentTreeController: contentTreeController,
+ return AnimatedBuilder(
+ animation: contentTreeController,
+ builder: (context, child) {
+ final isExpanded =
contentTreeController.expandedIds.contains(group.id);
+
+ return ExpansionTileWrapper(
+ ExpansionTile(
Review Comment:
Does it need to contain all of `ExpansionTile` content?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]