Skip to content

Commit

Permalink
Resolve minor conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
rubuy-74 authored and bdmendes committed Aug 24, 2023
1 parent 239827b commit 0bdd78c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions uni/lib/view/exams/widgets/exam_filter_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class FilteredExamList extends StatelessWidget {
Widget build(BuildContext context) {
filteredExams.removeWhere((key, value) => !Exam.types.containsKey(key));
return ListView(
children: List.generate(filteredExams.length, (i) {
final key = filteredExams.keys.elementAt(i);
if (!Exam.types.containsKey(key)) return const Text('');
return CheckboxListTile(
children: List.generate(filteredExams.length, (i) {
final key = filteredExams.keys.elementAt(i);
if (!Exam.types.containsKey(key)) return const Text('');
return CheckboxListTile(
contentPadding: EdgeInsets.zero,
title: Text(
key,
Expand All @@ -66,7 +66,9 @@ class FilteredExamList extends StatelessWidget {
value: filteredExams[key],
onChanged: (value) {
filteredExams[key] = value!;
});
}));
},
);
}),
);
}
}

0 comments on commit 0bdd78c

Please sign in to comment.