Update: 2026-08-08 14:26:43
This commit is contained in:
@@ -26,6 +26,7 @@ import 'package:siro_driver/views/home/profile/profile_captain.dart';
|
||||
import 'package:siro_driver/views/notification/notification_captain.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import '../../../../constant/colors.dart';
|
||||
import '../../../transit/transit_driver_home_page.dart';
|
||||
import '../About Us/video_page.dart';
|
||||
import '../../../food_delivery/food_delivery_home_page.dart';
|
||||
import '../../journal/driver_scheduled_rides_page.dart';
|
||||
@@ -53,11 +54,11 @@ class AppDrawer extends StatelessWidget {
|
||||
|
||||
// 2. تعريف بيانات القائمة بشكل مركزي ومنظم
|
||||
final List<DrawerItem> drawerItems = [
|
||||
// DrawerItem(
|
||||
// title: 'Mawasalati'.tr,
|
||||
// icon: Icons.directions_bus_filled_rounded,
|
||||
// color: Colors.teal,
|
||||
// onTap: () => Get.to(() => const TransitDriverHomePage())),
|
||||
DrawerItem(
|
||||
title: 'Mawasalati'.tr,
|
||||
icon: Icons.directions_bus_filled_rounded,
|
||||
color: Colors.teal,
|
||||
onTap: () => Get.to(() => const TransitDriverHomePage())),
|
||||
DrawerItem(
|
||||
title: 'Delivery'.tr,
|
||||
icon: Icons.delivery_dining_rounded,
|
||||
@@ -353,9 +354,8 @@ class UserHeader extends StatelessWidget {
|
||||
: Builder(builder: (context) {
|
||||
final photoUrl =
|
||||
box.read(BoxName.driverPhotoUrl)?.toString() ?? '';
|
||||
final avatarImage = photoUrl.isNotEmpty
|
||||
? NetworkImage(photoUrl)
|
||||
: null;
|
||||
final avatarImage =
|
||||
photoUrl.isNotEmpty ? NetworkImage(photoUrl) : null;
|
||||
|
||||
return CircleAvatar(
|
||||
backgroundImage: avatarImage,
|
||||
|
||||
Reference in New Issue
Block a user