// import 'package:firebase_messaging/firebase_messaging.dart';
// import 'package:get/get.dart';
// import 'package:flutter/material.dart';
// import 'package:taafee_mobile/features/card/data_layer/model/card_model.dart';

// import '../../core/routing/routing_manager.dart';
// import '../const/const.dart';

// void notificationMessage(RemoteMessage message, CardModel cardModel,
//     {String? color}) {
//   Get.showSnackbar(GetSnackBar(

//     messageText: Text(
//       '${message.notification!.title!} : ${message.notification!.body!}',
//       textAlign: TextAlign.center,
//       style: TextStyle(
//         color: Colors.black,
//       ),
//     ),
//     backgroundColor: Colors.white,
//     snackPosition: SnackPosition.TOP,
  
//     duration: const Duration(seconds: 5),

//     onTap: (snackbar) {
//       RoutingManager.to(RouteName.cardDetails, arguments: cardModel);
//     },
//   ));
// }
