styles.dart
2 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'colors.dart';
import 'dimens.dart';
class TextStyles {
static const TextStyle textSize12 = TextStyle(
fontSize: Dimens.font_sp12,
);
static const TextStyle textSize16 = TextStyle(
fontSize: Dimens.font_sp16,
);
static const TextStyle textBold14 = TextStyle(
fontSize: Dimens.font_sp14,
fontWeight: FontWeight.bold
);
static const TextStyle textBold16 = TextStyle(
fontSize: Dimens.font_sp16,
fontWeight: FontWeight.bold
);
static const TextStyle textBold18 = TextStyle(
fontSize: Dimens.font_sp18,
fontWeight: FontWeight.bold
);
static const TextStyle textBold24 = TextStyle(
fontSize: 24.0,
fontWeight: FontWeight.bold
);
static const TextStyle textBold26 = TextStyle(
fontSize: 26.0,
fontWeight: FontWeight.bold
);
static const TextStyle textGray14 = TextStyle(
fontSize: Dimens.font_sp14,
color: Colours.text_gray,
);
static const TextStyle textDarkGray14 = TextStyle(
fontSize: Dimens.font_sp14,
color: Colours.dark_text_gray,
);
static const TextStyle textWhite14 = TextStyle(
fontSize: Dimens.font_sp14,
color: Colors.white,
);
static const TextStyle text = TextStyle(
fontSize: Dimens.font_sp14,
color: Colours.text,
// https://github.com/flutter/flutter/issues/40248
textBaseline: TextBaseline.alphabetic
);
static const TextStyle textDark = TextStyle(
fontSize: Dimens.font_sp14,
color: Colours.dark_text,
textBaseline: TextBaseline.alphabetic
);
static const TextStyle textGray12 = TextStyle(
fontSize: Dimens.font_sp12,
color: Colours.text_gray,
fontWeight: FontWeight.normal
);
static const TextStyle textDarkGray12 = TextStyle(
fontSize: Dimens.font_sp12,
color: Colours.dark_text_gray,
fontWeight: FontWeight.normal
);
static const TextStyle textHint14 = TextStyle(
fontSize: Dimens.font_sp14,
color: Colours.dark_unselected_item_color
);
}