style(all): apply flutter formatter
This commit is contained in:
parent
4bb4991e04
commit
1659db18d3
|
@ -19,7 +19,8 @@ class OnboardingStepOne extends StatelessWidget {
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(children: <Widget>[
|
child: Column(children: <Widget>[
|
||||||
common.onboardingProgressBar(context, 'Nouveau portefeuilles', progress),
|
common.onboardingProgressBar(
|
||||||
|
context, 'Nouveau portefeuilles', progress),
|
||||||
common.bubbleSpeak(
|
common.bubbleSpeak(
|
||||||
"Il semblerait que vous n’ayez pas encore de trousseau.\n\nUn trousseau vous permet de gérer un ou plusieurs portefeuilles.",
|
"Il semblerait que vous n’ayez pas encore de trousseau.\n\nUn trousseau vous permet de gérer un ou plusieurs portefeuilles.",
|
||||||
),
|
),
|
||||||
|
@ -41,8 +42,10 @@ class OnboardingStepOne extends StatelessWidget {
|
||||||
onPrimary: Colors.white, // foreground
|
onPrimary: Colors.white, // foreground
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(context,
|
Navigator.push(
|
||||||
FaderTransition(page: OnboardingStepTwo(), isFast: true));
|
context,
|
||||||
|
FaderTransition(
|
||||||
|
page: OnboardingStepTwo(), isFast: true));
|
||||||
},
|
},
|
||||||
child: Text('Créer mon trousseau',
|
child: Text('Créer mon trousseau',
|
||||||
style: TextStyle(fontSize: 20))),
|
style: TextStyle(fontSize: 20))),
|
||||||
|
|
|
@ -13,12 +13,13 @@ class OnboardingStepTwelve extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
|
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
|
||||||
CommonElements common = CommonElements();
|
CommonElements common = CommonElements();
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(children: <Widget>[
|
child: Column(children: <Widget>[
|
||||||
common.onboardingProgressBar(context, 'Ma phrase de restauration', progress),
|
common.onboardingProgressBar(
|
||||||
|
context, 'Ma phrase de restauration', progress),
|
||||||
common.bubbleSpeak(
|
common.bubbleSpeak(
|
||||||
"Si un jour vous changez de téléphone, votre code secret sera différent, mais il vous suffira de me redonner votre phrase de restauration pour recréer votre trousseau."),
|
"Si un jour vous changez de téléphone, votre code secret sera différent, mais il vous suffira de me redonner votre phrase de restauration pour recréer votre trousseau."),
|
||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
|
@ -41,7 +42,8 @@ class OnboardingStepTwelve extends StatelessWidget {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
FaderTransition(page: OnboardingStepThirteen(), isFast: true),
|
FaderTransition(
|
||||||
|
page: OnboardingStepThirteen(), isFast: true),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Text("Générer le code secret",
|
child: Text("Générer le code secret",
|
||||||
|
|
|
@ -33,7 +33,8 @@ class OnboardingStepThirteen extends StatelessWidget {
|
||||||
generatedWallet = snapshot.data;
|
generatedWallet = snapshot.data;
|
||||||
return Visibility(visible: false, child: Text(''));
|
return Visibility(visible: false, child: Text(''));
|
||||||
}),
|
}),
|
||||||
common.onboardingProgressBar(context, 'Ma phrase de restauration', progress),
|
common.onboardingProgressBar(
|
||||||
|
context, 'Ma phrase de restauration', progress),
|
||||||
common.bubbleSpeakRich(<TextSpan>[
|
common.bubbleSpeakRich(<TextSpan>[
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text:
|
text:
|
||||||
|
@ -108,7 +109,8 @@ class OnboardingStepThirteen extends StatelessWidget {
|
||||||
context,
|
context,
|
||||||
FaderTransition(
|
FaderTransition(
|
||||||
page: OnboardingStepFourteen(
|
page: OnboardingStepFourteen(
|
||||||
generatedWallet: generatedWallet), isFast: true),
|
generatedWallet: generatedWallet),
|
||||||
|
isFast: true),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Text("J'ai noté mon code secret",
|
child: Text("J'ai noté mon code secret",
|
||||||
|
|
|
@ -39,7 +39,8 @@ class OnboardingStepFourteen extends StatelessWidget {
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(children: <Widget>[
|
child: Column(children: <Widget>[
|
||||||
common.onboardingProgressBar(context, 'Ma phrase de restauration', progress),
|
common.onboardingProgressBar(
|
||||||
|
context, 'Ma phrase de restauration', progress),
|
||||||
common.bubbleSpeak(
|
common.bubbleSpeak(
|
||||||
"Avez-vous bien mémorisé votre code secret ?\n\nVérifions ça ensemble !\n\nTapez votre code secret dans le champ ci-dessous (après c’est fini, promis-juré-gecko)."),
|
"Avez-vous bien mémorisé votre code secret ?\n\nVérifions ça ensemble !\n\nTapez votre code secret dans le champ ci-dessous (après c’est fini, promis-juré-gecko)."),
|
||||||
SizedBox(height: isTall ? 80 : 10),
|
SizedBox(height: isTall ? 80 : 10),
|
||||||
|
|
|
@ -18,7 +18,8 @@ class OnboardingStepFiveteen extends StatelessWidget {
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(children: <Widget>[
|
child: Column(children: <Widget>[
|
||||||
common.onboardingProgressBar(context, 'Ma phrase de restauration', progress),
|
common.onboardingProgressBar(
|
||||||
|
context, 'Ma phrase de restauration', progress),
|
||||||
common.bubbleSpeak(
|
common.bubbleSpeak(
|
||||||
"Top !\n\nVotre trousseau de clef et votre portefeuille ont été créés avec un immense succès.\n\nFélicitations !",
|
"Top !\n\nVotre trousseau de clef et votre portefeuille ont été créés avec un immense succès.\n\nFélicitations !",
|
||||||
),
|
),
|
||||||
|
|
|
@ -20,7 +20,8 @@ class OnboardingStepTwo extends StatelessWidget {
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(children: <Widget>[
|
child: Column(children: <Widget>[
|
||||||
common.onboardingProgressBar(context, 'Nouveau portefeuilles', progress),
|
common.onboardingProgressBar(
|
||||||
|
context, 'Nouveau portefeuilles', progress),
|
||||||
common.bubbleSpeak(
|
common.bubbleSpeak(
|
||||||
"Un trousseau est créé à partir d’une phrase de restauration.",
|
"Un trousseau est créé à partir d’une phrase de restauration.",
|
||||||
),
|
),
|
||||||
|
@ -42,7 +43,8 @@ class OnboardingStepTwo extends StatelessWidget {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
FaderTransition(page: OnboardingStepFor(), isFast: true),
|
FaderTransition(
|
||||||
|
page: OnboardingStepFor(), isFast: true),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Text("D'accord", style: TextStyle(fontSize: 20)),
|
child: Text("D'accord", style: TextStyle(fontSize: 20)),
|
||||||
|
|
|
@ -18,7 +18,8 @@ class OnboardingStepFor extends StatelessWidget {
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(children: <Widget>[
|
child: Column(children: <Widget>[
|
||||||
common.onboardingProgressBar(context, 'Ma phrase de restauration', progress),
|
common.onboardingProgressBar(
|
||||||
|
context, 'Ma phrase de restauration', progress),
|
||||||
common.bubbleSpeak(
|
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.",
|
"Si un jour vous changez de téléphone, il vous suffira de me redonner votre phrase de restauration pour recréer votre trousseau.",
|
||||||
),
|
),
|
||||||
|
@ -47,7 +48,8 @@ class OnboardingStepFor extends StatelessWidget {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
FaderTransition(page: OnboardingStepFive(), isFast: true),
|
FaderTransition(
|
||||||
|
page: OnboardingStepFive(), isFast: true),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Text("J'ai compris",
|
child: Text("J'ai compris",
|
||||||
|
|
|
@ -18,7 +18,8 @@ class OnboardingStepFive extends StatelessWidget {
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(children: <Widget>[
|
child: Column(children: <Widget>[
|
||||||
common.onboardingProgressBar(context, 'Ma phrase de restauration', progress),
|
common.onboardingProgressBar(
|
||||||
|
context, 'Ma phrase de restauration', progress),
|
||||||
common.bubbleSpeak(
|
common.bubbleSpeak(
|
||||||
"Par contre, attention :\n\nDans une blockchain, il n’y a pas de procédure de récupération de trousseau.\n\nSi vous perdez votre phrase de restauration, je ne pourrai pas vous la communiquer, et vous ne pourrez donc plus jamais accéder à votre compte.",
|
"Par contre, attention :\n\nDans une blockchain, il n’y a pas de procédure de récupération de trousseau.\n\nSi vous perdez votre phrase de restauration, je ne pourrai pas vous la communiquer, et vous ne pourrez donc plus jamais accéder à votre compte.",
|
||||||
),
|
),
|
||||||
|
@ -42,7 +43,8 @@ class OnboardingStepFive extends StatelessWidget {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
FaderTransition(page: OnboardingStepSeven(), isFast: true),
|
FaderTransition(
|
||||||
|
page: OnboardingStepSeven(), isFast: true),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Text("J'ai compris",
|
child: Text("J'ai compris",
|
||||||
|
|
|
@ -18,7 +18,8 @@ class OnboardingStepSeven extends StatelessWidget {
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(children: <Widget>[
|
child: Column(children: <Widget>[
|
||||||
common.onboardingProgressBar(context, 'Ma phrase de restauration', progress),
|
common.onboardingProgressBar(
|
||||||
|
context, 'Ma phrase de restauration', progress),
|
||||||
common.bubbleSpeakRich(
|
common.bubbleSpeakRich(
|
||||||
<TextSpan>[
|
<TextSpan>[
|
||||||
TextSpan(text: "Munissez-vous d'"),
|
TextSpan(text: "Munissez-vous d'"),
|
||||||
|
@ -59,7 +60,8 @@ class OnboardingStepSeven extends StatelessWidget {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
FaderTransition(page: OnboardingStepEight(), isFast: true),
|
FaderTransition(
|
||||||
|
page: OnboardingStepEight(), isFast: true),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Text("J'ai de quoi noter",
|
child: Text("J'ai de quoi noter",
|
||||||
|
|
|
@ -19,7 +19,8 @@ class OnboardingStepEight extends StatelessWidget {
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(children: <Widget>[
|
child: Column(children: <Widget>[
|
||||||
common.onboardingProgressBar(context, 'Ma phrase de restauration', progress),
|
common.onboardingProgressBar(
|
||||||
|
context, 'Ma phrase de restauration', progress),
|
||||||
common.bubbleSpeak(
|
common.bubbleSpeak(
|
||||||
"J’ai généré votre phrase de restauration !\nTâchez de la garder bien secrète, car elle permet à quiconque la connaît d’accéder à tous vos portefeuilles.",
|
"J’ai généré votre phrase de restauration !\nTâchez de la garder bien secrète, car elle permet à quiconque la connaît d’accéder à tous vos portefeuilles.",
|
||||||
),
|
),
|
||||||
|
|
|
@ -25,7 +25,8 @@ class OnboardingStepNine extends StatelessWidget {
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(children: <Widget>[
|
child: Column(children: <Widget>[
|
||||||
common.onboardingProgressBar(context, 'Ma phrase de restauration', progress),
|
common.onboardingProgressBar(
|
||||||
|
context, 'Ma phrase de restauration', progress),
|
||||||
common.bubbleSpeak(
|
common.bubbleSpeak(
|
||||||
"C’est le moment de noter votre phrase !",
|
"C’est le moment de noter votre phrase !",
|
||||||
long: 60,
|
long: 60,
|
||||||
|
|
|
@ -44,8 +44,8 @@ class OnboardingStepTen extends StatelessWidget {
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Column(children: <Widget>[
|
child: Column(children: <Widget>[
|
||||||
common.onboardingProgressBar(context,
|
common.onboardingProgressBar(
|
||||||
'Valider ma phrase de restauration', progress),
|
context, 'Valider ma phrase de restauration', progress),
|
||||||
common.bubbleSpeakRich(<TextSpan>[
|
common.bubbleSpeakRich(<TextSpan>[
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text:
|
text:
|
||||||
|
@ -54,8 +54,7 @@ class OnboardingStepTen extends StatelessWidget {
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '${_generateWalletProvider.nbrWord + 1}ème mot',
|
text: '${_generateWalletProvider.nbrWord + 1}ème mot',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold, fontSize: 16 * ratio)),
|
||||||
fontSize: 16 * ratio)),
|
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: " de votre phrase de restauration :",
|
text: " de votre phrase de restauration :",
|
||||||
style: TextStyle(fontSize: 16 * ratio)),
|
style: TextStyle(fontSize: 16 * ratio)),
|
||||||
|
@ -164,7 +163,8 @@ class OnboardingStepTen extends StatelessWidget {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
FaderTransition(
|
FaderTransition(
|
||||||
page: OnboardingStepEleven(), isFast: true),
|
page: OnboardingStepEleven(),
|
||||||
|
isFast: true),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Text("Continuer",
|
child: Text("Continuer",
|
||||||
|
|
Loading…
Reference in New Issue