65 lines
2.4 KiB
Dart
65 lines
2.4 KiB
Dart
import 'package:flutter/services.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:gecko/globals.dart';
|
|
import 'package:gecko/screens/commonElements.dart';
|
|
import 'package:gecko/screens/onBoarding/4.dart';
|
|
|
|
// ignore: must_be_immutable
|
|
class OnboardingStepFor extends StatelessWidget {
|
|
TextEditingController tplController = TextEditingController();
|
|
final int progress = 3;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
|
|
CommonElements common = CommonElements();
|
|
|
|
return Scaffold(
|
|
extendBodyBehindAppBar: true,
|
|
body: SafeArea(
|
|
child: Column(children: <Widget>[
|
|
common.onboardingProgressBar(
|
|
context, 'Ma phrase de restauration', progress),
|
|
common.bubbleSpeak(
|
|
"Si un jour vous changez de téléphone, il vous suffira de me redonner votre phrase de restauration pour recréer votre trousseau.",
|
|
textKey: Key('step3'),
|
|
),
|
|
SizedBox(height: isTall ? 15 : 0),
|
|
// Row(children: <Widget>[
|
|
// Align(
|
|
// alignment: Alignment.centerRight,
|
|
// child:
|
|
Image.asset(
|
|
'assets/onBoarding/plusieurs-appareils-un-trousseau.png',
|
|
height: 400 * ratio,
|
|
),
|
|
// ]),
|
|
Expanded(
|
|
child: Align(
|
|
alignment: Alignment.bottomCenter,
|
|
child: SizedBox(
|
|
width: 400,
|
|
height: 62,
|
|
child: ElevatedButton(
|
|
key: Key('goStep4'),
|
|
style: ElevatedButton.styleFrom(
|
|
elevation: 5,
|
|
primary: Color(0xffD28928),
|
|
onPrimary: Colors.white, // foreground
|
|
),
|
|
onPressed: () {
|
|
Navigator.push(
|
|
context,
|
|
FaderTransition(
|
|
page: OnboardingStepFive(), isFast: true),
|
|
);
|
|
},
|
|
child: Text("J'ai compris",
|
|
style: TextStyle(fontSize: 20))),
|
|
))),
|
|
SizedBox(height: 80),
|
|
]),
|
|
));
|
|
}
|
|
}
|