skip to Main Content

enter image description here

print(hoursRanges[selectedHourRangeIndex!]);
//output: 09.00 - 11.00

it separates the dots when I want to update the value

enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    enter image description here

    its my firestore document structure I solved it by changing it like this 09.00 - 11.00 => 09:00 - 11:00


  2. Try:

    await FirebaseFirestore.instance
    .collection("staff")
    .doc(data.email)
    .collection("archive)
    .doc(inputs.date.substring(0.10))
    .update({
    "${hoursRanges[selectedRangeIndex!]}": true});
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search