update
This commit is contained in:
@@ -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,)
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user