This commit is contained in:
Manasit.K
2024-12-12 10:12:19 +07:00
parent 43c32ef6cf
commit ed510b00d1
52 changed files with 1256 additions and 1027 deletions

View File

@@ -5,6 +5,10 @@ import 'package:google_fonts/google_fonts.dart';
import 'camera_passport.dart';
var isPassport = false;
class PreRegisterPage extends StatefulWidget {
const PreRegisterPage({Key? key}) : super(key: key);
@@ -67,6 +71,7 @@ class _LoginPageState extends State<PreRegisterPage> {
),
InkWell(
onTap: () {
isPassport = false;
Navigator.push(
context,
MaterialPageRoute(
@@ -77,22 +82,11 @@ class _LoginPageState extends State<PreRegisterPage> {
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,
),
),
)),
child: context.locale.toString()=="th"?Image.asset("images/register/thaicard_th.png"):Image.asset("images/register/thaicard_en.png")
)),
InkWell(
onTap: () {
isPassport = true;
Navigator.push(
context,
MaterialPageRoute(
@@ -103,19 +97,7 @@ class _LoginPageState extends State<PreRegisterPage> {
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,
),
),
)),
child: context.locale.toString()=="th"?Image.asset("images/register/passport_th.png"):Image.asset("images/register/passport_en.png")
)),
SizedBox(height: 40,)
],