Quit-Your-Addictions/lib/repo/icons_repository.dart

40 lines
1001 B
Dart

import 'package:flutter/material.dart';
class IconsRepository {
static IconData getIcon(int codePoint) {
return IconData(codePoint, fontFamily: 'MaterialIcons');
}
List<int> getFeaturedIcons() {
return [
Icons.directions_walk.codePoint,
Icons.directions_bike.codePoint,
Icons.alarm.codePoint,
Icons.book.codePoint,
Icons.brush.codePoint,
Icons.bubble_chart.codePoint,
Icons.cake.codePoint,
Icons.local_cafe.codePoint,
Icons.local_grocery_store.codePoint,
Icons.local_atm.codePoint,
Icons.music_note.codePoint,
Icons.star_border.codePoint,
Icons.directions_transit_sharp.codePoint,
Icons.self_improvement.codePoint,
Icons.school.codePoint,
Icons.local_gas_station.codePoint,
Icons.computer.codePoint,
Icons.wb_sunny.codePoint,
Icons.call.codePoint,
];
}
IconData getIconData(int codePoint) {
return IconData(codePoint, fontFamily: 'MaterialIcons');
}
}