forked from student-hub/acs-upb-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom_icons.dart
46 lines (36 loc) · 1.42 KB
/
custom_icons.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class CustomIcons {
CustomIcons._();
static const _kFontFam = 'CustomIcons';
static const _kFontPkg = null;
// Custom font icons (see [CONTRIBUTING.md] for more info)
static const IconData book =
IconData(0xe800, fontFamily: _kFontFam, fontPackage: _kFontPkg);
// ignore: constant_identifier_names
static const IconData edit_off_outlined =
IconData(0xe801, fontFamily: _kFontFam, fontPackage: _kFontPkg);
static const IconData github =
IconData(0xe803, fontFamily: _kFontFam, fontPackage: _kFontPkg);
// ignore: constant_identifier_names
static const IconData edit_off =
IconData(0xe804, fontFamily: _kFontFam, fontPackage: _kFontPkg);
static const IconData filter =
IconData(0xf0b0, fontFamily: _kFontFam, fontPackage: _kFontPkg);
static const Icon valid =
Icon(Icons.check_circle_outlined, color: Colors.green);
static const Icon invalid = Icon(Icons.cancel_outlined, color: Colors.red);
// Transparent icon to be used as a placeholder
static const Icon empty =
Icon(Icons.cancel_outlined, color: Color(0x00000000));
static Color formIconColor(ThemeData themeData) {
switch (themeData.brightness) {
case Brightness.dark:
return Colors.white70;
case Brightness.light:
return Colors.black45;
default:
return themeData.iconTheme.color;
}
}
}