|
|
|
@ -17,9 +17,10 @@ class ScoreView extends StatelessWidget {
|
|
|
|
|
context.select((GameBloc bloc) => bloc.state.status.isGameOver);
|
|
|
|
|
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 16,
|
|
|
|
|
vertical: 2,
|
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
|
left: 12,
|
|
|
|
|
top: 2,
|
|
|
|
|
bottom: 2,
|
|
|
|
|
),
|
|
|
|
|
child: AnimatedSwitcher(
|
|
|
|
|
duration: kThemeAnimationDuration,
|
|
|
|
@ -50,19 +51,23 @@ class _ScoreDisplay extends StatelessWidget {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
final l10n = context.l10n;
|
|
|
|
|
|
|
|
|
|
return FittedBox(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
l10n.score.toLowerCase(),
|
|
|
|
|
style: Theme.of(context).textTheme.subtitle1,
|
|
|
|
|
return Row(
|
|
|
|
|
children: [
|
|
|
|
|
FittedBox(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
l10n.score.toLowerCase(),
|
|
|
|
|
style: Theme.of(context).textTheme.subtitle1,
|
|
|
|
|
),
|
|
|
|
|
const _ScoreText(),
|
|
|
|
|
const RoundCountDisplay(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
const _ScoreText(),
|
|
|
|
|
const RoundCountDisplay(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|