Repository navigation
Expand file tree
/
Copy pathstyles.dart
More file actions
executable file
·60 lines (58 loc) · 1.86 KB
/
Copy pathstyles.dart
File metadata and controls
executable file
·60 lines (58 loc) · 1.86 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
6C60
53
54
55
56
57
58
59
60
import 'package:flutter/material.dart';
class Styles {
static const _textSizeLarge = 22.0;
static const _textSizeDefault = 16.0;
static const _textSizeSmall = 12.0;
static const horizontalPaddingDefault = 12.0;
static final Color _textColorStrong = _hexToColor('000000');
static final Color _textColorDefault = _hexToColor('000000');
static final Color _textColorFaint = _hexToColor('999999');
static final Color textColorBright = _hexToColor('FFFFFF');
static final Color accentColor = _hexToColor('FF0000');
static final String _fontNameDefault = 'Montserrat';
static final navBarTitle = TextStyle(
fontFamily: _fontNameDefault,
fontWeight: FontWeight.w600,
fontSize: _textSizeDefault,
color: _textColorDefault,
);
static final headerLarge = TextStyle(
fontFamily: _fontNameDefault,
fontSize: _textSizeLarge,
color: _textColorStrong,
);
static final textDefault = TextStyle(
fontFamily: _fontNameDefault,
fontSize: _textSizeDefault,
color: _textColorDefault,
height: 1.2,
);
static final textCTAButton = TextStyle(
fontFamily: _fontNameDefault,
fontSize: _textSizeLarge,
color: textColorBright,
);
static final locationTileTitleLight = TextStyle(
fontFamily: _fontNameDefault,
fontSize: _textSizeLarge,
color: _textColorStrong,
);
static final locationTileTitleDark = TextStyle(
fontFamily: _fontNameDefault,
fontSize: _textSizeLarge,
color: textColorBright,
);
static final locationTileSubTitle = TextStyle(
fontFamily: _fontNameDefault,
fontSize: _textSizeDefault,
color: accentColor,
);
static final locationTileCaption = TextStyle(
fontFamily: _fontNameDefault,
fontSize: _textSizeSmall,
color: _textColorFaint,
);
static Color _hexToColor(String code) {
return Color(int.parse(code.substring(0, 6), radix: 16) + 0xFF000000);
}
}