minor fix

This commit is contained in:
Thibault Deckers 2022-01-30 11:40:26 +09:00
parent 3fb6012915
commit dc0f019e2f
2 changed files with 6 additions and 2 deletions

View file

@ -76,11 +76,13 @@ class FilterTable<T extends Comparable> extends StatelessWidget {
progressColor: stringToColor(label),
animation: true,
isRTL: isRtl,
padding: EdgeInsets.symmetric(horizontal: lineHeight),
// TODO TLAD handle low percents being rendered with wrong radius clip
barRadius: Radius.circular(lineHeight / 2),
center: Text(
intl.NumberFormat.percentPattern().format(percent),
style: const TextStyle(shadows: Constants.embossShadows),
),
padding: EdgeInsets.symmetric(horizontal: lineHeight),
),
Text(
'$count',

View file

@ -111,11 +111,13 @@ class StatsPage extends StatelessWidget {
animation: animate,
isRTL: context.isRtl,
leading: const Icon(AIcons.location),
padding: EdgeInsets.symmetric(horizontal: lineHeight),
// TODO TLAD handle low percents being rendered with wrong radius clip
barRadius: Radius.circular(lineHeight / 2),
center: Text(
intl.NumberFormat.percentPattern().format(withGpsPercent),
style: const TextStyle(shadows: Constants.embossShadows),
),
padding: EdgeInsets.symmetric(horizontal: lineHeight),
),
),
const SizedBox(height: 8),