fix(app): use native selected affordance in runs sort sheet

This commit is contained in:
2026-10-31 15:15:45 +00:00
parent ea498e88db
commit 5adcc0a379
2 changed files with 41 additions and 2 deletions
+12 -2
View File
@@ -227,8 +227,18 @@ class RunsBarActions {
// The current order is the sheet's default (bold) action.
isDefaultAction: controller.sort == option.$1,
onPressed: () => Navigator.pop(sheet, option.$1),
child: Text(
'${controller.sort == option.$1 ? '✓ ' : ''}${option.$2}',
child: Semantics(
selected: controller.sort == option.$1,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(option.$2),
if (controller.sort == option.$1) ...[
const SizedBox(width: 8),
const Icon(CupertinoIcons.checkmark),
],
],
),
),
),
],