2/22/1
This commit is contained in:
@@ -97,7 +97,7 @@ class AiPage extends StatelessWidget {
|
||||
.start,
|
||||
children: [
|
||||
Text(
|
||||
'Name :${scanDocumentsByApi.name}',
|
||||
'${'Name :'.tr}${scanDocumentsByApi.name}',
|
||||
style: AppStyle
|
||||
.subtitle,
|
||||
),
|
||||
@@ -107,7 +107,7 @@ class AiPage extends StatelessWidget {
|
||||
.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
'Drivers License Class: ${scanDocumentsByApi.licenseClass}',
|
||||
'${'Drivers License Class: '.tr}${scanDocumentsByApi.licenseClass}',
|
||||
style: AppStyle
|
||||
.title,
|
||||
),
|
||||
@@ -129,7 +129,7 @@ class AiPage extends StatelessWidget {
|
||||
.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
'Document Number: ${scanDocumentsByApi.documentNo}',
|
||||
'${'Document Number: '.tr}${scanDocumentsByApi.documentNo}',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
Image.memory(
|
||||
@@ -139,7 +139,7 @@ class AiPage extends StatelessWidget {
|
||||
),
|
||||
]),
|
||||
Text(
|
||||
'Address: ${scanDocumentsByApi.address}',
|
||||
'${'Address: '.tr}${scanDocumentsByApi.address}',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
Row(
|
||||
@@ -148,7 +148,7 @@ class AiPage extends StatelessWidget {
|
||||
.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
'Height: ${scanDocumentsByApi.height}',
|
||||
'${'Height: '.tr}${scanDocumentsByApi.height}',
|
||||
style:
|
||||
AppStyle.subtitle,
|
||||
),
|
||||
@@ -174,7 +174,7 @@ class AiPage extends StatelessWidget {
|
||||
.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
'Expiry Date: ${scanDocumentsByApi.expireDate}',
|
||||
'${'Expiry Date: '.tr}${scanDocumentsByApi.expireDate}',
|
||||
style: DateTime.parse(scanDocumentsByApi
|
||||
.responseMap['data']
|
||||
['ocr'][
|
||||
@@ -192,7 +192,7 @@ class AiPage extends StatelessWidget {
|
||||
.greenColor),
|
||||
),
|
||||
Text(
|
||||
'Date of Birth: ${scanDocumentsByApi.dob}',
|
||||
'${'Date of Birth: '.tr}${scanDocumentsByApi.dob}',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
],
|
||||
|
||||
@@ -110,17 +110,11 @@ Widget buildImageWithBoundingBoxes() {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
Text(
|
||||
'Made :' +
|
||||
carRegistrationRecognizerController
|
||||
.extracted['make']
|
||||
.toString(),
|
||||
'${'Made :'.tr}${carRegistrationRecognizerController.extracted['make']}',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
Text(
|
||||
'model :' +
|
||||
carRegistrationRecognizerController
|
||||
.extracted['model']
|
||||
.toString(),
|
||||
'${'model :'.tr}${carRegistrationRecognizerController.extracted['model']}',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
],
|
||||
@@ -129,17 +123,11 @@ Widget buildImageWithBoundingBoxes() {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
Text(
|
||||
'VIN :' +
|
||||
carRegistrationRecognizerController
|
||||
.extracted['vin']
|
||||
.toString(),
|
||||
'${'VIN :'.tr}${carRegistrationRecognizerController.extracted['vin']}',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
Text(
|
||||
'year :' +
|
||||
carRegistrationRecognizerController
|
||||
.extracted['year']
|
||||
.toString(),
|
||||
'${'year :'.tr}${carRegistrationRecognizerController.extracted['year']}',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
],
|
||||
@@ -150,26 +138,17 @@ Widget buildImageWithBoundingBoxes() {
|
||||
Column(
|
||||
children: [
|
||||
Text(
|
||||
'expiration date :' +
|
||||
carRegistrationRecognizerController
|
||||
.extracted['expiration_date']
|
||||
.toString(),
|
||||
'expiration date :${carRegistrationRecognizerController.extracted['expiration_date']}',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
Text(
|
||||
'registration date :' +
|
||||
carRegistrationRecognizerController
|
||||
.extracted['registration_date']
|
||||
.toString(),
|
||||
'registration date :${carRegistrationRecognizerController.extracted['registration_date']}',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
],
|
||||
),
|
||||
Text(
|
||||
'color :' +
|
||||
carRegistrationRecognizerController
|
||||
.extracted['color']
|
||||
.toString(),
|
||||
'color :${carRegistrationRecognizerController.extracted['color']}',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
],
|
||||
@@ -178,10 +157,7 @@ Widget buildImageWithBoundingBoxes() {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
Text(
|
||||
'owner :' +
|
||||
carRegistrationRecognizerController
|
||||
.extracted['owner']
|
||||
.toString(),
|
||||
'owner :${carRegistrationRecognizerController.extracted['owner']}',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
],
|
||||
|
||||
@@ -27,7 +27,7 @@ class LoginCaptin extends StatelessWidget {
|
||||
|
||||
return GetBuilder<LoginCaptinController>(
|
||||
builder: (controller) => MyScafolld(
|
||||
title: 'Login Captin'.tr,
|
||||
title: 'Login Driver'.tr,
|
||||
isleading: true,
|
||||
body: [
|
||||
if (box.read(BoxName.agreeTerms) != 'agreed')
|
||||
@@ -181,7 +181,7 @@ class LoginCaptin extends StatelessWidget {
|
||||
onTap: () => Get.to(() => const RegisterCaptin()),
|
||||
animatedTexts: [
|
||||
TypewriterAnimatedText(
|
||||
'Register Captin'.tr,
|
||||
'Register as Driver'.tr,
|
||||
textStyle: AppStyle.headTitle2,
|
||||
speed: const Duration(milliseconds: 200),
|
||||
),
|
||||
@@ -283,11 +283,12 @@ class LoginCaptin extends StatelessWidget {
|
||||
RichText(
|
||||
text: TextSpan(
|
||||
text:
|
||||
'By selecting "I Agree" below, I have reviewed and agree to the Terms of Use and acknowledge the ',
|
||||
'By selecting "I Agree" below, I have reviewed and agree to the Terms of Use and acknowledge the '
|
||||
.tr,
|
||||
style: AppStyle.title,
|
||||
children: <TextSpan>[
|
||||
TextSpan(
|
||||
text: 'Privacy Notice',
|
||||
text: 'Privacy Notice'.tr,
|
||||
style: const TextStyle(
|
||||
decoration: TextDecoration.underline,
|
||||
color: AppColor.blueColor),
|
||||
|
||||
@@ -13,7 +13,7 @@ class RegisterCaptin extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
Get.put(RegisterCaptainController());
|
||||
return MyScafolld(
|
||||
title: 'Register Captain'.tr,
|
||||
title: 'Register Driver'.tr,
|
||||
body: [
|
||||
GetBuilder<RegisterCaptainController>(
|
||||
builder: (controller) => Form(
|
||||
|
||||
@@ -13,7 +13,7 @@ class VerifyEmailCaptainPage extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MyScafolld(
|
||||
title: 'Verify Email For Captain'.tr,
|
||||
title: 'Verify Email For Driver'.tr,
|
||||
body: [
|
||||
Positioned(
|
||||
top: 10,
|
||||
|
||||
Reference in New Issue
Block a user