manager-app/lib/Components/fetch_section_icon.dart
2021-05-11 18:13:02 +02:00

23 lines
544 B
Dart

import 'package:flutter/material.dart';
import 'package:managerapi/api.dart';
IconData getSectionIcon(elementType) {
switch(elementType) {
case SectionType.map:
return Icons.location_on;
break;
case SectionType.slider:
return Icons.collections; // art_track
break;
case SectionType.video:
return Icons.ondemand_video_rounded;
break;
case SectionType.web:
return Icons.web;
break;
case SectionType.menu:
return Icons.apps_sharp;
break;
}
return Icons.menu;
}