ui: added rocket to mobile launch directions

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

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

@ -92,12 +92,21 @@ class _MobileBody extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Column( final paddingWidth = MediaQuery.of(context).size.width * 0.15;
mainAxisAlignment: MainAxisAlignment.spaceEvenly, final paddingHeight = MediaQuery.of(context).size.height * 0.075;
children: const [ return FittedBox(
_MobileLaunchControls(), child: Padding(
_MobileFlipperControls(), 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( return Column(
children: [ children: [
Text( Text(
l10n.tapAndHold, l10n.tapAndHoldRocket,
style: textStyle, style: textStyle,
), ),
Text.rich( Text.rich(

@ -31,7 +31,7 @@ void main() {
await tester.pumpApp(HowToPlayDialog()); await tester.pumpApp(HowToPlayDialog());
expect(find.text(l10n.howToPlay), findsOneWidget); expect(find.text(l10n.howToPlay), findsOneWidget);
expect(find.text(l10n.tipsForFlips), 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); expect(find.text(l10n.tapLeftRightScreen), findsOneWidget);
debugDefaultTargetPlatformOverride = null; debugDefaultTargetPlatformOverride = null;
}); });

Loading…
Cancel
Save