constants.dart 1.29 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 6
import 'package:flutter/painting.dart';

7 8
/// The height of the toolbar component of the [AppBar].
const double kToolbarHeight = 56.0;
9

10 11 12
/// The height of the bottom navigation bar.
const double kBottomNavigationBarHeight = 60.0;

13
/// The height of a tab bar containing text.
14
const double kTextTabBarHeight = 48.0;
Adam Barth's avatar
Adam Barth committed
15

16
/// The amount of time theme change animations should last.
17
const Duration kThemeChangeDuration = const Duration(milliseconds: 200);
Adam Barth's avatar
Adam Barth committed
18

19 20
/// The radius of a circular material ink response in logical pixels.
const double kRadialReactionRadius = 24.0;
21

22
/// The amount of time a circular material ink response should take to expand to its full size.
23
const Duration kRadialReactionDuration = const Duration(milliseconds: 200);
24 25

/// The value of the alpha channel to use when drawing a circular material ink response.
26
const int kRadialReactionAlpha = 0x33;
Hans Muller's avatar
Hans Muller committed
27

28 29
/// The duration of the horizontal scroll animation that occurs when a tab is tapped.
const Duration kTabScrollDuration = const Duration(milliseconds: 300);
30

31
/// The padding added around material list items.
32
const EdgeInsets kMaterialListPadding = const EdgeInsets.symmetric(vertical: 8.0);