From 825a57ee69134ab2629611e5176b3a292dde7e2b Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Wed, 7 Sep 2022 13:04:59 +0100 Subject: [PATCH] fix: Revert styling of Latest Commit card text --- .../widgets/homeView/latest_commit_card.dart | 53 ++++--------------- 1 file changed, 9 insertions(+), 44 deletions(-) diff --git a/lib/ui/widgets/homeView/latest_commit_card.dart b/lib/ui/widgets/homeView/latest_commit_card.dart index ceaa2cb5..6593ef03 100644 --- a/lib/ui/widgets/homeView/latest_commit_card.dart +++ b/lib/ui/widgets/homeView/latest_commit_card.dart @@ -34,16 +34,7 @@ class _LatestCommitCardState extends State { children: [ Row( children: [ - I18nText( - 'latestCommitCard.patcherLabel', - child: Text( - '', - style: TextStyle( - fontWeight: FontWeight.bold, - color: Theme.of(context).colorScheme.secondary, - ), - ), - ), + I18nText('latestCommitCard.patcherLabel'), FutureBuilder( future: _githubAPI.latestCommitTime( _managerAPI.getPatcherRepo(), @@ -59,9 +50,6 @@ class _LatestCommitCardState extends State { context, 'latestCommitCard.loadingLabel', ), - style: TextStyle( - color: Theme.of(context).colorScheme.secondary, - ), ), ), ], @@ -69,41 +57,18 @@ class _LatestCommitCardState extends State { const SizedBox(height: 8), Row( children: [ - I18nText( - 'latestCommitCard.managerLabel', - child: Text( - '', - style: TextStyle( - fontWeight: FontWeight.bold, - color: Theme.of(context).colorScheme.secondary, - ), - ), - ), + I18nText('latestCommitCard.managerLabel'), FutureBuilder( future: _githubAPI.latestCommitTime( _managerAPI.getManagerRepo(), ), - builder: (context, snapshot) => snapshot.hasData && - snapshot.data!.isNotEmpty - ? I18nText( - 'latestCommitCard.timeagoLabel', - translationParams: {'time': snapshot.data!}, - child: Text( - '', - style: TextStyle( - color: Theme.of(context).colorScheme.secondary, - ), - ), - ) - : I18nText( - 'latestCommitCard.loadingLabel', - child: Text( - '', - style: TextStyle( - color: Theme.of(context).colorScheme.secondary, - ), - ), - ), + builder: (context, snapshot) => + snapshot.hasData && snapshot.data!.isNotEmpty + ? I18nText( + 'latestCommitCard.timeagoLabel', + translationParams: {'time': snapshot.data!}, + ) + : I18nText('latestCommitCard.loadingLabel'), ), ], ),