ui: added rocket to mobile launch directions

pull/242/head
Jonathan Daniels 3 years ago
parent 9e5d6dccb8
commit 4579ee4ef2

@ -20,8 +20,8 @@
"@flipperControls": {
"description": "Text displayed on the how to play dialog with the flipper controls"
},
"tapAndHold": "Tap & Hold",
"@tapAndHold": {
"tapAndHoldRocket": "Tap & Hold Rocket",
"@tapAndHoldRocket": {
"description": "Text displayed on the how to launch on mobile"
},
"to": "to",

@ -92,12 +92,21 @@ class _MobileBody extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: const [
_MobileLaunchControls(),
_MobileFlipperControls(),
],
final paddingWidth = MediaQuery.of(context).size.width * 0.15;
final paddingHeight = MediaQuery.of(context).size.height * 0.075;
return FittedBox(
child: Padding(
padding: EdgeInsets.symmetric(
horizontal: paddingWidth,
),
child: Column(
children: [
const _MobileLaunchControls(),
SizedBox(height: paddingHeight),
const _MobileFlipperControls(),
],
),
),
);
}
}
@ -112,7 +121,7 @@ class _MobileLaunchControls extends StatelessWidget {
return Column(
children: [
Text(
l10n.tapAndHold,
l10n.tapAndHoldRocket,
style: textStyle,
),
Text.rich(

@ -31,7 +31,7 @@ void main() {
await tester.pumpApp(HowToPlayDialog());
expect(find.text(l10n.howToPlay), findsOneWidget);
expect(find.text(l10n.tipsForFlips), findsOneWidget);
expect(find.text(l10n.tapAndHold), findsOneWidget);
expect(find.text(l10n.tapAndHoldRocket), findsOneWidget);
expect(find.text(l10n.tapLeftRightScreen), findsOneWidget);
debugDefaultTargetPlatformOverride = null;
});

Loading…
Cancel
Save