This commit is contained in:
venba-Inspriron-3558 2025-06-02 19:17:46 +05:30
parent 41010df10f
commit d476f467ad
18 changed files with 1027 additions and 281 deletions

View File

@ -763,7 +763,7 @@ class _ListAllPlansState extends State<ListAllPlans> {
Icons.remove_red_eye, Icons.remove_red_eye,
color: Color(0xFF475569), color: Color(0xFF475569),
size: 18), size: 18),
tooltip: 'View Trips', tooltip: 'View The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop( Navigator.pop(
context); // Close popup manually context); // Close popup manually
@ -777,6 +777,7 @@ class _ListAllPlansState extends State<ListAllPlans> {
'assets/images/IconsImg/edit.png', 'assets/images/IconsImg/edit.png',
width: 20, width: 20,
height: 15), height: 15),
tooltip: 'Edit The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
ApiService.viewPlan( ApiService.viewPlan(
@ -788,7 +789,7 @@ class _ListAllPlansState extends State<ListAllPlans> {
icon: Icon( icon: Icon(
Icons.cancel_rounded, Icons.cancel_rounded,
size: 18), size: 18),
tooltip: 'Cancellation Trips', tooltip: 'Cancellation The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
deletePlan(plan.planId); deletePlan(plan.planId);
@ -798,7 +799,7 @@ class _ListAllPlansState extends State<ListAllPlans> {
icon: Icon(Icons.download, icon: Icon(Icons.download,
color: Color(0xFF114D8B), color: Color(0xFF114D8B),
size: 18), size: 18),
tooltip: 'Download Trips Detials', tooltip: 'Download The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
apiService.getPdfDownload( apiService.getPdfDownload(
@ -811,7 +812,7 @@ class _ListAllPlansState extends State<ListAllPlans> {
color: Color(0xFF475569), color: Color(0xFF475569),
size: 11, size: 11,
), ),
tooltip: 'Trips Comments', tooltip: 'Trip Comments',
onPressed: () { onPressed: () {
showDialog( showDialog(
context: context, context: context,

View File

@ -747,6 +747,7 @@ class _ApprovalListState extends State<ApprovalList> {
color: color:
Color(0xFF475569), Color(0xFF475569),
size: 18), size: 18),
tooltip: 'View The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop( Navigator.pop(
context); // Close popup manually context); // Close popup manually
@ -760,6 +761,7 @@ class _ApprovalListState extends State<ApprovalList> {
'assets/images/IconsImg/edit.png', 'assets/images/IconsImg/edit.png',
width: 20, width: 20,
height: 15), height: 15),
tooltip: 'Edit The Trip Details',
onPressed: () { onPressed: () {
print( print(
"Approver Edit : ${plan.approverId}"); "Approver Edit : ${plan.approverId}");
@ -780,6 +782,7 @@ class _ApprovalListState extends State<ApprovalList> {
icon: Icon( icon: Icon(
Icons.cancel_rounded, Icons.cancel_rounded,
size: 18), size: 18),
tooltip: 'Cancellation The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
deletePlan(plan.planId); deletePlan(plan.planId);
@ -789,6 +792,7 @@ class _ApprovalListState extends State<ApprovalList> {
icon: Icon(Icons.download, icon: Icon(Icons.download,
color: Color(0xFF114D8B), color: Color(0xFF114D8B),
size: 18), size: 18),
tooltip: 'Download The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
apiService.getPdfDownload( apiService.getPdfDownload(
@ -801,6 +805,7 @@ class _ApprovalListState extends State<ApprovalList> {
color: Color(0xFF475569), color: Color(0xFF475569),
size: 11, size: 11,
), ),
tooltip: 'Approver Comment',
onPressed: () { onPressed: () {
showDialog( showDialog(
context: context, context: context,
@ -946,6 +951,7 @@ class _ApprovalListState extends State<ApprovalList> {
color: color:
Color(0xFF475569), Color(0xFF475569),
size: 18), size: 18),
tooltip: 'View The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop( Navigator.pop(
context); // Close popup manually context); // Close popup manually
@ -959,6 +965,7 @@ class _ApprovalListState extends State<ApprovalList> {
'assets/images/IconsImg/edit.png', 'assets/images/IconsImg/edit.png',
width: 20, width: 20,
height: 15), height: 15),
tooltip: 'Edit The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
ApiService ApiService
@ -975,6 +982,7 @@ class _ApprovalListState extends State<ApprovalList> {
icon: Icon( icon: Icon(
Icons.cancel_rounded, Icons.cancel_rounded,
size: 18), size: 18),
tooltip: 'Cancellation The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
deletePlan(plan.planId); deletePlan(plan.planId);
@ -984,6 +992,7 @@ class _ApprovalListState extends State<ApprovalList> {
icon: Icon(Icons.download, icon: Icon(Icons.download,
color: Color(0xFF114D8B), color: Color(0xFF114D8B),
size: 18), size: 18),
tooltip: 'Download The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
apiService.getPdfDownload( apiService.getPdfDownload(
@ -996,6 +1005,7 @@ class _ApprovalListState extends State<ApprovalList> {
color: Color(0xFF475569), color: Color(0xFF475569),
size: 11, size: 11,
), ),
tooltip: 'Trip Comments',
onPressed: () { onPressed: () {
showDialog( showDialog(
context: context, context: context,

View File

@ -535,10 +535,14 @@ class CostCenterListState extends State<CostCenterList> {
// apiService.getSingleUser(id), // apiService.getSingleUser(id),
// ), // ),
GestureDetector( GestureDetector(
child: Image.asset( child: Tooltip(
message: 'Edit CostCenter Details',
child: Image.asset(
'assets/images/IconsImg/edit.png', 'assets/images/IconsImg/edit.png',
width: 20, width: 20,
height: 15), height: 15,
),
),
onTap: () async { onTap: () async {
// final userId = getUserId(user['user_id']); // final userId = getUserId(user['user_id']);
// final usersData = await getUserDetails(userId); // final usersData = await getUserDetails(userId);
@ -611,10 +615,14 @@ class CostCenterListState extends State<CostCenterList> {
), ),
GestureDetector( GestureDetector(
child: Image.asset( child: Tooltip(
message: 'Edit CostCenter Details',
child: Image.asset(
'assets/images/IconsImg/edit.png', 'assets/images/IconsImg/edit.png',
width: 20, width: 20,
height: 15), height: 15,
),
),
onTap: () async { onTap: () async {
// final userId = getUserId(user['user_id']); // final userId = getUserId(user['user_id']);
// final usersData = await getUserDetails(userId); // final usersData = await getUserDetails(userId);

View File

@ -619,10 +619,14 @@ class DepartmentListState extends State<DepartmentList> {
), ),
GestureDetector( GestureDetector(
child: Image.asset( child: Tooltip(
message: 'Edit Department Details',
child: Image.asset(
'assets/images/IconsImg/edit.png', 'assets/images/IconsImg/edit.png',
width: 20, width: 20,
height: 15), height: 15,
),
),
onTap: () async { onTap: () async {
// final userId = getUserId(user['user_id']); // final userId = getUserId(user['user_id']);
// final usersData = await getUserDetails(userId); // final usersData = await getUserDetails(userId);

View File

@ -722,10 +722,14 @@ class ForexDataListState extends State<ForexDataList> {
// apiService.getSingleUser(id), // apiService.getSingleUser(id),
// ), // ),
GestureDetector( GestureDetector(
child: Image.asset( child: Tooltip(
message: 'Edit ForEx Details',
child: Image.asset(
'assets/images/IconsImg/edit.png', 'assets/images/IconsImg/edit.png',
width: 20, width: 20,
height: 15), height: 15,
),
),
onTap: () async { onTap: () async {
// final userId = getUserId(user['user_id']); // final userId = getUserId(user['user_id']);
// final usersData = await getUserDetails(userId); // final usersData = await getUserDetails(userId);
@ -798,10 +802,14 @@ class ForexDataListState extends State<ForexDataList> {
), ),
GestureDetector( GestureDetector(
child: Image.asset( child: Tooltip(
message: 'Edit Forex Details',
child: Image.asset(
'assets/images/IconsImg/edit.png', 'assets/images/IconsImg/edit.png',
width: 20, width: 20,
height: 15), height: 15,
),
),
onTap: () async { onTap: () async {
// final userId = getUserId(user['user_id']); // final userId = getUserId(user['user_id']);
// final usersData = await getUserDetails(userId); // final usersData = await getUserDetails(userId);
@ -1040,4 +1048,6 @@ class ForexDataListState extends State<ForexDataList> {
)), )),
); );
} }
} }

View File

@ -603,10 +603,14 @@ class HotelsDataListState extends State<HotelsDataList> {
// apiService.getSingleUser(id), // apiService.getSingleUser(id),
// ), // ),
GestureDetector( GestureDetector(
child: Image.asset( child: Tooltip(
'assets/images/IconsImg/edit.png', message: 'Delete Hotel Details',
child: Image.asset(
'assets/images/IconsImg/delete.png',
width: 20, width: 20,
height: 15), height: 15,
),
),
onTap: () async { onTap: () async {
// final userId = getUserId(user['user_id']); // final userId = getUserId(user['user_id']);
// final usersData = await getUserDetails(userId); // final usersData = await getUserDetails(userId);

View File

@ -245,14 +245,26 @@ class AccomodationListWidget extends StatelessWidget {
Spacer(), Spacer(),
GestureDetector( GestureDetector(
onTap: () => onOpen(true, item, "Accomodation"), onTap: () => onOpen(true, item, "Accomodation"),
child: Image.asset('assets/images/IconsImg/edit.png', child: Tooltip(
width: 20, height: 15), message: 'Edit Accomodation Details',
child: Image.asset(
'assets/images/IconsImg/edit.png',
width: 20,
height: 15,
),
),
), ),
SizedBox(width: 10), SizedBox(width: 10),
GestureDetector( GestureDetector(
onTap: () => onDeleteAccommodation(item), onTap: () => onDeleteAccommodation(item),
child: Image.asset('assets/images/IconsImg/delete.png', child: Tooltip(
width: 20, height: 15), message: 'Delete Accommodation Details',
child: Image.asset(
'assets/images/IconsImg/delete.png',
width: 20,
height: 15,
),
),
), ),
], ],
), ),

View File

@ -224,14 +224,26 @@ class BusListWidget extends StatelessWidget {
Spacer(), Spacer(),
GestureDetector( GestureDetector(
onTap: () => onOpen(true, item, "Bus"), onTap: () => onOpen(true, item, "Bus"),
child: Image.asset('assets/images/IconsImg/edit.png', child: Tooltip(
width: 20, height: 15), message: 'Delete Edit Details',
child: Image.asset(
'assets/images/IconsImg/edit.png',
width: 20,
height: 15,
),
),
), ),
SizedBox(width: 10), SizedBox(width: 10),
GestureDetector( GestureDetector(
onTap: () => onDeleteBus(item), onTap: () => onDeleteBus(item),
child: Image.asset('assets/images/IconsImg/delete.png', child: Tooltip(
width: 20, height: 15), message: 'Delete Bus Details',
child: Image.asset(
'assets/images/IconsImg/delete.png',
width: 20,
height: 15,
),
),
), ),
], ],
), ),

View File

@ -290,14 +290,26 @@ class _FlightListWidgetState extends State<FlightListWidget> {
Spacer(), Spacer(),
GestureDetector( GestureDetector(
onTap: () => widget.onOpen(true, item, "Flight"), onTap: () => widget.onOpen(true, item, "Flight"),
child: Image.asset('assets/images/IconsImg/edit.png', child: Tooltip(
width: 20, height: 15), message: 'Edit Flight Details',
child: Image.asset(
'assets/images/IconsImg/edit.png',
width: 20,
height: 15,
),
),
), ),
SizedBox(width: 10), SizedBox(width: 10),
GestureDetector( GestureDetector(
onTap: () => widget.onDeleteFlight(item), onTap: () => widget.onDeleteFlight(item),
child: Image.asset('assets/images/IconsImg/delete.png', child: Tooltip(
width: 20, height: 15), message: 'Delete Flight Details',
child: Image.asset(
'assets/images/IconsImg/delete.png',
width: 20,
height: 15,
),
),
), ),
], ],
), ),

View File

@ -261,14 +261,26 @@ class ForexListWidget extends StatelessWidget {
Spacer(), Spacer(),
GestureDetector( GestureDetector(
onTap: () => onOpen(true, item, "Forex"), onTap: () => onOpen(true, item, "Forex"),
child: Image.asset('assets/images/IconsImg/edit.png', child: Tooltip(
width: 20, height: 15), message: 'Edit Forex Details',
child: Image.asset(
'assets/images/IconsImg/edit.png',
width: 20,
height: 15,
),
),
), ),
SizedBox(width: 10), SizedBox(width: 10),
GestureDetector( GestureDetector(
onTap: () => onDeleteForex(item), onTap: () => onDeleteForex(item),
child: Image.asset('assets/images/IconsImg/delete.png', child: Tooltip(
width: 20, height: 15), message: 'Delete Forex Details',
child: Image.asset(
'assets/images/IconsImg/delete.png',
width: 20,
height: 15,
),
),
), ),
item['forex_id'] != null item['forex_id'] != null
? IconButton( ? IconButton(

View File

@ -202,14 +202,26 @@ class InsuranceListWidget extends StatelessWidget {
Spacer(), Spacer(),
GestureDetector( GestureDetector(
onTap: () => onOpen(true, item, "Insurance"), onTap: () => onOpen(true, item, "Insurance"),
child: Image.asset('assets/images/IconsImg/edit.png', child: Tooltip(
width: 20, height: 15), message: 'Edit Insurance Details',
child: Image.asset(
'assets/images/IconsImg/edit.png',
width: 20,
height: 15,
),
),
), ),
SizedBox(width: 10), SizedBox(width: 10),
GestureDetector( GestureDetector(
onTap: () => onDeleteInsurance(item), onTap: () => onDeleteInsurance(item),
child: Image.asset('assets/images/IconsImg/delete.png', child: Tooltip(
width: 20, height: 15), message: 'Delete Insurance Details',
child: Image.asset(
'assets/images/IconsImg/delete.png',
width: 20,
height: 15,
),
),
), ),
], ],
), ),
@ -445,14 +457,26 @@ class InsuranceListWidget extends StatelessWidget {
children: [ children: [
GestureDetector( GestureDetector(
onTap: () => onOpen(true, item, "Insurance"), onTap: () => onOpen(true, item, "Insurance"),
child: Image.asset('assets/images/IconsImg/edit.png', child: Tooltip(
width: 20, height: 15), message: 'Edit Insurance Details',
child: Image.asset(
'assets/images/IconsImg/edit.png',
width: 20,
height: 15,
),
),
), ),
SizedBox(width: 10), SizedBox(width: 10),
GestureDetector( GestureDetector(
onTap: () => onDeleteInsurance(item), onTap: () => onDeleteInsurance(item),
child: Image.asset('assets/images/IconsImg/delete.png', child: Tooltip(
width: 20, height: 15), message: 'Delete Insurance Details',
child: Image.asset(
'assets/images/IconsImg/delete.png',
width: 20,
height: 15,
),
),
), ),
IconButton( IconButton(
icon: Icon(Icons.keyboard_arrow_down_outlined, icon: Icon(Icons.keyboard_arrow_down_outlined,

View File

@ -162,14 +162,26 @@ class MiscellaneousListWidget extends StatelessWidget {
Spacer(), Spacer(),
GestureDetector( GestureDetector(
onTap: () => onOpen(true, item, "Miscellaneous"), onTap: () => onOpen(true, item, "Miscellaneous"),
child: Image.asset('assets/images/IconsImg/edit.png', child: Tooltip(
width: 20, height: 15), message: 'Edit Miscellaneous Details',
child: Image.asset(
'assets/images/IconsImg/edit.png',
width: 20,
height: 15,
),
),
), ),
SizedBox(width: 10), SizedBox(width: 10),
GestureDetector( GestureDetector(
onTap: () => onOpen(true, item, "Miscellaneous"), onTap: () => onOpen(true, item, "Miscellaneous"),
child: Image.asset('assets/images/IconsImg/delete.png', child: Tooltip(
width: 20, height: 15), message: 'Delete Miscellaneous Details',
child: Image.asset(
'assets/images/IconsImg/delete.png',
width: 20,
height: 15,
),
),
), ),
], ],
), ),

View File

@ -246,14 +246,26 @@ class TaxiListWidget extends StatelessWidget {
Spacer(), Spacer(),
GestureDetector( GestureDetector(
onTap: () => onOpen(true, item, "Taxi"), onTap: () => onOpen(true, item, "Taxi"),
child: Image.asset('assets/images/IconsImg/edit.png', child: Tooltip(
width: 20, height: 15), message: 'Edit Taxi Details',
child: Image.asset(
'assets/images/IconsImg/edit.png',
width: 20,
height: 15,
),
),
), ),
SizedBox(width: 10), SizedBox(width: 10),
GestureDetector( GestureDetector(
onTap: () => (item), onTap: () => (item),
child: Image.asset('assets/images/IconsImg/delete.png', child: Tooltip(
width: 20, height: 15), message: 'Delete Taxi Details',
child: Image.asset(
'assets/images/IconsImg/delete.png',
width: 20,
height: 15,
),
),
), ),
], ],
), ),

View File

@ -333,14 +333,26 @@ class _TrainListWidgetState extends State<TrainListWidget> {
Spacer(), Spacer(),
GestureDetector( GestureDetector(
onTap: () => widget.onOpen(true, item, "Train"), onTap: () => widget.onOpen(true, item, "Train"),
child: Image.asset('assets/images/IconsImg/edit.png', child: Tooltip(
width: 20, height: 15), message: 'Edit Train Details',
child: Image.asset(
'assets/images/IconsImg/edit.png',
width: 20,
height: 15,
),
),
), ),
SizedBox(width: 10), SizedBox(width: 10),
GestureDetector( GestureDetector(
onTap: () => widget.onDeleteTrain(item), onTap: () => widget.onDeleteTrain(item),
child: Image.asset('assets/images/IconsImg/delete.png', child: Tooltip(
width: 20, height: 15), message: 'Delete Train Details',
child: Image.asset(
'assets/images/IconsImg/delete.png',
width: 20,
height: 15,
),
),
), ),
], ],
), ),

View File

@ -301,14 +301,26 @@ class VisaListWidget extends StatelessWidget {
Spacer(), Spacer(),
GestureDetector( GestureDetector(
onTap: () => onOpen(true, item, "Visa"), onTap: () => onOpen(true, item, "Visa"),
child: Image.asset('assets/images/IconsImg/edit.png', child: Tooltip(
width: 20, height: 15), message: 'Edit Visa Details',
child: Image.asset(
'assets/images/IconsImg/edit.png',
width: 20,
height: 15,
),
),
), ),
SizedBox(width: 10), SizedBox(width: 10),
GestureDetector( GestureDetector(
onTap: () => onDeleteMiscellaneous(item), onTap: () => onDeleteMiscellaneous(item),
child: Image.asset('assets/images/IconsImg/delete.png', child: Tooltip(
width: 20, height: 15), message: 'Delete Visa Details',
child: Image.asset(
'assets/images/IconsImg/delete.png',
width: 20,
height: 15,
),
),
), ),
], ],
), ),

View File

@ -827,6 +827,7 @@ class _ListPlansState extends State<ListPlans> {
Icons.remove_red_eye, Icons.remove_red_eye,
color: Color(0xFF475569), color: Color(0xFF475569),
size: 18), size: 18),
tooltip: 'View The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop( Navigator.pop(
context); // Close popup manually context); // Close popup manually
@ -845,6 +846,7 @@ class _ListPlansState extends State<ListPlans> {
'assets/images/IconsImg/edit.png', 'assets/images/IconsImg/edit.png',
width: 20, width: 20,
height: 15), height: 15),
tooltip: 'Edit Trip/Plans Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
ApiService.viewPlan( ApiService.viewPlan(
@ -857,6 +859,7 @@ class _ListPlansState extends State<ListPlans> {
icon: Icon( icon: Icon(
Icons.cancel_rounded, Icons.cancel_rounded,
size: 18), size: 18),
tooltip: 'Cancellation The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
deletePlan(plan.planId); deletePlan(plan.planId);
@ -866,6 +869,7 @@ class _ListPlansState extends State<ListPlans> {
icon: Icon(Icons.download, icon: Icon(Icons.download,
color: Color(0xFF114D8B), color: Color(0xFF114D8B),
size: 18), size: 18),
tooltip: 'Download The Trip Comments',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
apiService.getPdfDownload( apiService.getPdfDownload(
@ -878,6 +882,7 @@ class _ListPlansState extends State<ListPlans> {
color: Color(0xFF475569), color: Color(0xFF475569),
size: 11, size: 11,
), ),
tooltip: 'Trip Comments',
onPressed: () { onPressed: () {
showDialog( showDialog(
context: context, context: context,
@ -1023,6 +1028,7 @@ class _ListPlansState extends State<ListPlans> {
Icons.remove_red_eye, Icons.remove_red_eye,
color: Color(0xFF475569), color: Color(0xFF475569),
size: 18), size: 18),
tooltip: 'View The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop( Navigator.pop(
context); // Close popup manually context); // Close popup manually
@ -1041,6 +1047,7 @@ class _ListPlansState extends State<ListPlans> {
'assets/images/IconsImg/edit.png', 'assets/images/IconsImg/edit.png',
width: 20, width: 20,
height: 15), height: 15),
tooltip: 'Edit Trip/plan Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
ApiService.viewPlan( ApiService.viewPlan(
@ -1053,6 +1060,7 @@ class _ListPlansState extends State<ListPlans> {
icon: Icon( icon: Icon(
Icons.cancel_rounded, Icons.cancel_rounded,
size: 18), size: 18),
tooltip: 'Cancellation The Trip Details',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
deletePlan(plan.planId); deletePlan(plan.planId);
@ -1062,6 +1070,7 @@ class _ListPlansState extends State<ListPlans> {
icon: Icon(Icons.download, icon: Icon(Icons.download,
color: Color(0xFF114D8B), color: Color(0xFF114D8B),
size: 18), size: 18),
tooltip: 'Download The Trip Comments',
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
apiService.getPdfDownload( apiService.getPdfDownload(
@ -1074,6 +1083,7 @@ class _ListPlansState extends State<ListPlans> {
color: Color(0xFF475569), color: Color(0xFF475569),
size: 11, size: 11,
), ),
tooltip: 'Trip Comments',
onPressed: () { onPressed: () {
showDialog( showDialog(
context: context, context: context,

File diff suppressed because it is too large Load Diff

View File

@ -41,8 +41,13 @@ class UserActionsMenu extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
GestureDetector( GestureDetector(
child: Icon(Icons.remove_red_eye, child: Tooltip(
color: Color(0xFF475569), size: 18), message: 'View User Details',
child: Icon(Icons.remove_red_eye,
color: Color(0xFF475569), size: 18)
),
// child: Icon(Icons.remove_red_eye,
// color: Color(0xFF475569), size: 18,),
onTap: () async { onTap: () async {
Navigator.pop(context); // Close the menu Navigator.pop(context); // Close the menu
final userId = getUserId(user['user_id']); final userId = getUserId(user['user_id']);
@ -55,8 +60,14 @@ class UserActionsMenu extends StatelessWidget {
), ),
SizedBox(width: 8), SizedBox(width: 8),
GestureDetector( GestureDetector(
child: Image.asset('assets/images/IconsImg/edit.png', child: Tooltip(
width: 20, height: 15), message: 'Edit User Details',
child: Image.asset(
'assets/images/IconsImg/edit.png',
width: 20,
height: 15,
),
),
onTap: () async { onTap: () async {
Navigator.pop(context); // Close the menu Navigator.pop(context); // Close the menu
final userId = getUserId(user['user_id']); final userId = getUserId(user['user_id']);