fix: Revert styling of Latest Commit card text

This commit is contained in:
Alberto Ponces 2022-09-07 13:04:59 +01:00
parent 2066bc6476
commit 825a57ee69

View File

@ -34,16 +34,7 @@ class _LatestCommitCardState extends State<LatestCommitCard> {
children: <Widget>[ children: <Widget>[
Row( Row(
children: <Widget>[ children: <Widget>[
I18nText( I18nText('latestCommitCard.patcherLabel'),
'latestCommitCard.patcherLabel',
child: Text(
'',
style: TextStyle(
fontWeight: FontWeight.bold,
color: Theme.of(context).colorScheme.secondary,
),
),
),
FutureBuilder<String>( FutureBuilder<String>(
future: _githubAPI.latestCommitTime( future: _githubAPI.latestCommitTime(
_managerAPI.getPatcherRepo(), _managerAPI.getPatcherRepo(),
@ -59,9 +50,6 @@ class _LatestCommitCardState extends State<LatestCommitCard> {
context, context,
'latestCommitCard.loadingLabel', 'latestCommitCard.loadingLabel',
), ),
style: TextStyle(
color: Theme.of(context).colorScheme.secondary,
),
), ),
), ),
], ],
@ -69,41 +57,18 @@ class _LatestCommitCardState extends State<LatestCommitCard> {
const SizedBox(height: 8), const SizedBox(height: 8),
Row( Row(
children: <Widget>[ children: <Widget>[
I18nText( I18nText('latestCommitCard.managerLabel'),
'latestCommitCard.managerLabel',
child: Text(
'',
style: TextStyle(
fontWeight: FontWeight.bold,
color: Theme.of(context).colorScheme.secondary,
),
),
),
FutureBuilder<String>( FutureBuilder<String>(
future: _githubAPI.latestCommitTime( future: _githubAPI.latestCommitTime(
_managerAPI.getManagerRepo(), _managerAPI.getManagerRepo(),
), ),
builder: (context, snapshot) => snapshot.hasData && builder: (context, snapshot) =>
snapshot.data!.isNotEmpty snapshot.hasData && snapshot.data!.isNotEmpty
? I18nText( ? I18nText(
'latestCommitCard.timeagoLabel', 'latestCommitCard.timeagoLabel',
translationParams: {'time': snapshot.data!}, translationParams: {'time': snapshot.data!},
child: Text(
'',
style: TextStyle(
color: Theme.of(context).colorScheme.secondary,
),
),
) )
: I18nText( : I18nText('latestCommitCard.loadingLabel'),
'latestCommitCard.loadingLabel',
child: Text(
'',
style: TextStyle(
color: Theme.of(context).colorScheme.secondary,
),
),
),
), ),
], ],
), ),