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 '../painting/box_painter.dart'; | |
6 import 'dart:sky' show Color, Size; | |
7 | |
8 const Map<int, List<BoxShadow>> shadows = const { | |
9 1: const [ | |
10 const BoxShadow( | |
11 color: const Color(0x1F000000), | |
12 offset: const Size(0.0, 1.0), | |
13 blur: 3.0), | |
14 const BoxShadow( | |
15 color: const Color(0x3D000000), | |
16 offset: const Size(0.0, 1.0), | |
17 blur: 2.0), | |
18 ], | |
19 2: const [ | |
20 const BoxShadow( | |
21 color: const Color(0x29000000), | |
22 offset: const Size(0.0, 3.0), | |
23 blur: 6.0), | |
24 const BoxShadow( | |
25 color: const Color(0x3B000000), | |
26 offset: const Size(0.0, 3.0), | |
27 blur: 6.0), | |
28 ], | |
29 3: const [ | |
30 const BoxShadow( | |
31 color: const Color(0x30000000), | |
32 offset: const Size(0.0, 10.0), | |
33 blur: 20.0), | |
34 const BoxShadow( | |
35 color: const Color(0x3B000000), | |
36 offset: const Size(0.0, 6.0), | |
37 blur: 6.0), | |
38 ], | |
39 4: const [ | |
40 const BoxShadow( | |
41 color: const Color(0x40000000), | |
42 offset: const Size(0.0, 14.0), | |
43 blur: 28.0), | |
44 const BoxShadow( | |
45 color: const Color(0x38000000), | |
46 offset: const Size(0.0, 10.0), | |
47 blur: 10.0), | |
48 ], | |
49 5: const [ | |
50 const BoxShadow( | |
51 color: const Color(0x4E000000), | |
52 offset: const Size(0.0, 19.0), | |
53 blur: 28.0), | |
54 const BoxShadow( | |
55 color: const Color(0x38000000), | |
56 offset: const Size(0.0, 15.0), | |
57 blur: 12.0), | |
58 ], | |
59 }; | |
OLD | NEW |