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) {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user