Skip to content

Commit

Permalink
decrease spacing and use primary color on translation icon (fix: #35)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsharley committed Jun 20, 2024
1 parent de122b2 commit b999f64
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/tweet/tweet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ class TweetTileState extends State<TweetTile> with SingleTickerProviderStateMixi
Widget translateButton;
switch (_translationStatus) {
case TranslationStatus.original:
translateButton = _createFooterIconButton(Icons.translate,
Colors.blue.harmonizeWith(Theme.of(context).colorScheme.primary), null, () async => onClickTranslate());
translateButton = _createFooterIconButton(
Icons.translate, Theme.of(context).colorScheme.primary, null, () async => onClickTranslate());
break;
case TranslationStatus.translating:
translateButton = const Padding(
Expand Down Expand Up @@ -641,7 +641,7 @@ class TweetTileState extends State<TweetTile> with SingleTickerProviderStateMixi
quotedTweet,
TweetCard(tweet: tweet, card: tweet.card),
Container(
alignment: Alignment.center,
alignment: Alignment.topCenter,
margin: const EdgeInsets.symmetric(horizontal: 8),
child: Scrollbar(
child: SingleChildScrollView(
Expand All @@ -659,9 +659,7 @@ class TweetTileState extends State<TweetTile> with SingleTickerProviderStateMixi
if (tweet.favoriteCount != null)
_createFooterTextButton(
Icons.favorite_border, numberFormat.format(tweet.favoriteCount)),
const SizedBox(
width: 8.0,
),
const Divider(),
Consumer<SavedTweetModel>(builder: (context, model, child) {
var isSaved = model.isSaved(tweet.idStr!);
if (isSaved) {
Expand Down

0 comments on commit b999f64

Please sign in to comment.