Loading...
Searching...
No Matches
widget_styles.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2
4
5// ============================================================================
6// Colors
7// ============================================================================
8
10const Color kBaseBlackColor = Color.fromRGBO(21, 45, 71, 1);
11
13const Color kBaseBlueColor = Color.fromRGBO(48, 170, 217, 1);
14
16const Color kButtonBackgroundColor = Color.fromRGBO(250, 250, 250, 0.8);
17
19const Color kButtonBackgroundColorOpaque = Color.fromRGBO(250, 250, 250, 0.95);
20
22const Color kWhiteBackgroundColor = Color.fromRGBO(255, 255, 255, 0.95);
23
25const Color kBorderColor = Color.fromRGBO(209, 209, 209, 1);
26
28const Color kShadowColor = Color.fromRGBO(21, 45, 71, 0.2);
29
30// ============================================================================
31// Shadows
32// ============================================================================
33
35const BoxShadow kStandardShadow = BoxShadow(
36 color: kShadowColor,
37 offset: Offset(0, 4),
38 blurRadius: 6,
39 spreadRadius: 0,
40);
41
43const List<BoxShadow> kStandardShadows = [kStandardShadow];
44
45// ============================================================================
46// Border Radius
47// ============================================================================
48
50const double kBorderRadius = 4.0;
51
53const BorderRadius kStandardBorderRadius = BorderRadius.all(Radius.circular(kBorderRadius));
54
56const BorderRadius kTopBorderRadius = BorderRadius.only(
57 topLeft: Radius.circular(kBorderRadius),
58 topRight: Radius.circular(kBorderRadius),
59);
60
62const BorderRadius kBottomBorderRadius = BorderRadius.only(
63 bottomLeft: Radius.circular(kBorderRadius),
64 bottomRight: Radius.circular(kBorderRadius),
65);
66
68const BorderRadius kVerticalTopBorderRadius = BorderRadius.vertical(
69 top: Radius.circular(kBorderRadius),
70);
71
73const BorderRadius kVerticalBottomBorderRadius = BorderRadius.vertical(
74 bottom: Radius.circular(kBorderRadius),
75);
76
77// ============================================================================
78// Sizes
79// ============================================================================
80
82const double kStandardButtonWidth = 48.0;
83
85const double kStandardButtonHeight = 48.0;
86
88const double kZoomControlsHeight = 96.0;
89
91const double kFloorRowHeight = 42.0;
92
94const double kFloorSelectorMaxHeight = 250.0;
95
97const int kMaxVisibleFloors = 6;
98
99// ============================================================================
100// Padding
101// ============================================================================
102
104const double kStandardRightPadding = 4.0;
105
107const double kStandardLeftPadding = 16.0;
108
110const double kFloorSelectorTopPadding = 145.0;
111
113const double kFollowMeBottomPadding = 48.0;
114
115// ============================================================================
116// Typography
117// ============================================================================
118
120const double kButtonFontSize = 22.0;
121
123const double kScrollButtonFontSize = 20.0;
124
126const double kFloorSelectorFontSize = 17.0;
127
129const FontWeight kButtonFontWeight = FontWeight.w600;
130
132const FontWeight kScrollButtonFontWeight = FontWeight.bold;
133
134// ============================================================================
135// Animations
136// ============================================================================
137
139const Duration kStandardAnimationDuration = Duration(milliseconds: 350);
140
142const Duration kScrollAnimationDuration = Duration(milliseconds: 300);
143
145const Curve kScrollAnimationCurve = Curves.easeOut;
146
147// ============================================================================
148// Borders
149// ============================================================================
150
152const double kActiveBorderWidth = 1.5;
153