Update: 2026-07-06 04:23:43
This commit is contained in:
@@ -49,7 +49,8 @@ class NavigationView extends StatelessWidget {
|
|||||||
apiKey: Env.mapSaasKey,
|
apiKey: Env.mapSaasKey,
|
||||||
onMapCreated: c.onMapCreated,
|
onMapCreated: c.onMapCreated,
|
||||||
onStyleLoaded: c.onStyleLoaded,
|
onStyleLoaded: c.onStyleLoaded,
|
||||||
onLongPress: (latlng) => c.onMapLongPressed(Point(0, 0), latlng),
|
onLongPress: (latlng) =>
|
||||||
|
c.onMapLongPressed(Point(0, 0), latlng),
|
||||||
onTap: (latlng) => c.onMapTapped(Point(0, 0), latlng),
|
onTap: (latlng) => c.onMapTapped(Point(0, 0), latlng),
|
||||||
markers: c.markers,
|
markers: c.markers,
|
||||||
polylines: c.polylines,
|
polylines: c.polylines,
|
||||||
@@ -274,7 +275,8 @@ void _showMenuSheet(BuildContext context) {
|
|||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
width: 40, height: 4,
|
width: 40,
|
||||||
|
height: 4,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.grey.withOpacity(0.3),
|
color: Colors.grey.withOpacity(0.3),
|
||||||
borderRadius: BorderRadius.circular(2),
|
borderRadius: BorderRadius.circular(2),
|
||||||
@@ -284,27 +286,42 @@ void _showMenuSheet(BuildContext context) {
|
|||||||
_MenuTile(
|
_MenuTile(
|
||||||
icon: Icons.settings_rounded,
|
icon: Icons.settings_rounded,
|
||||||
label: isAr ? 'الإعدادات' : 'Settings',
|
label: isAr ? 'الإعدادات' : 'Settings',
|
||||||
onTap: () { Get.back(); Get.to(() => const SettingPage()); },
|
onTap: () {
|
||||||
|
Get.back();
|
||||||
|
Get.to(() => const SettingPage());
|
||||||
|
},
|
||||||
),
|
),
|
||||||
_MenuTile(
|
_MenuTile(
|
||||||
icon: Icons.account_balance_wallet_rounded,
|
icon: Icons.account_balance_wallet_rounded,
|
||||||
label: isAr ? 'المحفظة' : 'Wallet',
|
label: isAr ? 'المحفظة' : 'Wallet',
|
||||||
onTap: () { Get.back(); Get.toNamed('/wallet'); },
|
onTap: () {
|
||||||
|
Get.back();
|
||||||
|
Get.toNamed('/wallet');
|
||||||
|
},
|
||||||
),
|
),
|
||||||
_MenuTile(
|
_MenuTile(
|
||||||
icon: Icons.history_rounded,
|
icon: Icons.history_rounded,
|
||||||
label: isAr ? 'سجل الرحلات' : 'Trip History',
|
label: isAr ? 'سجل الرحلات' : 'Trip History',
|
||||||
onTap: () { Get.back(); Get.to(() => const OrderHistory()); },
|
onTap: () {
|
||||||
|
Get.back();
|
||||||
|
Get.to(() => const OrderHistory());
|
||||||
|
},
|
||||||
),
|
),
|
||||||
_MenuTile(
|
_MenuTile(
|
||||||
icon: Icons.headset_mic_rounded,
|
icon: Icons.headset_mic_rounded,
|
||||||
label: isAr ? 'اتصل بنا' : 'Contact Us',
|
label: isAr ? 'اتصل بنا' : 'Contact Us',
|
||||||
onTap: () { Get.back(); Get.toNamed('/contactSupport'); },
|
onTap: () {
|
||||||
|
Get.back();
|
||||||
|
Get.toNamed('/contactSupport');
|
||||||
|
},
|
||||||
),
|
),
|
||||||
_MenuTile(
|
_MenuTile(
|
||||||
icon: Icons.info_outline_rounded,
|
icon: Icons.info_outline_rounded,
|
||||||
label: isAr ? 'حول التطبيق' : 'About',
|
label: isAr ? 'حول التطبيق' : 'About',
|
||||||
onTap: () { Get.back(); Get.to(() => const AboutPage()); },
|
onTap: () {
|
||||||
|
Get.back();
|
||||||
|
Get.to(() => const AboutPage());
|
||||||
|
},
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
],
|
],
|
||||||
@@ -317,13 +334,15 @@ class _MenuTile extends StatelessWidget {
|
|||||||
final IconData icon;
|
final IconData icon;
|
||||||
final String label;
|
final String label;
|
||||||
final VoidCallback onTap;
|
final VoidCallback onTap;
|
||||||
const _MenuTile({required this.icon, required this.label, required this.onTap});
|
const _MenuTile(
|
||||||
|
{required this.icon, required this.label, required this.onTap});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return ListTile(
|
return ListTile(
|
||||||
leading: Icon(icon, color: _kPrimary, size: 24),
|
leading: Icon(icon, color: _kPrimary, size: 24),
|
||||||
title: Text(label, style: TextStyle(fontWeight: FontWeight.w600, color: _kOnSurface)),
|
title: Text(label,
|
||||||
|
style: TextStyle(fontWeight: FontWeight.w600, color: _kOnSurface)),
|
||||||
trailing: const Icon(Icons.chevron_right_rounded, color: Colors.grey),
|
trailing: const Icon(Icons.chevron_right_rounded, color: Colors.grey),
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user