// import 'package:credit_card_scanner/credit_card_scanner.dart';
// import 'package:get/get.dart';
//
// class ScanIdCard extends GetxController {
//   CardDetails? _cardDetails;
//   CardScanOptions scanOptions = const CardScanOptions(
//     scanCardHolderName: true,
//     enableDebugLogs: true,
//     validCardsToScanBeforeFinishingScan: 5,
//     possibleCardHolderNamePositions: [
//       CardHolderNameScanPosition.aboveCardNumber,
//     ],
//   );
//
//   Future<void> scanCard() async {
//     final CardDetails? cardDetails =
//         await CardScanner.scanCard(scanOptions: scanOptions);
//     if (cardDetails == null) {
//       return;
//     }
//
//     _cardDetails = cardDetails;
//     update();
//   }
// }
