import 'package:flutter/material.dart'; import 'package:notas/theme/app_colors.dart'; class CategoryStyle { CategoryStyle._(); static const List colors = AppColors.categoryColors; static const List icons = [ Icons.label_outline_rounded, Icons.work, Icons.star, Icons.home, Icons.school, Icons.book, Icons.music_note, Icons.lightbulb, ]; static IconData iconForCodePoint(int? codePoint) { if (codePoint == null) { return Icons.folder_outlined; } for (final IconData icon in icons) { if (icon.codePoint == codePoint) { return icon; } } return Icons.folder_outlined; } }