gecko/lib/screens/onBoarding/1_noKeychainFound.dart

111 lines
4.2 KiB
Dart
Raw Normal View History

2021-02-27 20:29:35 +01:00
import 'package:flutter/services.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
2021-02-28 02:38:52 +01:00
import 'package:gecko/screens/commonElements.dart';
import 'package:gecko/screens/myWallets/importWallet.dart';
2021-02-28 02:38:52 +01:00
import 'package:gecko/screens/onBoarding/2_stepOne.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]);
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>[
common.onboardingProgressBar('Mes portefeuilles', 0),
common.bubbleSpeak(
"Je ne connais pour linstant aucun de vos portefeuilles.\n\nVous pouvez en créer un nouveau, ou bien importer un portefeuille Cesium existant.",
2021-02-27 20:29:35 +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(
padding: EdgeInsets.all(8),
2021-02-27 20:29:35 +01:00
child: Image(
image: AssetImage('assets/onBoarding/wallet.png'),
height: 90)),
2021-02-28 02:38:52 +01:00
onTap: () {
Navigator.push(
context, SlideLeftRoute(page: OnboardingStepOne()));
}),
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: 15),
2021-02-27 20:29:35 +01:00
Text(
"Créer un nouveau\nportefeuille",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.black,
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(
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,
style: TextStyle(color: Colors.black, fontSize: 13),
2021-02-27 20:29:35 +01:00
)
]),
));
}
}