shadows.dart 1.52 KB
Newer Older
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
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:sky' show Color, Offset;

import 'package:sky/painting/box_painter.dart';

const Map<int, List<BoxShadow>> shadows = const {
  1: const [
    const BoxShadow(
      color: const Color(0x1F000000),
      offset: const Offset(0.0, 1.0),
      blur: 3.0),
    const BoxShadow(
      color: const Color(0x3D000000),
      offset: const Offset(0.0, 1.0),
      blur: 2.0),
    ],
  2: const [
    const BoxShadow(
      color: const Color(0x29000000),
      offset: const Offset(0.0, 3.0),
      blur: 6.0),
    const BoxShadow(
      color: const Color(0x3B000000),
      offset: const Offset(0.0, 3.0),
      blur: 6.0),
  ],
  3: const [
    const BoxShadow(
      color: const Color(0x30000000),
      offset: const Offset(0.0, 10.0),
      blur: 20.0),
    const BoxShadow(
      color: const Color(0x3B000000),
      offset: const Offset(0.0, 6.0),
      blur: 6.0),
  ],
  4: const [
    const BoxShadow(
      color: const Color(0x40000000),
      offset: const Offset(0.0, 14.0),
      blur: 28.0),
    const BoxShadow(
      color: const Color(0x38000000),
      offset: const Offset(0.0, 10.0),
      blur: 10.0),
  ],
  5: const [
    const BoxShadow(
      color: const Color(0x4E000000),
      offset: const Offset(0.0, 19.0),
      blur: 28.0),
    const BoxShadow(
      color: const Color(0x38000000),
      offset: const Offset(0.0, 15.0),
      blur: 12.0),
  ],
};