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/5.dart ' ;
2021-02-28 02:38:52 +01:00
// ignore: must_be_immutable
class OnboardingStepFive extends StatelessWidget {
TextEditingController tplController = TextEditingController ( ) ;
2021-03-08 01:08:26 +01:00
final int progress = 4 ;
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 . bubbleSpeak (
" Par contre, attention : \n \n Dans une blockchain, il n’ y a pas de procédure de récupération de trousseau. \n \n Si vous perdez votre phrase de restauration, je ne pourrai pas vous la communiquer, et vous ne pourrez donc plus jamais accéder à votre compte. " ,
2021-02-28 02:38:52 +01:00
) ,
2021-03-08 00:32:18 +01:00
SizedBox ( height: isTall ? 30 : 10 ) ,
2021-02-28 02:38:52 +01:00
Image . asset (
' assets/onBoarding/maison-qui-brule.png ' ,
2021-03-08 00:32:18 +01:00
width: 320 * ratio ,
2021-02-28 02:38:52 +01:00
) ,
Expanded (
child: Align (
alignment: Alignment . bottomCenter ,
child: SizedBox (
2021-03-01 04:48:28 +01:00
width: 400 ,
height: 62 ,
2021-02-28 02:38:52 +01:00
child: ElevatedButton (
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: OnboardingStepSeven ( ) , isFast: true ) ,
2021-02-28 02:38:52 +01:00
) ;
} ,
child: Text ( " J'ai compris " ,
style: TextStyle ( fontSize: 20 ) ) ) ,
) ) ) ,
SizedBox ( height: 80 ) ,
] ) ,
) ) ;
}
}