颜色,基础组件重新封装,降低理解难度,分层更明显。入口更抽象

This commit is contained in:
Cody
2026-03-10 09:38:07 +08:00
parent ea3192bd65
commit ed93d556d6
13 changed files with 590 additions and 537 deletions

View File

@@ -29,11 +29,11 @@ class ThemeOptionTile extends StatelessWidget {
@override
Widget build(BuildContext context) {
final s = context.styles;
final c = context.colors;
return ListTile(
title: Text(label),
trailing: isSelected ? Icon(Icons.check, color: s.primary) : null,
trailing: isSelected ? Icon(Icons.check, color: c.brandPrimary) : null,
onTap: onTap,
);
}