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.Quizz: return Icons.question_answer; case SectionType.Article: return Icons.article_outlined; case SectionType.Pdf: return Icons.picture_as_pdf_outlined; case SectionType.Puzzle: return Icons.extension; case SectionType.Agenda: return Icons.calendar_month_outlined; } return Icons.question_mark; }