Fixes & Updates - 2026-06-01: Integrate Back-End v3 updates, fix call/connection issues across apps

This commit is contained in:
Hamza-Ayed
2026-06-01 23:36:27 +03:00
parent 118781fd66
commit 97945aa362
76 changed files with 19806 additions and 10822 deletions

View File

@@ -15,7 +15,7 @@ import 'package:url_launcher/url_launcher.dart';
import '../../../constant/colors.dart';
import '../../../constant/links.dart';
import '../../../controller/home/map_passenger_controller.dart';
import '../../../controller/home/map/map_engine_controller.dart';
import '../../notification/notification_page.dart';
import '../HomePage/contact_us.dart';
import '../HomePage/share_app_page.dart';
@@ -28,9 +28,8 @@ Color get _kBg =>
Get.isDarkMode ? const Color(0xFF060B18) : AppColor.secondaryColor;
Color get _kBgSurface => Get.isDarkMode
? const Color(0xFF0D1525)
: AppColor.secondaryColor.withOpacity(0.9);
: AppColor.secondaryColor.withValues(alpha: 0.9);
const _kAmber = Color(0xFFFFB700);
Color get _kBorder => _kCyan.withOpacity(0.15);
Color get _kText => AppColor.writeColor;
Color get _kTextMuted => AppColor.grayColor;
@@ -39,16 +38,14 @@ class MapMenuWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
Get.lazyPut(() => MapPassengerController());
return GetBuilder<MapPassengerController>(
return GetBuilder<MapEngineController>(
builder: (controller) => Stack(
children: [
// ── تعتيم الخلفية ───────────────────────────────────────────────
if (controller.widthMenu > 0)
GestureDetector(
onTap: controller.getDrawerMenu,
child: Container(color: Colors.black.withOpacity(0.55)),
child: Container(color: Colors.black.withValues(alpha: 0.55)),
),
_buildSideMenu(controller),
@@ -59,7 +56,7 @@ class MapMenuWidget extends StatelessWidget {
}
// ── زر القائمة العائم ────────────────────────────────────────────────────
Widget _buildMenuButton(MapPassengerController controller) {
Widget _buildMenuButton(MapEngineController controller) {
return Positioned(
top: 45,
left: 16,
@@ -76,12 +73,12 @@ class MapMenuWidget extends StatelessWidget {
width: 48,
height: 48,
decoration: BoxDecoration(
color: _kBg.withOpacity(0.88),
color: _kBg.withValues(alpha: 0.88),
borderRadius: BorderRadius.circular(16),
border: Border.all(color: _kCyan.withOpacity(0.25), width: 1),
border: Border.all(color: _kCyan.withValues(alpha: 0.25), width: 1),
boxShadow: [
BoxShadow(
color: _kCyan.withOpacity(0.12),
color: _kCyan.withValues(alpha: 0.12),
blurRadius: 16,
),
],
@@ -106,7 +103,7 @@ class MapMenuWidget extends StatelessWidget {
}
// ── القائمة الجانبية ─────────────────────────────────────────────────────
Widget _buildSideMenu(MapPassengerController controller) {
Widget _buildSideMenu(MapEngineController controller) {
return AnimatedPositioned(
duration: const Duration(milliseconds: 420),
curve: Curves.fastOutSlowIn,
@@ -120,13 +117,13 @@ class MapMenuWidget extends StatelessWidget {
width: Get.width * 0.8,
constraints: const BoxConstraints(maxWidth: 320),
decoration: BoxDecoration(
color: _kBg.withOpacity(0.97),
color: _kBg.withValues(alpha: 0.97),
border: Border(
right: BorderSide(color: _kCyan.withOpacity(0.12), width: 1),
right: BorderSide(color: _kCyan.withValues(alpha: 0.12), width: 1),
),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.5),
color: Colors.black.withValues(alpha: 0.5),
blurRadius: 32,
),
],
@@ -239,7 +236,7 @@ class MapMenuWidget extends StatelessWidget {
decoration: BoxDecoration(
color: _kBgSurface,
borderRadius: BorderRadius.circular(16),
border: Border.all(color: _kCyan.withOpacity(0.15), width: 1),
border: Border.all(color: _kCyan.withValues(alpha: 0.15), width: 1),
),
child: Row(
children: [
@@ -255,12 +252,12 @@ class MapMenuWidget extends StatelessWidget {
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
_kCyan.withOpacity(0.2),
_kAmber.withOpacity(0.12),
_kCyan.withValues(alpha: 0.2),
_kAmber.withValues(alpha: 0.12),
],
),
border:
Border.all(color: _kCyan.withOpacity(0.35), width: 1.5),
Border.all(color: _kCyan.withValues(alpha: 0.35), width: 1.5),
),
child: Icon(Icons.person_rounded, color: _kCyan, size: 28),
),
@@ -277,7 +274,7 @@ class MapMenuWidget extends StatelessWidget {
border: Border.all(color: _kBg, width: 2),
boxShadow: [
BoxShadow(
color: const Color(0xFF00E676).withOpacity(0.5),
color: const Color(0xFF00E676).withValues(alpha: 0.5),
blurRadius: 6,
),
],
@@ -365,7 +362,7 @@ class MapMenuWidget extends StatelessWidget {
gradient: LinearGradient(
colors: [
Colors.transparent,
_kCyan.withOpacity(0.15),
_kCyan.withValues(alpha: 0.15),
Colors.transparent,
],
),
@@ -419,7 +416,7 @@ class _QuickBtn extends StatelessWidget {
decoration: BoxDecoration(
color: _kBgSurface,
borderRadius: BorderRadius.circular(12),
border: Border.all(color: _kCyan.withOpacity(0.12), width: 1),
border: Border.all(color: _kCyan.withValues(alpha: 0.12), width: 1),
),
child: Column(
mainAxisSize: MainAxisSize.min,
@@ -463,7 +460,7 @@ class MenuListItem extends StatelessWidget {
Widget build(BuildContext context) {
final iconColor = isDestructive
? const Color(0xFFFF5252)
: (color ?? _kCyan.withOpacity(0.80));
: (color ?? _kCyan.withValues(alpha: 0.80));
final textColor =
isDestructive ? const Color(0xFFFF5252) : (color ?? _kText);
@@ -472,8 +469,8 @@ class MenuListItem extends StatelessWidget {
child: InkWell(
onTap: onTap,
borderRadius: BorderRadius.circular(12),
splashColor: _kCyan.withOpacity(0.07),
highlightColor: _kCyan.withOpacity(0.04),
splashColor: _kCyan.withValues(alpha: 0.07),
highlightColor: _kCyan.withValues(alpha: 0.04),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
child: Row(
@@ -484,8 +481,8 @@ class MenuListItem extends StatelessWidget {
height: 36,
decoration: BoxDecoration(
color: isDestructive
? const Color(0xFFFF5252).withOpacity(0.08)
: _kCyan.withOpacity(0.07),
? const Color(0xFFFF5252).withValues(alpha: 0.08)
: _kCyan.withValues(alpha: 0.07),
borderRadius: BorderRadius.circular(10),
),
child: Icon(icon, size: 19, color: iconColor),
@@ -504,7 +501,7 @@ class MenuListItem extends StatelessWidget {
),
Icon(
Icons.chevron_right_rounded,
color: _kTextMuted.withOpacity(0.4),
color: _kTextMuted.withValues(alpha: 0.4),
size: 18,
),
],
@@ -520,7 +517,7 @@ class _MenuGridPainter extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
final paint = Paint()
..color = AppColor.cyanBlue.withOpacity(0.04)
..color = AppColor.cyanBlue.withValues(alpha: 0.04)
..strokeWidth = 0.5;
const spacing = 36.0;
for (double y = 0; y < size.height; y += spacing) {