127 lines
3.7 KiB
Dart
127 lines
3.7 KiB
Dart
import 'package:cathaypay_mobile/Register/register.dart';
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
|
|
import 'camera_passport.dart';
|
|
|
|
class PreRegisterPage extends StatefulWidget {
|
|
const PreRegisterPage({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<PreRegisterPage> createState() => _LoginPageState();
|
|
}
|
|
|
|
class _LoginPageState extends State<PreRegisterPage> {
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
}
|
|
|
|
refresh() {
|
|
setState(() {});
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
backgroundColor: Colors.transparent,
|
|
actions: [
|
|
IconButton(
|
|
onPressed: () {
|
|
Navigator.pop(context);
|
|
},
|
|
icon: const Icon(
|
|
Icons.clear,
|
|
color: Colors.grey,
|
|
),
|
|
),
|
|
],
|
|
elevation: 0,
|
|
centerTitle: true,
|
|
title: Text(
|
|
"Register".tr(),
|
|
textAlign: TextAlign.center,
|
|
style: GoogleFonts.kanit(
|
|
color: Colors.black,
|
|
fontSize: 20,
|
|
),
|
|
),
|
|
),
|
|
body: SafeArea(
|
|
child: Center(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
Text(
|
|
"Register".tr(),
|
|
style: GoogleFonts.kanit(
|
|
color: Color(0xff9d001b),
|
|
fontSize: 45,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 60,
|
|
),
|
|
InkWell(
|
|
onTap: () {
|
|
Navigator.push(
|
|
context,
|
|
MaterialPageRoute(
|
|
builder: (context) => RegisterPage(isPassport: false,),
|
|
),
|
|
);
|
|
},
|
|
child: Container(
|
|
width: double.infinity,
|
|
margin: EdgeInsets.symmetric(horizontal: 30,vertical: 10),
|
|
child: Card(
|
|
color: Colors.green.shade200,
|
|
child: Container(
|
|
alignment: Alignment.center,
|
|
padding: EdgeInsets.all(30),
|
|
child: Text(
|
|
"บัตรประชาชน".tr(),
|
|
style: GoogleFonts.kanit(
|
|
color: Colors.black,
|
|
fontSize: 22,
|
|
),
|
|
),
|
|
)),
|
|
)),
|
|
InkWell(
|
|
onTap: () {
|
|
Navigator.push(
|
|
context,
|
|
MaterialPageRoute(
|
|
builder: (context) => RegisterPage(isPassport: true,),
|
|
),
|
|
);
|
|
},
|
|
child: Container(
|
|
width: double.infinity,
|
|
margin: EdgeInsets.symmetric(horizontal: 30,vertical: 10),
|
|
child: Card(
|
|
color: Colors.red.shade200,
|
|
child: Container(
|
|
alignment: Alignment.center,
|
|
padding: EdgeInsets.all(30),
|
|
child: Text(
|
|
"พาสปอร์ต".tr(),
|
|
style: GoogleFonts.kanit(
|
|
color: Colors.black,
|
|
fontSize: 22,
|
|
),
|
|
),
|
|
)),
|
|
)),
|
|
SizedBox(height: 40,)
|
|
],
|
|
),
|
|
)),
|
|
);
|
|
}
|
|
}
|