manager-app/lib/Components/fetch_section_icon.dart
2025-11-27 15:47:21 +01:00

32 lines
938 B
Dart

import 'package:flutter/material.dart';
import 'package:manager_api_new/api.dart';
IconData getSectionIcon(elementType) {
switch(elementType) {
case SectionType.Map:
return Icons.location_on;
case SectionType.Slider:
return Icons.collections; // art_track
case SectionType.Video:
return Icons.ondemand_video_rounded;
case SectionType.Web:
return Icons.web;
case SectionType.Menu:
return Icons.apps_sharp;
case SectionType.Quiz:
return Icons.question_answer;
case SectionType.Article:
return Icons.article_outlined;
case SectionType.Pdf:
return Icons.picture_as_pdf_outlined;
case SectionType.Game:
return Icons.sports_esports;
case SectionType.Agenda:
return Icons.calendar_month_outlined;
case SectionType.Weather:
return Icons.sunny;
case SectionType.Event:
return Icons.event;
}
return Icons.question_mark;
}