mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-10 15:17:21 +00:00
Refactor flush presence records widget to display the correct status
This commit is contained in:
@ -95,17 +95,15 @@ class FlushPresenceRecords extends StatelessWidget {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
leading: Icon(
|
leading: Icon(
|
||||||
record.value == 'true'
|
record.value == "presence"
|
||||||
? Icons.radio_button_checked
|
? Icons.radio_button_checked
|
||||||
: Icons.radio_button_unchecked,
|
: Icons.radio_button_unchecked,
|
||||||
color: record.value == 'true'
|
color: record.value == "presence"
|
||||||
? Colors.blue
|
? Colors.blue
|
||||||
: Colors.grey,
|
: Colors.grey,
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(
|
||||||
record.value == 'true'
|
record.value.toString(),
|
||||||
? "Opened"
|
|
||||||
: "Closed",
|
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
|
Reference in New Issue
Block a user