mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
41 lines
1.6 KiB
Dart
41 lines
1.6 KiB
Dart
// 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.
|
|
|
|
// Modeled after Android's ViewConfiguration:
|
|
// https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/ViewConfiguration.java
|
|
|
|
const double kNotificationAreaHeight = 25.0;
|
|
// TODO(ianh): Figure out actual specced height for status bar
|
|
const double kStatusBarHeight = 50.0;
|
|
|
|
// TODO(eseidel) Toolbar needs to change size based on orientation:
|
|
// http://www.google.com/design/spec/layout/structure.html#structure-app-bar
|
|
// Mobile Landscape: 48dp
|
|
// Mobile Portrait: 56dp
|
|
// Tablet/Desktop: 64dp
|
|
const double kToolBarHeight = 56.0;
|
|
|
|
const double kMaterialDrawerHeight = 140.0;
|
|
const double kScrollbarSize = 10.0;
|
|
const double kScrollbarFadeDuration = 250.0;
|
|
const double kScrollbarFadeDelay = 300.0;
|
|
const double kFadingEdgeLength = 12.0;
|
|
const double kPressedStateDuration = 64.0;
|
|
const double kDefaultLongPressTimeout = 500.0;
|
|
const double kTapTimeout = 100.0;
|
|
const double kJumpTapTimeout = 500.0;
|
|
const double kDoubleTapTimeout = 300.0;
|
|
const double kDoubleTapMinTime = 40.0;
|
|
const double kHoverTapTimeout = 150.0;
|
|
const double kHoverTapSlop = 20.0;
|
|
const double kZoomControlsTimeout = 3000.0;
|
|
const double kEdgeSlop = 12.0;
|
|
const double kTouchSlop = 8.0;
|
|
const double kDoubleTapTouchSlop = kTouchSlop;
|
|
const double kPagingTouchSlop = kTouchSlop * 2.0;
|
|
const double kDoubleTapSlop = 100.0;
|
|
const double kWindowTouchSlop = 16.0;
|
|
const double kMinFlingVelocity = 50.0;
|
|
const double kMaxFlingVelocity = 8000.0;
|