Fix clear log button

This commit is contained in:
Foti Dim
2026-01-12 17:48:58 +01:00
parent 1adfa9b485
commit 395bb548c9
2 changed files with 28 additions and 29 deletions
@@ -158,40 +158,39 @@ class ResultWidget extends StatelessWidget {
Widget _buildLogItem(ColorScheme colorScheme, int index) {
var reversedIndex = results.length - index - 1;
final log = results[reversedIndex];
return InkWell(
onTap: () => onClearTap(reversedIndex),
child: Container(
padding: const EdgeInsets.symmetric(
horizontal: 16,
vertical: 12,
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(
Icons.circle,
size: 6,
color: colorScheme.primary.withValues(alpha: 0.6),
),
const SizedBox(width: 12),
Expanded(
child: SelectableText(
log,
style: TextStyle(
fontSize: 12,
fontFamily: 'monospace',
color: colorScheme.onSurface,
),
return Container(
padding: const EdgeInsets.symmetric(
horizontal: 16,
vertical: 12,
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: SelectableText(
log,
style: TextStyle(
fontSize: 12,
fontFamily: 'monospace',
color: colorScheme.onSurface,
),
),
const SizedBox(width: 8),
Icon(
),
const SizedBox(width: 8),
IconButton(
icon: Icon(
Icons.close,
size: 16,
color: colorScheme.onSurface.withValues(alpha: 0.4),
),
],
),
onPressed: () => onClearTap(reversedIndex),
padding: EdgeInsets.zero,
constraints: const BoxConstraints(
minWidth: 24,
minHeight: 24,
),
),
],
),
);
}
+1 -1
View File
@@ -632,7 +632,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.1+3"
version: "1.1.0"
url_launcher:
dependency: "direct main"
description: