gecko/lib/screens/onBoarding/0_no_keychain_found.dart

113 lines
4.3 KiB
Dart
Raw Normal View History

2021-11-14 19:21:20 +01:00
// ignore_for_file: file_names
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-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';
import 'package:gecko/screens/myWallets/import_wallet.dart';
2021-03-08 06:21:04 +01:00
import 'package:gecko/screens/onBoarding/1.dart';
2021-02-27 20:29:35 +01:00
class NoKeyChainScreen extends StatelessWidget {
2021-11-14 19:21:20 +01:00
const NoKeyChainScreen({Key key}) : super(key: key);
2021-02-27 20:29:35 +01:00
@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(context, '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-11-14 19:21:20 +01:00
textKey: const Key('textOnboarding')),
const SizedBox(height: 90),
2021-02-27 20:29:35 +01:00
Container(
child: ClipOval(
child: Material(
2021-11-14 19:21:20 +01:00
color: const Color(0xffFFD58D), // button color
2021-02-27 20:29:35 +01:00
child: InkWell(
2021-11-14 19:21:20 +01:00
key: const Key('goStep1'),
2021-11-08 23:12:25 +01:00
splashColor: orangeC, // inkwell color
2021-11-14 19:21:20 +01:00
child: const 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(
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
),
),
2021-11-14 19:21:20 +01:00
decoration: const BoxDecoration(
2021-02-27 20:29:35 +01:00
shape: BoxShape.circle,
color: Colors.white,
boxShadow: [
BoxShadow(
color: Colors.grey,
blurRadius: 4.0,
offset: Offset(2.0, 2.5),
spreadRadius: 0.5)
],
),
),
2021-11-14 19:21:20 +01:00
const SizedBox(height: 15),
const Text(
2021-02-27 20:29:35 +01:00
"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),
),
2021-11-14 19:21:20 +01:00
const SizedBox(height: 70),
2021-02-27 20:29:35 +01:00
Container(
child: ClipOval(
child: Material(
2021-11-14 19:21:20 +01:00
color: const Color(0xffFFD58D), // button color
2021-02-27 20:29:35 +01:00
child: InkWell(
2021-11-08 23:12:25 +01:00
splashColor: orangeC, // inkwell color
2021-02-27 20:29:35 +01:00
child: Padding(
2021-11-14 19:21:20 +01:00
padding: const 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,
2021-11-14 19:21:20 +01:00
SlideLeftRoute(page: const ImportWalletScreen()));
}),
2021-02-27 20:29:35 +01:00
),
),
2021-11-14 19:21:20 +01:00
decoration: const BoxDecoration(
2021-02-27 20:29:35 +01:00
shape: BoxShape.circle,
color: Colors.white,
boxShadow: [
BoxShadow(
color: Colors.grey,
blurRadius: 4.0,
offset: Offset(2.0, 2.5),
spreadRadius: 0.5)
],
),
),
2021-11-14 19:21:20 +01:00
const SizedBox(height: 10),
const Text(
2021-02-27 20:29:35 +01:00
"Importer un\nportefeuille Cesium",
textAlign: TextAlign.center,
style: TextStyle(color: Colors.black, fontSize: 13),
2021-02-27 20:29:35 +01:00
)
]),
));
}
}