OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 import 'dart:sky' show Color, Size; | |
6 | |
7 import '../painting/box_painter.dart'; | |
8 | |
9 const Map<int, List<BoxShadow>> shadows = const { | |
10 1: const [ | |
11 const BoxShadow( | |
12 color: const Color(0x1F000000), | |
13 offset: const Size(0.0, 1.0), | |
14 blur: 3.0), | |
15 const BoxShadow( | |
16 color: const Color(0x3D000000), | |
17 offset: const Size(0.0, 1.0), | |
18 blur: 2.0), | |
19 ], | |
20 2: const [ | |
21 const BoxShadow( | |
22 color: const Color(0x29000000), | |
23 offset: const Size(0.0, 3.0), | |
24 blur: 6.0), | |
25 const BoxShadow( | |
26 color: const Color(0x3B000000), | |
27 offset: const Size(0.0, 3.0), | |
28 blur: 6.0), | |
29 ], | |
30 3: const [ | |
31 const BoxShadow( | |
32 color: const Color(0x30000000), | |
33 offset: const Size(0.0, 10.0), | |
34 blur: 20.0), | |
35 const BoxShadow( | |
36 color: const Color(0x3B000000), | |
37 offset: const Size(0.0, 6.0), | |
38 blur: 6.0), | |
39 ], | |
40 4: const [ | |
41 const BoxShadow( | |
42 color: const Color(0x40000000), | |
43 offset: const Size(0.0, 14.0), | |
44 blur: 28.0), | |
45 const BoxShadow( | |
46 color: const Color(0x38000000), | |
47 offset: const Size(0.0, 10.0), | |
48 blur: 10.0), | |
49 ], | |
50 5: const [ | |
51 const BoxShadow( | |
52 color: const Color(0x4E000000), | |
53 offset: const Size(0.0, 19.0), | |
54 blur: 28.0), | |
55 const BoxShadow( | |
56 color: const Color(0x38000000), | |
57 offset: const Size(0.0, 15.0), | |
58 blur: 12.0), | |
59 ], | |
60 }; | |
OLD | NEW |