constants.dart 1.42 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
/// The height of the bottom navigation bar.
11
const double kBottomNavigationBarHeight = 56.0;
12

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
/// The radius of a circular material ink response in logical pixels.
20
const double kRadialReactionRadius = 20.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: 100);
24 25

/// The value of the alpha channel to use when drawing a circular material ink response.
26
const int kRadialReactionAlpha = 0x1F;
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 32 33
/// The horizontal padding included by [Tab]s.
const EdgeInsets kTabLabelPadding = const EdgeInsets.symmetric(horizontal: 12.0);

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