add country-specific field config to review page, add warning snackbar, write AI extraction prompt

This commit is contained in:
Hamza-Ayed
2026-06-25 17:40:09 +03:00
parent 28b8558b6d
commit 1e24c3d0c8
4 changed files with 835 additions and 312 deletions

View File

@@ -107,6 +107,57 @@ SnackbarController mySnackeBarError(String message) {
);
}
SnackbarController mySnackbarWarning(String message) {
HapticFeedback.mediumImpact();
return Get.snackbar(
'Warning'.tr,
message,
backgroundColor: AppColor.yellowColor.withOpacity(0.95),
colorText: AppColor.writeColor,
icon: const Icon(
Icons.warning_amber_rounded,
color: AppColor.writeColor,
size: 28,
),
shouldIconPulse: true,
snackPosition: SnackPosition.TOP,
margin: SnackbarConfig.margin,
borderRadius: SnackbarConfig.borderRadius,
duration: SnackbarConfig.duration,
animationDuration: SnackbarConfig.animationDuration,
forwardAnimationCurve: Curves.easeOutCirc,
reverseAnimationCurve: Curves.easeInCirc,
boxShadows: [SnackbarConfig.shadow],
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 12),
titleText: Text(
'Warning'.tr,
style: const TextStyle(
fontWeight: FontWeight.w700,
color: Colors.black87,
fontSize: 16,
letterSpacing: 0.2,
),
),
messageText: Text(
message,
style: const TextStyle(
color: Colors.black87,
fontSize: 14,
height: 1.3,
),
),
onTap: (_) {
HapticFeedback.lightImpact();
Get.closeCurrentSnackbar();
},
isDismissible: true,
dismissDirection: DismissDirection.horizontal,
overlayBlur: 0.8,
overlayColor: Colors.black12,
);
}
SnackbarController mySnackbarSuccess(String message) {
// Trigger success haptic feedback
HapticFeedback.lightImpact();