fix(app): use native selected affordance in runs sort sheet
This commit is contained in:
@@ -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),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user