From 2e15d2b4e98c91ee72291e68efbdef5143b99f1e Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Sat, 31 Jan 2026 10:06:52 +0100 Subject: [PATCH] fix: downloads not being tappable close #355 --- lib/widgets/download_tree_view.dart | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/widgets/download_tree_view.dart b/lib/widgets/download_tree_view.dart index 707a3558..ff5ede1c 100644 --- a/lib/widgets/download_tree_view.dart +++ b/lib/widgets/download_tree_view.dart @@ -593,16 +593,20 @@ class _DownloadTreeItemState extends State<_DownloadTreeItem> { borderRadius: 8.0, disableScale: true, useBackgroundFocus: true, - child: Container( - padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12), - child: Row( - children: [ - // Row content - Expanded(child: _buildRowContent(theme, canExpand)), + child: GestureDetector( + behavior: HitTestBehavior.opaque, + onTap: canExpand ? widget.onToggleExpansion : null, + child: Container( + padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12), + child: Row( + children: [ + // Row content + Expanded(child: _buildRowContent(theme, canExpand)), - // Action buttons - if (hasActions) _buildActions(), - ], + // Action buttons + if (hasActions) _buildActions(), + ], + ), ), ), ),