feat: refactor financial wallet UI components and add offline map service support

This commit is contained in:
Hamza-Ayed
2026-04-21 00:35:30 +03:00
parent 4293d20561
commit b92db3bb39
99 changed files with 22888 additions and 27387 deletions

View File

@@ -67,7 +67,7 @@ class CompatibilityDetailCard extends StatelessWidget {
color: Colors.grey.shade800,
fontWeight: FontWeight.w600)),
),
Text("$achievedScore/$maxScore نقطة",
Text("$achievedScore/$maxScore ${"points".tr}",
style: TextStyle(
color: color, fontWeight: FontWeight.bold, fontSize: 14)),
],
@@ -130,10 +130,10 @@ class _DeviceCompatibilityPageState extends State<DeviceCompatibilityPage> {
}
String _getScoreMessage(int value) {
if (value >= 80) return "جهازك يقدم أداءً ممتازاً";
if (value >= 60) return "جهازك جيد ومناسب جداً";
if (value >= 40) return "متوافق، قد تلاحظ بعض البطء";
return "قد لا يعمل التطبيق بالشكل الأمثل";
if (value >= 80) return "Your device provides excellent performance".tr;
if (value >= 60) return "Your device is good and very suitable".tr;
if (value >= 40) return "Compatible, you may notice some slowness".tr;
return "The app may not work optimally".tr;
}
@override
@@ -143,8 +143,8 @@ class _DeviceCompatibilityPageState extends State<DeviceCompatibilityPage> {
return Scaffold(
backgroundColor: const Color(0xFFF7F8FC),
appBar: AppBar(
title: const Text("توافق الجهاز",
style: TextStyle(
title: Text("Device Compatibility".tr,
style: const TextStyle(
color: Colors.black87, fontWeight: FontWeight.bold)),
centerTitle: true,
backgroundColor: Colors.transparent,
@@ -159,12 +159,12 @@ class _DeviceCompatibilityPageState extends State<DeviceCompatibilityPage> {
children: [
const Icon(Icons.phone_iphone, size: 56, color: Colors.grey),
const SizedBox(height: 12),
const Text("هذه الصفحة متاحة لأجهزة أندرويد فقط",
Text("This page is only available for Android devices".tr,
style: TextStyle(fontSize: 16)),
const SizedBox(height: 8),
ElevatedButton(
onPressed: () => Get.back(),
child: const Text("رجوع"),
child: Text("Back".tr),
),
],
),
@@ -176,9 +176,9 @@ class _DeviceCompatibilityPageState extends State<DeviceCompatibilityPage> {
return Scaffold(
backgroundColor: const Color(0xFFF7F8FC),
appBar: AppBar(
title: const Text("توافق الجهاز",
title: Text("Device Compatibility".tr,
style:
TextStyle(color: Colors.black87, fontWeight: FontWeight.bold)),
const TextStyle(color: Colors.black87, fontWeight: FontWeight.bold)),
centerTitle: true,
backgroundColor: Colors.transparent,
elevation: 0,
@@ -208,7 +208,7 @@ class _DeviceCompatibilityPageState extends State<DeviceCompatibilityPage> {
elevation: 0,
),
onPressed: () => Get.back(),
child: const Text("المتابعة إلى التطبيق",
child: Text("Continue to App".tr,
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,