simplified code across the app and consolidated duplicated helpers
This commit is contained in:
@@ -78,7 +78,7 @@ class HolidaysView extends StatelessWidget {
|
||||
},
|
||||
child: (state, loading) {
|
||||
final holidays = bloc.getHolidays();
|
||||
if (holidays == null || holidays.isEmpty) {
|
||||
if (holidays.isEmpty) {
|
||||
return const PlaceholderView(
|
||||
icon: Icons.beach_access_outlined,
|
||||
text: 'Keine Schulferien verfügbar',
|
||||
|
||||
Reference in New Issue
Block a user