From ff34bc24ac7612a1b7d1ed378ef21455d150ef0b Mon Sep 17 00:00:00 2001 From: Mark Fairless Date: Fri, 2 Aug 2024 10:01:58 -0500 Subject: [PATCH] fix: wrap header Text widgets in FittedBox (#24) * fix: wrap header Text widgets in FittedBox * fix: remove unnecessary args --- lib/music_player/view/music_player_page.dart | 10 +++++----- lib/overview/view/overview_page.dart | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/music_player/view/music_player_page.dart b/lib/music_player/view/music_player_page.dart index b2f63dd..526095f 100644 --- a/lib/music_player/view/music_player_page.dart +++ b/lib/music_player/view/music_player_page.dart @@ -435,11 +435,11 @@ class _MusicMenuHeader extends StatelessWidget { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text( - l10n.goodVibes, - style: AesTextStyles.headlineLarge, - overflow: TextOverflow.ellipsis, - maxLines: 2, + FittedBox( + child: Text( + l10n.goodVibes, + style: AesTextStyles.headlineLarge, + ), ), const SizedBox(height: 10), Text( diff --git a/lib/overview/view/overview_page.dart b/lib/overview/view/overview_page.dart index 6552847..9583cdc 100644 --- a/lib/overview/view/overview_page.dart +++ b/lib/overview/view/overview_page.dart @@ -94,11 +94,11 @@ class WelcomeCopy extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ const SizedBox(height: 50), - Text( - l10n.welcomeMessage, - maxLines: 2, - style: AesTextStyles.headlineLarge, - overflow: TextOverflow.ellipsis, + FittedBox( + child: Text( + l10n.welcomeMessage, + style: AesTextStyles.headlineLarge, + ), ), const SizedBox(height: 10), Text(