make percentage cleared cards shorter
All checks were successful
Release / meta (push) Successful in 8s
Release / linux-build (push) Successful in 6m46s
Release / android-build (push) Successful in 14m42s
Release / release-dev (push) Successful in 26s
Release / release-master (push) Successful in 24s

This commit is contained in:
2025-12-26 22:51:16 +00:00
parent 0971124fd4
commit 54026aa93a

View File

@@ -205,14 +205,14 @@ class _ProfilePageState extends State<ProfilePage> {
if (children.isEmpty && !isLoadingSection) {
children.add(
const Padding(
padding: EdgeInsets.symmetric(vertical: 8.0),
padding: EdgeInsets.symmetric(vertical: 6.0),
child: Text('No awards'),
),
);
}
return Card(
margin: const EdgeInsets.symmetric(vertical: 6.0),
margin: const EdgeInsets.symmetric(vertical: 4.0),
child: ExpansionTile(
key: ValueKey(code),
tilePadding: const EdgeInsets.symmetric(horizontal: 12.0),
@@ -452,7 +452,7 @@ class _ProfilePageState extends State<ProfilePage> {
return Card(
margin: const EdgeInsets.symmetric(vertical: 4.0),
child: Padding(
padding: const EdgeInsets.all(10.0),
padding: const EdgeInsets.all(8.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -548,13 +548,13 @@ class _ProfilePageState extends State<ProfilePage> {
),
),
if (!reachedTopTier) ...[
const SizedBox(height: 6),
const SizedBox(height: 4),
LinearProgressIndicator(
value: progress.required == 0 ? 0 : pct / 100,
minHeight: 6,
),
Padding(
padding: const EdgeInsets.only(top: 4.0),
padding: const EdgeInsets.only(top: 2.0),
child: Text(
'${pct.toStringAsFixed(0)}% to $nextTier award',
style: Theme.of(context).textTheme.bodyMedium,