Skip to content

Commit

Permalink
Reduce text size of homework tile (#1274)
Browse files Browse the repository at this point in the history
| Before | After |
|--------|--------|
| ![Screenshot 2024-01-19 at 14 29
18](https://github.com/SharezoneApp/sharezone-app/assets/24459435/03be6edb-7c72-41d7-aa2a-13b9cb2efa6c)
|
![image](https://github.com/SharezoneApp/sharezone-app/assets/24459435/5a5ef3d7-36d4-4912-b14a-0a8739dbde0b)
|

Homework tiles used too much space. I think this is better.
  • Loading branch information
nilsreichardt authored Feb 21, 2024
1 parent 18166a0 commit 460e6e8
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions app/lib/homework/shared/homework_tile_template.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,13 @@ class HomeworkTileTemplate extends StatelessWidget {
title,
overflow: TextOverflow.ellipsis,
maxLines: 2,
style: Theme.of(context)
.textTheme
.bodyLarge!
.apply(fontSizeFactor: 1.1),
style: Theme.of(context).textTheme.bodyLarge!,
),
subtitle: Padding(
padding: const EdgeInsets.only(bottom: 6),
child: Text.rich(
TextSpan(children: <TextSpan>[
TextSpan(text: "$courseName\n"),
TextSpan(
text: todoDate, style: TextStyle(color: todoDateColor)),
], style: TextStyle(color: Colors.grey[600])),
),
subtitle: Text.rich(
TextSpan(children: <TextSpan>[
TextSpan(text: "$courseName\n"),
TextSpan(text: todoDate, style: TextStyle(color: todoDateColor)),
], style: TextStyle(color: Colors.grey[600])),
),
leading: CircleAvatar(
backgroundColor: courseColor.withOpacity(0.2),
Expand Down

0 comments on commit 460e6e8

Please sign in to comment.