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