2021-11-14 19:21:20 +01:00
|
|
|
// ignore_for_file: file_names
|
|
|
|
|
2021-03-06 22:26:30 +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-11-14 19:21:20 +01:00
|
|
|
import 'package:gecko/screens/common_elements.dart';
|
2021-12-24 15:27:38 +01:00
|
|
|
import 'package:gecko/screens/myWallets/wallets_home.dart';
|
2021-03-06 22:26:30 +01:00
|
|
|
|
|
|
|
// ignore: must_be_immutable
|
|
|
|
class OnboardingStepFiveteen extends StatelessWidget {
|
|
|
|
TextEditingController tplController = TextEditingController();
|
2021-03-08 01:08:26 +01:00
|
|
|
final int progress = 12;
|
2021-03-06 22:26:30 +01:00
|
|
|
|
2021-12-23 12:36:09 +01:00
|
|
|
OnboardingStepFiveteen({Key? key}) : super(key: key);
|
2021-11-14 19:21:20 +01:00
|
|
|
|
2021-03-06 22:26:30 +01:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
|
|
|
|
CommonElements common = CommonElements();
|
|
|
|
|
|
|
|
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-06 22:26:30 +01:00
|
|
|
common.bubbleSpeak(
|
|
|
|
"Top !\n\nVotre trousseau de clef et votre portefeuille ont été créés avec un immense succès.\n\nFélicitations !",
|
2021-11-14 19:21:20 +01:00
|
|
|
textKey: const Key('step13'),
|
2021-03-06 22:26:30 +01:00
|
|
|
),
|
2021-03-08 00:32:18 +01:00
|
|
|
SizedBox(height: isTall ? 20 : 10),
|
2021-03-06 22:26:30 +01:00
|
|
|
Image.asset(
|
|
|
|
'assets/onBoarding/gecko-clin.gif',
|
2021-03-08 00:32:18 +01:00
|
|
|
height: isTall ? 400 : 300,
|
2021-03-06 22:26:30 +01:00
|
|
|
),
|
|
|
|
Expanded(
|
2021-12-24 15:27:38 +01:00
|
|
|
child: Align(
|
|
|
|
alignment: Alignment.bottomCenter,
|
|
|
|
child: SizedBox(
|
|
|
|
width: 400,
|
|
|
|
height: 62,
|
|
|
|
child: ElevatedButton(
|
|
|
|
key: const Key('goWalletHome'),
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
elevation: 5,
|
|
|
|
primary: orangeC,
|
|
|
|
onPrimary: Colors.white, // foreground
|
|
|
|
),
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.pushAndRemoveUntil(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(builder: (context) {
|
|
|
|
return const WalletsHome();
|
|
|
|
}),
|
|
|
|
ModalRoute.withName('/'),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: const Text("Accéder à mes portefeuilles",
|
|
|
|
style: TextStyle(fontSize: 20))),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2021-11-14 19:21:20 +01:00
|
|
|
const SizedBox(height: 80),
|
2021-03-06 22:26:30 +01:00
|
|
|
]),
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|