issues fixes
This commit is contained in:
parent
2e85273b06
commit
65528b1df3
@ -768,6 +768,7 @@ class _AccomodationScreenState extends State<AccomodationScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _checkInFocusNode,
|
focusNode: _checkInFocusNode,
|
||||||
controller: _checkInController,
|
controller: _checkInController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -822,6 +823,7 @@ class _AccomodationScreenState extends State<AccomodationScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _checkInTimeFocusNode,
|
focusNode: _checkInTimeFocusNode,
|
||||||
controller: _checkInTimeController,
|
controller: _checkInTimeController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Time",
|
labelText: "Select Time",
|
||||||
@ -873,6 +875,7 @@ class _AccomodationScreenState extends State<AccomodationScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _checkOutFocusNode,
|
focusNode: _checkOutFocusNode,
|
||||||
controller: _checkOutController,
|
controller: _checkOutController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12, color: Colors.black),
|
style: const TextStyle(fontSize: 12, color: Colors.black),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -924,6 +927,7 @@ class _AccomodationScreenState extends State<AccomodationScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _checkOutTimeFocusNode,
|
focusNode: _checkOutTimeFocusNode,
|
||||||
controller: _checkOutTimeController,
|
controller: _checkOutTimeController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Time",
|
labelText: "Select Time",
|
||||||
|
|||||||
@ -541,6 +541,7 @@ class _BusScreenState extends State<BusScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _dateFocusNode,
|
focusNode: _dateFocusNode,
|
||||||
controller: _dateController,
|
controller: _dateController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -593,6 +594,7 @@ class _BusScreenState extends State<BusScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _timeFocusNode,
|
focusNode: _timeFocusNode,
|
||||||
controller: _timeController,
|
controller: _timeController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12, color: Colors.black),
|
style: const TextStyle(fontSize: 12, color: Colors.black),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Time",
|
labelText: "Select Time",
|
||||||
|
|||||||
@ -1947,6 +1947,7 @@ class FlightScreenState extends State<FlightScreen> {
|
|||||||
focusNode: focusNodes["_date${index}FocusNode"],
|
focusNode: focusNodes["_date${index}FocusNode"],
|
||||||
// controller: _dateController,
|
// controller: _dateController,
|
||||||
controller: textControllers["_date${index}Controller"],
|
controller: textControllers["_date${index}Controller"],
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -2012,7 +2013,7 @@ class FlightScreenState extends State<FlightScreen> {
|
|||||||
focusNode: focusNodes["_time${index}FocusNode"],
|
focusNode: focusNodes["_time${index}FocusNode"],
|
||||||
// controller: _timeController,
|
// controller: _timeController,
|
||||||
controller: textControllers["_time${index}Controller"],
|
controller: textControllers["_time${index}Controller"],
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Time",
|
labelText: "Time",
|
||||||
|
|||||||
@ -82,19 +82,49 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
|
|
||||||
String _formatDate(String? date) {
|
String _formatDate(String? date) {
|
||||||
if (date == null || date.isEmpty) return "";
|
if (date == null || date.isEmpty) return "";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
DateTime parsedDate = DateTime.parse(
|
// First try parsing as ISO format (YYYY-MM-DD)
|
||||||
date,
|
DateTime parsedDate;
|
||||||
); // Assuming input is YYYY-MM-DD
|
|
||||||
return DateFormat(
|
try {
|
||||||
"dd-MM-yyyy",
|
parsedDate = DateTime.parse(date);
|
||||||
).format(parsedDate); // Convert to DD-MM-YYYY
|
} catch (e) {
|
||||||
|
// If ISO parse fails, try parsing as DD-MM-YYYY
|
||||||
|
final parts = date.split('-');
|
||||||
|
if (parts.length == 3) {
|
||||||
|
parsedDate = DateTime(
|
||||||
|
int.parse(parts[2]), // year
|
||||||
|
int.parse(parts[1]), // month
|
||||||
|
int.parse(parts[0]), // day
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
throw FormatException("Unsupported date format");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return DateFormat("dd-MM-yyyy").format(parsedDate);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print("Error formatting date: $e");
|
print("Error formatting date '$date': $e");
|
||||||
return date; // Return as is if parsing fails
|
return ""; // Return empty string or handle differently
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// String _formatDate(String? date) {
|
||||||
|
// if (date == null || date.isEmpty) return "";
|
||||||
|
// try {
|
||||||
|
// DateTime parsedDate = DateTime.parse(
|
||||||
|
// date,
|
||||||
|
// ); // Assuming input is YYYY-MM-DD
|
||||||
|
// return DateFormat(
|
||||||
|
// "dd-MM-yyyy",
|
||||||
|
// ).format(parsedDate); // Convert to DD-MM-YYYY
|
||||||
|
// } catch (e) {
|
||||||
|
// print("Error formatting date: $e");
|
||||||
|
// return date; // Return as is if parsing fails
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
Map<String, String> errorMessages = {};
|
Map<String, String> errorMessages = {};
|
||||||
|
|
||||||
String? selectedCountry;
|
String? selectedCountry;
|
||||||
@ -320,6 +350,16 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
final cash = data["deposit_on_cash"];
|
final cash = data["deposit_on_cash"];
|
||||||
print("card - $card");
|
print("card - $card");
|
||||||
print("cash - $cash");
|
print("cash - $cash");
|
||||||
|
// Call validations first (they populate errorMessages)
|
||||||
|
_validateCardAmount(card);
|
||||||
|
_validateCashAmount(cash);
|
||||||
|
|
||||||
|
// Now check if any errors exist
|
||||||
|
if (errorMessages.isNotEmpty) {
|
||||||
|
print("Validation Failed: ${errorMessages}");
|
||||||
|
setState(() {}); // Refresh UI with error messages
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isValidForexData(data)) {
|
if (!isValidForexData(data)) {
|
||||||
// && errorMessages.isNotEmpty) {
|
// && errorMessages.isNotEmpty) {
|
||||||
@ -376,8 +416,6 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
textControllers["_forexStartDate"]?.addListener(_onFieldChanged);
|
textControllers["_forexStartDate"]?.addListener(_onFieldChanged);
|
||||||
textControllers["_forexEndDate"]?.addListener(_onFieldChanged);
|
textControllers["_forexEndDate"]?.addListener(_onFieldChanged);
|
||||||
|
|
||||||
handleUpdatedField();
|
|
||||||
|
|
||||||
flightFirstTripDateNotifier = ValueNotifier<String?>(null);
|
flightFirstTripDateNotifier = ValueNotifier<String?>(null);
|
||||||
flightLastTripDateNotifier = ValueNotifier<String?>(null);
|
flightLastTripDateNotifier = ValueNotifier<String?>(null);
|
||||||
|
|
||||||
@ -386,6 +424,8 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
|
|
||||||
print("tripuserId - $tripuserId");
|
print("tripuserId - $tripuserId");
|
||||||
final result = getFlightTripDateRange(widget.flightData);
|
final result = getFlightTripDateRange(widget.flightData);
|
||||||
|
print("result - $result");
|
||||||
|
|
||||||
flightFirstTripDateNotifier.value = result['firstTripDate'];
|
flightFirstTripDateNotifier.value = result['firstTripDate'];
|
||||||
flightLastTripDateNotifier.value = result['lastTripDate'];
|
flightLastTripDateNotifier.value = result['lastTripDate'];
|
||||||
|
|
||||||
@ -409,6 +449,9 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
'dd-MM-yyyy',
|
'dd-MM-yyyy',
|
||||||
).format(parsedEndDate);
|
).format(parsedEndDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleUpdatedField();
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -429,16 +472,16 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
print("UPDATAED SELECTION");
|
print("UPDATAED SELECTION");
|
||||||
|
|
||||||
textControllers["_forexStartDate"] = initController("start_date");
|
textControllers["_forexStartDate"] = initController("start_date");
|
||||||
|
textControllers["_forexStartDate"]?.addListener(_onFieldChanged); // Reattach
|
||||||
textControllers["_forexEndDate"] = initController("end_date");
|
textControllers["_forexEndDate"] = initController("end_date");
|
||||||
|
textControllers["_forexEndDate"]?.addListener(_onFieldChanged); // Reattach
|
||||||
textControllers["_transport"] = initController("transport");
|
textControllers["_transport"] = initController("transport");
|
||||||
textControllers["_accomodation"] = initController("accommodation");
|
textControllers["_accomodation"] = initController("accommodation");
|
||||||
textControllers["_telephone"] = initController("telephone");
|
textControllers["_telephone"] = initController("telephone");
|
||||||
textControllers["_cardNumber"] = initController("card_number");
|
textControllers["_cardNumber"] = initController("card_number");
|
||||||
textControllers["_card"] = initController("deposit_on_card");
|
textControllers["_card"] = initController("deposit_on_card");
|
||||||
textControllers["_cash"] = initController("deposit_on_cash");
|
textControllers["_cash"] = initController("deposit_on_cash");
|
||||||
textControllers["_deliveryLocation"] = initController(
|
textControllers["_deliveryLocation"] = initController("delivery_location");
|
||||||
"delivery_location",
|
|
||||||
);
|
|
||||||
textControllers["_comments"] = initController("comments");
|
textControllers["_comments"] = initController("comments");
|
||||||
|
|
||||||
// Set dropdown values
|
// Set dropdown values
|
||||||
@ -466,7 +509,6 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
// textControllers["_cardNumber"]!.text = userCardNumber ?? '';
|
// textControllers["_cardNumber"]!.text = userCardNumber ?? '';
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
|
|
||||||
_onFieldChangedForOthers();
|
_onFieldChangedForOthers();
|
||||||
setState(() {}); // Update the UI
|
setState(() {}); // Update the UI
|
||||||
|
|
||||||
@ -502,6 +544,7 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
|
|
||||||
// Handle field changes
|
// Handle field changes
|
||||||
void _onFieldChanged() {
|
void _onFieldChanged() {
|
||||||
|
print("_on Field Changed Called");
|
||||||
if (_isForexDataDurationComplete()) {
|
if (_isForexDataDurationComplete()) {
|
||||||
print("Calculate 1");
|
print("Calculate 1");
|
||||||
CalculateDuration();
|
CalculateDuration();
|
||||||
@ -532,14 +575,13 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
// final startDate = DateFormat('dd/mm/yyyy').parse(startDateString);
|
// final startDate = DateFormat('dd/mm/yyyy').parse(startDateString);
|
||||||
// final endDate = DateFormat('dd/mm/yyyy').parse(endDateString);
|
// final endDate = DateFormat('dd/mm/yyyy').parse(endDateString);
|
||||||
|
|
||||||
final startDate = DateFormat('dd-MM-yyyy').parse(startDateString);
|
final startDate = DateFormat('dd-MM-yyyy').parse(startDateString.trim()) ;
|
||||||
final endDate = DateFormat('dd-MM-yyyy').parse(endDateString);
|
final endDate = DateFormat('dd-MM-yyyy').parse(endDateString.trim()) ;
|
||||||
|
|
||||||
print("Calculate 4");
|
print("Calculate 4");
|
||||||
|
|
||||||
// Calculate difference
|
// Calculate difference
|
||||||
final durationInDays =
|
final durationInDays = endDate.difference(startDate).inDays ; // +1 to include both days
|
||||||
endDate.difference(startDate).inDays + 1; // +1 to include both days
|
|
||||||
|
|
||||||
// You can now use durationInDays however you want:
|
// You can now use durationInDays however you want:
|
||||||
print("Duration: $durationInDays days");
|
print("Duration: $durationInDays days");
|
||||||
@ -721,6 +763,9 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
for (var controller in textControllers.values) {
|
for (var controller in textControllers.values) {
|
||||||
controller.dispose();
|
controller.dispose();
|
||||||
}
|
}
|
||||||
|
// textControllers["_forexStartDate"]?.removeListener(_onFieldChanged);
|
||||||
|
// textControllers["_forexEndDate"]?.removeListener(_onFieldChanged);
|
||||||
|
// textControllers.forEach((_, controller) => controller.dispose());
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -994,6 +1039,7 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: focusNodes["_forexStartDate"],
|
focusNode: focusNodes["_forexStartDate"],
|
||||||
controller: textControllers["_forexStartDate"],
|
controller: textControllers["_forexStartDate"],
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -1074,6 +1120,7 @@ class _ForexScreenState extends State<ForexScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: focusNodes["_forexEndDate"],
|
focusNode: focusNodes["_forexEndDate"],
|
||||||
controller: textControllers["_forexEndDate"],
|
controller: textControllers["_forexEndDate"],
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
|
|||||||
@ -887,6 +887,7 @@ class _InsuranceScreenState extends State<InsuranceScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _startDateFocusNode,
|
focusNode: _startDateFocusNode,
|
||||||
controller: _startDateController,
|
controller: _startDateController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select ",
|
labelText: "Select ",
|
||||||
@ -956,6 +957,7 @@ class _InsuranceScreenState extends State<InsuranceScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _endDateFocusNode,
|
focusNode: _endDateFocusNode,
|
||||||
controller: _endDateController,
|
controller: _endDateController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select ",
|
labelText: "Select ",
|
||||||
|
|||||||
@ -832,6 +832,7 @@ class _TaxiScreenState extends State<TaxiScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _dateFocusNode,
|
focusNode: _dateFocusNode,
|
||||||
controller: _dateController,
|
controller: _dateController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -883,6 +884,7 @@ class _TaxiScreenState extends State<TaxiScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _timeFocusNode,
|
focusNode: _timeFocusNode,
|
||||||
controller: _timeController,
|
controller: _timeController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Time",
|
labelText: "Select Time",
|
||||||
|
|||||||
@ -1034,6 +1034,7 @@ class _TrainScreenState extends State<TrainScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _dateFocusNode,
|
focusNode: _dateFocusNode,
|
||||||
controller: _dateController,
|
controller: _dateController,
|
||||||
|
readOnly: true, // Prevents typing
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -1086,6 +1087,7 @@ class _TrainScreenState extends State<TrainScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _timeFocusNode,
|
focusNode: _timeFocusNode,
|
||||||
controller: _timeController,
|
controller: _timeController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Time",
|
labelText: "Select Time",
|
||||||
|
|||||||
@ -734,6 +734,7 @@ class _VisaScreenState extends State<VisaScreen> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _dateFocusNode,
|
focusNode: _dateFocusNode,
|
||||||
controller: _dateController,
|
controller: _dateController,
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
|
|||||||
@ -142,27 +142,26 @@ class TravellerListState extends State<TravellerList> {
|
|||||||
// });
|
// });
|
||||||
// print("filteredPlans: $filteredTraveller");
|
// print("filteredPlans: $filteredTraveller");
|
||||||
|
|
||||||
print("all before filtering: $query");
|
final lowerQuery = query.toLowerCase().trim();
|
||||||
final lowerQuery = query.toLowerCase();
|
|
||||||
setState(() {
|
setState(() {
|
||||||
filteredTraveller =
|
filteredTraveller = allTraveller.where((object) {
|
||||||
allTraveller.where((object) {
|
final travellerId = object['traveller_id']?.toLowerCase() ?? '';
|
||||||
final isActiveStatus =
|
final firstName = object['first_name']?.toLowerCase() ?? '';
|
||||||
object['is_active'] == "1" ? "active" : "inactive";
|
final lastName = object['last_name']?.toLowerCase() ?? '';
|
||||||
return (object['traveller_id']?.toLowerCase().contains(
|
final fullName = '$firstName $lastName';
|
||||||
lowerQuery,
|
final mobile = object['mobile']?.toLowerCase() ?? '';
|
||||||
) ??
|
final email = object['email']?.toLowerCase() ?? '';
|
||||||
false) ||
|
final isActiveStatus = object['is_active'] == "1" ? "active" : "inactive";
|
||||||
(object['first_name']?.toLowerCase().contains(lowerQuery) ??
|
|
||||||
false) ||
|
return travellerId.contains(lowerQuery) ||
|
||||||
(object['last_name']?.toLowerCase().contains(lowerQuery) ??
|
firstName.contains(lowerQuery) ||
|
||||||
false) ||
|
lastName.contains(lowerQuery) ||
|
||||||
(object['mobile']?.toLowerCase().contains(lowerQuery) ??
|
fullName.contains(lowerQuery) ||
|
||||||
false) ||
|
mobile.contains(lowerQuery) ||
|
||||||
(object['email']?.toLowerCase().contains(lowerQuery) ??
|
email.contains(lowerQuery) ||
|
||||||
false) ||
|
isActiveStatus.contains(lowerQuery);
|
||||||
(isActiveStatus.contains(lowerQuery));
|
}).toList();
|
||||||
}).toList();
|
|
||||||
currentPage = 0;
|
currentPage = 0;
|
||||||
});
|
});
|
||||||
print("filteredTraveller: $filteredTraveller");
|
print("filteredTraveller: $filteredTraveller");
|
||||||
|
|||||||
@ -1392,6 +1392,7 @@ class _OfficeDetailsState extends State<OfficeDetails> {
|
|||||||
child: AbsorbPointer(
|
child: AbsorbPointer(
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: widget.controllers["delegationStartDate"],
|
controller: widget.controllers["delegationStartDate"],
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -1496,6 +1497,7 @@ class _OfficeDetailsState extends State<OfficeDetails> {
|
|||||||
child: AbsorbPointer(
|
child: AbsorbPointer(
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: widget.controllers["delegationEndDate"],
|
controller: widget.controllers["delegationEndDate"],
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
|
|||||||
@ -1098,6 +1098,7 @@ class PersonalDetailsState extends State<PersonalDetails> {
|
|||||||
child: AbsorbPointer(
|
child: AbsorbPointer(
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: widget.controllers["dob"],
|
controller: widget.controllers["dob"],
|
||||||
|
readOnly: true,
|
||||||
style: GoogleFonts.poppins(fontSize: 12, color: Colors.black),
|
style: GoogleFonts.poppins(fontSize: 12, color: Colors.black),
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
|
|||||||
@ -1422,6 +1422,7 @@ class TravellerDetailsState extends State<TravellerDetails> {
|
|||||||
child: AbsorbPointer(
|
child: AbsorbPointer(
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: controllers["dateOfIssue"],
|
controller: controllers["dateOfIssue"],
|
||||||
|
readOnly: true,
|
||||||
style: GoogleFonts.poppins(fontSize: 12, color: Colors.black),
|
style: GoogleFonts.poppins(fontSize: 12, color: Colors.black),
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -1559,6 +1560,7 @@ class TravellerDetailsState extends State<TravellerDetails> {
|
|||||||
child: AbsorbPointer(
|
child: AbsorbPointer(
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: controllers["dateOfExpiry"],
|
controller: controllers["dateOfExpiry"],
|
||||||
|
readOnly: true,
|
||||||
style: GoogleFonts.poppins(fontSize: 12, color: Colors.black),
|
style: GoogleFonts.poppins(fontSize: 12, color: Colors.black),
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -2884,6 +2886,7 @@ class TravellerDetailsState extends State<TravellerDetails> {
|
|||||||
child: AbsorbPointer(
|
child: AbsorbPointer(
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: controllers["forex_expiry_date"],
|
controller: controllers["forex_expiry_date"],
|
||||||
|
readOnly: true,
|
||||||
style: GoogleFonts.poppins(fontSize: 12, color: Colors.black),
|
style: GoogleFonts.poppins(fontSize: 12, color: Colors.black),
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -4124,7 +4127,7 @@ class TravellerDetailsState extends State<TravellerDetails> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
// focusNode: _dateFocusNode,
|
// focusNode: _dateFocusNode,
|
||||||
controller: entry["controller_valid_from"],
|
controller: entry["controller_valid_from"],
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
@ -4241,6 +4244,7 @@ class TravellerDetailsState extends State<TravellerDetails> {
|
|||||||
// focusNode: _dateFocusNode,
|
// focusNode: _dateFocusNode,
|
||||||
// controller: _dateController,
|
// controller: _dateController,
|
||||||
controller: entry["controller_valid_upto"],
|
controller: entry["controller_valid_upto"],
|
||||||
|
readOnly: true,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: "Select Date",
|
labelText: "Select Date",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user