Skip to content

Commit 6ebade7

Browse files
committed
fix(widgets): correct row height misalignment in headline source
Replace IconButton with InkWell + Icon to precisely control padding and constraints, eliminating the default minimum touch target size that causes height misalignment on native platforms.
1 parent 707f237 commit 6ebade7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/shared/widgets/feed_core/headline_source_row.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,17 @@ class _HeadlineSourceRowState extends State<HeadlineSourceRow> {
102102
padding: const EdgeInsets.only(right: AppSpacing.xs),
103103
child: Text(formattedDate, style: dateTextStyle),
104104
),
105-
IconButton(
106-
padding: EdgeInsets.zero,
107-
constraints: const BoxConstraints(),
108-
icon: const Icon(Icons.more_horiz),
109-
onPressed: () => showModalBottomSheet<void>(
105+
// Use InkWell + Icon instead of IconButton to have precise control
106+
// over padding and constraints, avoiding the default minimum
107+
// touch target size that misaligns the row height on native.
108+
InkWell(
109+
customBorder: const CircleBorder(),
110+
onTap: () => showModalBottomSheet<void>(
110111
context: context,
111112
builder: (_) =>
112113
HeadlineActionsBottomSheet(headline: widget.headline),
113114
),
115+
child: const Icon(Icons.more_horiz, size: 20),
114116
),
115117
],
116118
),

0 commit comments

Comments
 (0)