fixes bugs 5

This commit is contained in:
mohammad
2024-09-24 11:15:29 +03:00
parent 9d8c40e44e
commit e3a6579819
2 changed files with 58 additions and 57 deletions

View File

@ -72,11 +72,12 @@ class DoorRecordsScreen extends StatelessWidget {
),
),
// List of records for the specific date
DefaultContainer(
child: Column(
children: [
...recordsForDate.map((record) {
...recordsForDate.asMap().entries.map((entry) {
final int idx = entry.key;
final DeviceEvent record = entry.value;
final DateTime eventDateTime =
DateTime.fromMillisecondsSinceEpoch(
record.eventTime!);
@ -107,9 +108,11 @@ class DoorRecordsScreen extends StatelessWidget {
subtitle: Text('$formattedTime'),
),
),
// Only add Divider if it's not the last item
if (idx != recordsForDate.length - 1)
const Divider(
color: ColorsManager.graysColor,
)
),
],
);
}).toList(),

View File

@ -173,7 +173,6 @@ class TimerScheduleScreen extends StatelessWidget {
children: [
Center(
child: Container(
child: Column(
mainAxisAlignment:
MainAxisAlignment.center,
@ -226,7 +225,6 @@ class TimerScheduleScreen extends StatelessWidget {
],
),
),
),
SizedBox(
child: twoGangBloc.createSchedule ==
true