Merge pull request #102 from SyncrowIOT/Fix-Flush-Presence-Records

Refactor flush presence records widget to display the correct status
This commit is contained in:
mohammadnemer1
2025-05-14 11:16:45 +03:00
committed by GitHub

View File

@ -95,17 +95,15 @@ class FlushPresenceRecords extends StatelessWidget {
SizedBox(
child: ListTile(
leading: Icon(
record.value == 'true'
record.value == "presence"
? Icons.radio_button_checked
: Icons.radio_button_unchecked,
color: record.value == 'true'
color: record.value == "presence"
? Colors.blue
: Colors.grey,
),
title: Text(
record.value == 'true'
? "Opened"
: "Closed",
record.value.toString(),
style: const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 18,