颜色,基础组件重新封装,降低理解难度,分层更明显。入口更抽象
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user