Skip to content

Commit

Permalink
fix: wrap header Text widgets in FittedBox (#24)
Browse files Browse the repository at this point in the history
* fix: wrap header Text widgets in FittedBox

* fix: remove unnecessary args
  • Loading branch information
marwfair authored Aug 2, 2024
1 parent 172547c commit ff34bc2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions lib/music_player/view/music_player_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 5 additions & 5 deletions lib/overview/view/overview_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ff34bc2

Please sign in to comment.