2021-11-14 19:21:20 +01:00
|
|
|
|
// ignore_for_file: file_names
|
|
|
|
|
|
2021-02-28 02:38:52 +01:00
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
2021-11-08 23:12:25 +01:00
|
|
|
|
import 'package:gecko/globals.dart';
|
2021-11-14 19:21:20 +01:00
|
|
|
|
import 'package:gecko/screens/common_elements.dart';
|
2021-03-08 06:21:04 +01:00
|
|
|
|
import 'package:gecko/screens/onBoarding/3.dart';
|
2021-02-28 02:38:52 +01:00
|
|
|
|
// import 'package:gecko/screens/commonElements.dart';
|
|
|
|
|
// import 'package:gecko/models/home.dart';
|
|
|
|
|
// import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
// ignore: must_be_immutable
|
|
|
|
|
class OnboardingStepTwo extends StatelessWidget {
|
|
|
|
|
TextEditingController tplController = TextEditingController();
|
2021-03-08 01:08:26 +01:00
|
|
|
|
final int progress = 2;
|
2021-02-28 02:38:52 +01:00
|
|
|
|
|
2021-11-14 19:21:20 +01:00
|
|
|
|
OnboardingStepTwo({Key key}) : super(key: key);
|
|
|
|
|
|
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, 'Nouveau portefeuilles', progress),
|
2021-03-01 04:48:28 +01:00
|
|
|
|
common.bubbleSpeak(
|
|
|
|
|
"Un trousseau est créé à partir d’une phrase de restauration.",
|
2021-11-14 19:21:20 +01:00
|
|
|
|
textKey: const Key('step2'),
|
2021-02-28 02:38:52 +01:00
|
|
|
|
),
|
2021-11-14 19:21:20 +01:00
|
|
|
|
const SizedBox(height: 70),
|
2021-02-28 02:38:52 +01:00
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/onBoarding/keys-and-wallets-horizontal-plus-phrase.png'),
|
|
|
|
|
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(
|
2021-11-14 19:21:20 +01:00
|
|
|
|
key: const Key('goStep3'),
|
2021-03-01 04:48:28 +01:00
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
|
elevation: 5,
|
2021-11-08 23:12:25 +01:00
|
|
|
|
primary: orangeC,
|
2021-03-01 04:48:28 +01:00
|
|
|
|
onPrimary: Colors.white, // foreground
|
|
|
|
|
),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
2021-03-08 17:23:56 +01:00
|
|
|
|
FaderTransition(
|
|
|
|
|
page: OnboardingStepFor(), isFast: true),
|
2021-03-01 04:48:28 +01:00
|
|
|
|
);
|
|
|
|
|
},
|
2021-11-14 19:21:20 +01:00
|
|
|
|
child: const Text("D'accord",
|
|
|
|
|
style: TextStyle(fontSize: 20)),
|
2021-03-01 04:48:28 +01:00
|
|
|
|
),
|
2021-02-28 02:38:52 +01:00
|
|
|
|
))),
|
2021-11-14 19:21:20 +01:00
|
|
|
|
const SizedBox(height: 80),
|
2021-02-28 02:38:52 +01:00
|
|
|
|
]),
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
}
|