2020-11-29 20:07:46 +00:00
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:selfprivacy/ui/components/brand_button/brand_button.dart';
|
2020-12-08 19:26:51 +00:00
|
|
|
|
import 'package:selfprivacy/ui/components/brand_text/brand_text.dart';
|
2020-12-06 07:28:31 +00:00
|
|
|
|
import 'package:selfprivacy/ui/pages/rootRoute.dart';
|
|
|
|
|
import 'package:selfprivacy/utils/route_transitions/basic.dart';
|
2020-11-29 20:07:46 +00:00
|
|
|
|
|
2020-12-08 19:26:51 +00:00
|
|
|
|
class OnboardingPage extends StatelessWidget {
|
2020-11-29 20:07:46 +00:00
|
|
|
|
const OnboardingPage({Key key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
2020-12-06 07:28:31 +00:00
|
|
|
|
return SafeArea(
|
|
|
|
|
child: Scaffold(
|
2020-12-08 19:26:51 +00:00
|
|
|
|
body: Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 15,
|
|
|
|
|
vertical: 45,
|
2020-12-06 07:28:31 +00:00
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
2020-12-08 19:26:51 +00:00
|
|
|
|
Expanded(
|
|
|
|
|
child: Align(
|
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
BrandText.h1(
|
|
|
|
|
'Онбординг',
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 20),
|
|
|
|
|
BrandText.body2(
|
|
|
|
|
'Тут рассказ на 1-2 слайда о том, что делает это приложение, какие твои проблемы решает и как (в общем чего ожидать от сервиса).',
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
2020-12-06 07:28:31 +00:00
|
|
|
|
),
|
|
|
|
|
),
|
2020-12-08 19:26:51 +00:00
|
|
|
|
BrandButton.rised(
|
2020-12-06 07:28:31 +00:00
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.pushReplacement(materialRoute(RootPage()));
|
|
|
|
|
},
|
2020-12-08 19:26:51 +00:00
|
|
|
|
title: 'Приступим!',
|
|
|
|
|
)
|
2020-12-06 07:28:31 +00:00
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
2020-12-03 16:52:53 +00:00
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|