7/6/5
This commit is contained in:
@@ -3,7 +3,8 @@ import 'package:SEFER/controller/functions/tts.dart';
|
||||
import 'package:SEFER/views/widgets/elevated_btn.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:webview_flutter/webview_flutter.dart';
|
||||
import '../../../../constant/colors.dart';
|
||||
import '../../../../constant/links.dart';
|
||||
import '../../../../constant/style.dart';
|
||||
@@ -71,10 +72,26 @@ class EgyptCardAI extends StatelessWidget {
|
||||
// controller.responseCriminalRecordEgypt
|
||||
// .isNotEmpty
|
||||
)
|
||||
? Get.height * .7
|
||||
? Get.height * .5
|
||||
: Get.height * .85,
|
||||
child: ListView(
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Container(
|
||||
decoration: AppStyle.boxDecoration
|
||||
.copyWith(boxShadow: [
|
||||
const BoxShadow(
|
||||
color: AppColor.blueColor,
|
||||
blurRadius: 2,
|
||||
offset: Offset(1, 2)),
|
||||
const BoxShadow(
|
||||
color: AppColor.blueColor,
|
||||
blurRadius: 2,
|
||||
offset: Offset(-1, -1))
|
||||
]),
|
||||
child: VideoButton()),
|
||||
),
|
||||
egyptDriverLicense(),
|
||||
egyptCarLicenceFront(),
|
||||
egyptCarLicenceBack(),
|
||||
@@ -853,7 +870,7 @@ Important notes:
|
||||
3. Ensure all numeric values (year, displacement, cylinders) are in Latin numerals.
|
||||
4. If any information is missing, leave the corresponding field as an empty string.
|
||||
5. Do not include any explanatory text in the JSON fields, only the extracted values.
|
||||
|
||||
displacement in the line contain (سم٣ )
|
||||
Please fill in the JSON object with the extracted information, following these guidelines.
|
||||
""", AppLink.uploadEgypt, 'car_back');
|
||||
},
|
||||
@@ -1094,3 +1111,24 @@ Please fill in the JSON object with the extracted information, following these g
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class VideoButton extends StatelessWidget {
|
||||
final String videoUrl =
|
||||
"https://www.youtube.com/watch?v=dQw4w9WgXcQ"; // Replace with your video URL
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return TextButton(
|
||||
onPressed: () async {
|
||||
if (await canLaunchUrl(Uri.parse(videoUrl))) {
|
||||
await launchUrl(Uri.parse(videoUrl));
|
||||
} else {
|
||||
throw 'Could not launch $videoUrl';
|
||||
}
|
||||
},
|
||||
child: Text(
|
||||
"you can show video how to setup".tr,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user