Skip to content

Commit

Permalink
feat(timer): scale down timer text responsively
Browse files Browse the repository at this point in the history
  • Loading branch information
GabinL21 committed Aug 5, 2023
1 parent f46a8fe commit 16db80f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/timer/view/timer_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ class TimerText extends StatelessWidget {
builder: (context, timerState) {
return BlocBuilder<SolveBloc, SolveState>(
builder: (context, solveState) {
return Text(
_getTimerTextString(timerState, solveState),
style: _getTimerTextStyle(context),
return FittedBox(
fit: BoxFit.scaleDown,
child: Text(
_getTimerTextString(timerState, solveState),
style: _getTimerTextStyle(context),
),
);
},
);
Expand Down

0 comments on commit 16db80f

Please sign in to comment.