From a8ca70b43d340e075abb88ef09374e4fb3119b6c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 24 Aug 2026 16:00:46 +0000 Subject: [PATCH] fix(ui): make unchecked NewSimpleCheckbox visible in light themes The unchecked background resolved to colorScheme.surfaceContainerHighest, which is pure white in LightTheme, so the unselected checkbox was an invisible white disc on near-white list rows. In light brightness use onSurfaceVariant with alpha 80 instead; dark themes are unchanged. --- lib/src/widgets/new_list_row/new_simple_checkbox.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/widgets/new_list_row/new_simple_checkbox.dart b/lib/src/widgets/new_list_row/new_simple_checkbox.dart index b6eb7e8e6..5885b6bda 100644 --- a/lib/src/widgets/new_list_row/new_simple_checkbox.dart +++ b/lib/src/widgets/new_list_row/new_simple_checkbox.dart @@ -20,7 +20,9 @@ class NewSimpleCheckbox extends StatelessWidget { decoration: BoxDecoration( color: value ? Theme.of(context).colorScheme.primary - : Theme.of(context).colorScheme.surfaceContainerHighest, + : Theme.of(context).brightness == Brightness.light + ? Theme.of(context).colorScheme.onSurfaceVariant.withAlpha(80) + : Theme.of(context).colorScheme.surfaceContainerHighest, borderRadius: const BorderRadius.all(Radius.circular(50)), ), height: 24,