Code improvements

This commit is contained in:
Juan Gilsanz Polo
2025-04-03 22:26:14 +02:00
parent 7982644c23
commit 93ebb1de40
17 changed files with 114 additions and 107 deletions

View File

@@ -14,7 +14,7 @@ class CustomListTile extends StatelessWidget {
final Color? color;
const CustomListTile({
Key? key,
super.key,
required this.title,
this.subtitle,
this.subtitleWidget,
@@ -26,7 +26,7 @@ class CustomListTile extends StatelessWidget {
this.disabled,
this.onHover,
this.color,
}) : super(key: key);
});
@override
Widget build(BuildContext context) {
@@ -76,20 +76,21 @@ class CustomListTile extends StatelessWidget {
Text(
subtitle!,
style: TextStyle(
color: disabled == true
? Theme.of(context).colorScheme.onSurfaceVariant.withOpacity(0.38)
: Theme.of(context).colorScheme.onSurfaceVariant,
fontSize: 14,
fontWeight: FontWeight.w400),
color: disabled == true
? Theme.of(context).colorScheme.onSurfaceVariant.withOpacity(0.38)
: Theme.of(context).colorScheme.onSurfaceVariant,
fontSize: 14,
fontWeight: FontWeight.w400,
),
),
]
],
],
),
)
),
],
),
),
if (trailing != null) ...[const SizedBox(width: 16), trailing!]
if (trailing != null) ...[const SizedBox(width: 16), trailing!],
],
),
),