shadows.dart 1.59 KB
Newer Older
1 2 3 4
// 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.

5
import 'dart:ui' show Color, Offset;
6

7
import 'package:flutter/painting.dart';
8

Hixie's avatar
Hixie committed
9 10
const Map<int, List<BoxShadow>> shadows = const <int, List<BoxShadow>>{
  1: const <BoxShadow>[
11 12 13 14 15 16 17 18 19
    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),
    ],
Hixie's avatar
Hixie committed
20
  2: const <BoxShadow>[
21 22 23 24 25 26 27 28 29
    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),
  ],
Hixie's avatar
Hixie committed
30
  3: const <BoxShadow>[
31 32 33 34 35 36 37 38 39
    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),
  ],
Hixie's avatar
Hixie committed
40
  4: const <BoxShadow>[
41 42 43 44 45 46 47 48 49
    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),
  ],
Hixie's avatar
Hixie committed
50
  5: const <BoxShadow>[
51 52 53 54 55 56 57 58 59 60
    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),
  ],
};