2021-02-27 20:29:35 +01:00
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
2021-03-01 04:48:28 +01:00
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
2021-02-28 02:38:52 +01:00
|
|
|
|
import 'package:gecko/screens/commonElements.dart';
|
2021-03-01 04:48:28 +01:00
|
|
|
|
import 'package:gecko/screens/myWallets/importWallet.dart';
|
2021-03-08 06:21:04 +01:00
|
|
|
|
import 'package:gecko/screens/onBoarding/1.dart';
|
2021-02-27 20:29:35 +01:00
|
|
|
|
// import 'package:gecko/models/home.dart';
|
|
|
|
|
// import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
// ignore: must_be_immutable
|
|
|
|
|
class NoKeyChainScreen extends StatelessWidget {
|
|
|
|
|
TextEditingController tplController = TextEditingController();
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
|
2021-03-01 04:48:28 +01:00
|
|
|
|
CommonElements common = CommonElements();
|
2021-02-27 20:29:35 +01:00
|
|
|
|
return Scaffold(
|
|
|
|
|
extendBodyBehindAppBar: true,
|
|
|
|
|
// backgroundColor: Colors.white,
|
|
|
|
|
// appBar: GeckoSpeechAppBar('Mes portefeuilles'),
|
|
|
|
|
body: SafeArea(
|
|
|
|
|
child: Column(children: <Widget>[
|
2021-03-08 06:33:14 +01:00
|
|
|
|
common.onboardingProgressBar(context, 'Mes portefeuilles', 0),
|
2021-03-01 04:48:28 +01:00
|
|
|
|
common.bubbleSpeak(
|
2021-04-18 23:45:02 +02:00
|
|
|
|
"Je ne connais pour l’instant aucun de vos portefeuilles.\n\nVous pouvez en créer un nouveau, ou bien importer un portefeuille Cesium existant.",
|
|
|
|
|
textKey: Key('textOnboarding')),
|
2021-03-01 04:48:28 +01:00
|
|
|
|
SizedBox(height: 90),
|
2021-02-27 20:29:35 +01:00
|
|
|
|
Container(
|
|
|
|
|
child: ClipOval(
|
|
|
|
|
child: Material(
|
|
|
|
|
color: Color(0xffFFD58D), // button color
|
|
|
|
|
child: InkWell(
|
|
|
|
|
splashColor: Color(0xffD28928), // inkwell color
|
|
|
|
|
child: Padding(
|
2021-03-01 04:48:28 +01:00
|
|
|
|
padding: EdgeInsets.all(8),
|
2021-02-27 20:29:35 +01:00
|
|
|
|
child: Image(
|
|
|
|
|
image: AssetImage('assets/onBoarding/wallet.png'),
|
2021-03-01 04:48:28 +01:00
|
|
|
|
height: 90)),
|
2021-02-28 02:38:52 +01:00
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
2021-03-08 06:21:04 +01:00
|
|
|
|
context,
|
|
|
|
|
FaderTransition(
|
|
|
|
|
page: OnboardingStepOne(), isFast: true));
|
2021-02-28 02:38:52 +01:00
|
|
|
|
}),
|
2021-02-27 20:29:35 +01:00
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
boxShadow: [
|
|
|
|
|
BoxShadow(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
blurRadius: 4.0,
|
|
|
|
|
offset: Offset(2.0, 2.5),
|
|
|
|
|
spreadRadius: 0.5)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
2021-03-01 04:48:28 +01:00
|
|
|
|
SizedBox(height: 15),
|
2021-02-27 20:29:35 +01:00
|
|
|
|
Text(
|
|
|
|
|
"Créer un nouveau\nportefeuille",
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Colors.black,
|
2021-03-01 04:48:28 +01:00
|
|
|
|
fontSize: 16,
|
2021-02-27 20:29:35 +01:00
|
|
|
|
fontWeight: FontWeight.w500),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 70),
|
|
|
|
|
Container(
|
|
|
|
|
child: ClipOval(
|
|
|
|
|
child: Material(
|
|
|
|
|
color: Color(0xffFFD58D), // button color
|
|
|
|
|
child: InkWell(
|
|
|
|
|
splashColor: Color(0xffD28928), // inkwell color
|
|
|
|
|
child: Padding(
|
2021-03-01 04:48:28 +01:00
|
|
|
|
padding: EdgeInsets.all(12),
|
|
|
|
|
child:
|
|
|
|
|
// Image(
|
|
|
|
|
// image: AssetImage('assets/cesium_bw3.png'),
|
|
|
|
|
// height: 60),
|
|
|
|
|
SvgPicture.asset('assets/cesium_small.svg',
|
|
|
|
|
semanticsLabel: 'Cesium Logo', height: 48),
|
|
|
|
|
),
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(context,
|
|
|
|
|
SlideLeftRoute(page: ImportWalletScreen()));
|
|
|
|
|
}),
|
2021-02-27 20:29:35 +01:00
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
boxShadow: [
|
|
|
|
|
BoxShadow(
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
blurRadius: 4.0,
|
|
|
|
|
offset: Offset(2.0, 2.5),
|
|
|
|
|
spreadRadius: 0.5)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 10),
|
|
|
|
|
Text(
|
|
|
|
|
"Importer un\nportefeuille Cesium",
|
|
|
|
|
textAlign: TextAlign.center,
|
2021-03-01 04:48:28 +01:00
|
|
|
|
style: TextStyle(color: Colors.black, fontSize: 13),
|
2021-02-27 20:29:35 +01:00
|
|
|
|
)
|
|
|
|
|
]),
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
}
|