mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-17 02:25:16 +00:00
fixes bugs 5
This commit is contained in:
@ -72,11 +72,12 @@ class DoorRecordsScreen extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
// List of records for the specific date
|
// List of records for the specific date
|
||||||
|
|
||||||
DefaultContainer(
|
DefaultContainer(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
...recordsForDate.map((record) {
|
...recordsForDate.asMap().entries.map((entry) {
|
||||||
|
final int idx = entry.key;
|
||||||
|
final DeviceEvent record = entry.value;
|
||||||
final DateTime eventDateTime =
|
final DateTime eventDateTime =
|
||||||
DateTime.fromMillisecondsSinceEpoch(
|
DateTime.fromMillisecondsSinceEpoch(
|
||||||
record.eventTime!);
|
record.eventTime!);
|
||||||
@ -107,9 +108,11 @@ class DoorRecordsScreen extends StatelessWidget {
|
|||||||
subtitle: Text('$formattedTime'),
|
subtitle: Text('$formattedTime'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
// Only add Divider if it's not the last item
|
||||||
|
if (idx != recordsForDate.length - 1)
|
||||||
const Divider(
|
const Divider(
|
||||||
color: ColorsManager.graysColor,
|
color: ColorsManager.graysColor,
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
|
@ -173,7 +173,6 @@ class TimerScheduleScreen extends StatelessWidget {
|
|||||||
|
|
||||||
children: [
|
children: [
|
||||||
Center(
|
Center(
|
||||||
child: Container(
|
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment:
|
mainAxisAlignment:
|
||||||
MainAxisAlignment.center,
|
MainAxisAlignment.center,
|
||||||
@ -226,7 +225,6 @@ class TimerScheduleScreen extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
SizedBox(
|
SizedBox(
|
||||||
child: twoGangBloc.createSchedule ==
|
child: twoGangBloc.createSchedule ==
|
||||||
true
|
true
|
||||||
|
Reference in New Issue
Block a user