2021-02-28 02:38:52 +01:00
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
2021-03-08 00:32:18 +01:00
|
|
|
|
import 'package:gecko/globals.dart';
|
2021-02-28 02:38:52 +01:00
|
|
|
|
import 'package:gecko/screens/commonElements.dart';
|
2021-03-08 06:21:04 +01:00
|
|
|
|
import 'package:gecko/screens/onBoarding/6.dart';
|
2021-02-28 02:38:52 +01:00
|
|
|
|
|
|
|
|
|
// ignore: must_be_immutable
|
|
|
|
|
class OnboardingStepSeven extends StatelessWidget {
|
|
|
|
|
TextEditingController tplController = TextEditingController();
|
2021-03-08 01:08:26 +01:00
|
|
|
|
final int progress = 5;
|
2021-02-28 02:38:52 +01:00
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
|
2021-03-01 04:48:28 +01:00
|
|
|
|
CommonElements common = CommonElements();
|
|
|
|
|
|
2021-02-28 02:38:52 +01:00
|
|
|
|
return Scaffold(
|
|
|
|
|
extendBodyBehindAppBar: true,
|
|
|
|
|
body: SafeArea(
|
|
|
|
|
child: Column(children: <Widget>[
|
2021-03-08 17:23:56 +01:00
|
|
|
|
common.onboardingProgressBar(
|
|
|
|
|
context, 'Ma phrase de restauration', progress),
|
2021-03-01 04:48:28 +01:00
|
|
|
|
common.bubbleSpeakRich(
|
|
|
|
|
<TextSpan>[
|
|
|
|
|
TextSpan(text: "Munissez-vous d'"),
|
|
|
|
|
TextSpan(
|
|
|
|
|
text: 'un papier et d’un crayon\n',
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.bold)),
|
|
|
|
|
TextSpan(
|
|
|
|
|
text:
|
|
|
|
|
"afin de pouvoir noter votre phrase de restauration."),
|
|
|
|
|
],
|
2021-04-24 20:27:18 +02:00
|
|
|
|
textKey: Key('step5'),
|
2021-02-28 02:38:52 +01:00
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Align(
|
|
|
|
|
alignment: Alignment.bottomCenter,
|
2021-03-01 04:48:28 +01:00
|
|
|
|
child: Row(mainAxisSize: MainAxisSize.min, children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
padding: const EdgeInsets.only(bottom: 90),
|
|
|
|
|
child: common.bubbleSpeak(
|
|
|
|
|
"Moi, j’ai déjà essayé de\nmémoriser une phrase de\nrestauration, mais je n’ai\npas une mémoire\nd’éléphant.",
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/onBoarding/chopp-gecko.png',
|
|
|
|
|
height: 200,
|
|
|
|
|
),
|
|
|
|
|
]),
|
2021-02-28 02:38:52 +01:00
|
|
|
|
)),
|
2021-03-08 00:32:18 +01:00
|
|
|
|
SizedBox(height: isTall ? 120 : 50),
|
2021-02-28 02:38:52 +01:00
|
|
|
|
SizedBox(
|
2021-03-01 04:48:28 +01:00
|
|
|
|
width: 400,
|
2021-03-08 00:32:18 +01:00
|
|
|
|
height: 62,
|
2021-02-28 02:38:52 +01:00
|
|
|
|
child: ElevatedButton(
|
2021-04-24 20:27:18 +02:00
|
|
|
|
key: Key('goStep6'),
|
2021-02-28 02:38:52 +01:00
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
|
elevation: 5,
|
|
|
|
|
primary: Color(0xffD28928),
|
|
|
|
|
onPrimary: Colors.white, // foreground
|
|
|
|
|
),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
2021-03-08 17:23:56 +01:00
|
|
|
|
FaderTransition(
|
|
|
|
|
page: OnboardingStepEight(), isFast: true),
|
2021-02-28 02:38:52 +01:00
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: Text("J'ai de quoi noter",
|
|
|
|
|
style: TextStyle(fontSize: 20))),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 80),
|
|
|
|
|
]),
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
}
|