You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.6 KiB
Dart
83 lines
2.6 KiB
Dart
import 'package:mc_common_app/config/routes.dart';
|
|
import 'package:mc_common_app/extensions/int_extensions.dart';
|
|
import 'package:mc_common_app/extensions/string_extensions.dart';
|
|
import 'package:mc_common_app/generated/locale_keys.g.dart';
|
|
import 'package:mc_common_app/utils/navigator.dart';
|
|
import 'package:mc_common_app/utils/utils.dart';
|
|
import 'package:mc_common_app/widgets/show_fill_button.dart';
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
import '../../theme/colors.dart';
|
|
|
|
class RegisterSelectionPage extends StatelessWidget {
|
|
const RegisterSelectionPage({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Container(
|
|
width: double.infinity,
|
|
height: double.infinity,
|
|
decoration: const BoxDecoration(
|
|
image: DecorationImage(
|
|
image: AssetImage("assets/images/bn_Intro.png"),
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
child: Column(
|
|
children: [
|
|
Utils.mFlex(6),
|
|
SvgPicture.asset("assets/images/logo.svg"),
|
|
Utils.mFlex(4),
|
|
LocaleKeys.welcomeMessage.tr().toText(
|
|
fontSize: 20,
|
|
letterSpacing: -1.44,
|
|
),
|
|
LocaleKeys.welcomeDes.tr().toText(
|
|
color: MyColors.lightTextColor,
|
|
fontSize: 14,
|
|
height: 23 / 24,
|
|
letterSpacing: -0.48,
|
|
),
|
|
Utils.mFlex(1),
|
|
ShowFillButton(
|
|
title: LocaleKeys.login.tr(),
|
|
maxWidth: double.infinity,
|
|
horizontalMargin: 20,
|
|
onPressed: () {
|
|
navigateWithName(context, AppRoutes.loginWithPassword);
|
|
},
|
|
),
|
|
20.height,
|
|
ShowFillButton(
|
|
title: LocaleKeys.signUp.tr(),
|
|
maxWidth: double.infinity,
|
|
isFlatButton: true,
|
|
txtColor: Colors.black,
|
|
onPressed: () {
|
|
navigateWithName(context, AppRoutes.register);
|
|
},
|
|
),
|
|
10.height,
|
|
Utils.mFlex(3),
|
|
TextButton(
|
|
onPressed: () {},
|
|
child: const Text(
|
|
"Continue as Guest",
|
|
style: TextStyle(
|
|
color: MyColors.darkPrimaryColor,
|
|
fontWeight: FontWeight.bold,
|
|
decoration: TextDecoration.underline,
|
|
),
|
|
),
|
|
),
|
|
Utils.mFlex(3),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|