Skip to content

Commit

Permalink
Fixed center alignment of match time
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Nov 24, 2023
1 parent 07e4958 commit d1c7077
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions lib/widgets/nt4_widgets/single_topic/match_time.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,13 @@ class MatchTimeWidget extends StatelessWidget with NT4Widget {
return Stack(
fit: StackFit.expand,
children: [
Padding(
padding: const EdgeInsets.only(bottom: 10.0),
child: FittedBox(
alignment: Alignment.center,
fit: BoxFit.contain,
child: Text(
'${time.ceil()}',
style: TextStyle(
color: _getTimeColor(time.ceil().toDouble()),
),
FittedBox(
fit: BoxFit.contain,
child: Text(
'${time.ceil()}',
textAlign: TextAlign.center,
style: TextStyle(
color: _getTimeColor(time.ceil().toDouble()),
),
),
),
Expand Down

0 comments on commit d1c7077

Please sign in to comment.