From 64d93d4a5371a170a7753fc2c0eb4ee106e8bda5 Mon Sep 17 00:00:00 2001 From: Atharva Date: Sat, 20 Jul 2024 19:50:36 +0530 Subject: [PATCH] improv attendance_screen.dart --- lib/new_ui/screens/attendance_screen/attendance_screen.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/new_ui/screens/attendance_screen/attendance_screen.dart b/lib/new_ui/screens/attendance_screen/attendance_screen.dart index d4acf05..8cee401 100644 --- a/lib/new_ui/screens/attendance_screen/attendance_screen.dart +++ b/lib/new_ui/screens/attendance_screen/attendance_screen.dart @@ -222,7 +222,6 @@ class _AttendanceScreenState extends State { 'present': attendedLectures, }; - // Update the document with the modified array await FirebaseFirestore.instance .collection("Attendance") .doc(FirebaseAuth.instance.currentUser!.uid) @@ -466,7 +465,7 @@ class _AttendanceScreenState extends State { 'present': attendedLectures }]) }, SetOptions(merge: true)); - + _fetchAndSetAttendance(); Navigator.of(context).pop(); }, child: Text('Add', style: TextStyle(color: Colors.blue)),