Skip to content

Commit

Permalink
style: colors in dashboard config
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasn committed Jul 16, 2023
1 parent e64dc16 commit 742fe53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/pages/settings/dashboards/dashboard_item_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ class HabitItemCard extends StatelessWidget {
AsyncSnapshot<HabitDefinition?> snapshot,
) {
final habitDefinition = snapshot.data;
debugPrint(habitDefinition.toString());

return ItemCard(
leadingIcon: MdiIcons.lightningBolt,
Expand All @@ -179,9 +178,10 @@ class ItemCard extends StatelessWidget {

@override
Widget build(BuildContext context) {
final colorScheme = Theme.of(context).colorScheme;
return Card(
child: ListTile(
tileColor: Colors.transparent,
tileColor: colorScheme.secondaryContainer,
onTap: onTap,
contentPadding: const EdgeInsets.symmetric(
vertical: 8,
Expand All @@ -190,10 +190,12 @@ class ItemCard extends StatelessWidget {
leading: Icon(
leadingIcon,
size: 32,
color: colorScheme.onSecondaryContainer,
),
title: Text(
title,
softWrap: true,
style: TextStyle(color: colorScheme.onSecondaryContainer),
),
),
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: lotti
description: Achieve your goals and keep your data private with Lotti.
publish_to: 'none'
version: 0.9.394+2287
version: 0.9.394+2288

msix_config:
display_name: LottiApp
Expand Down

0 comments on commit 742fe53

Please sign in to comment.