mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
remove unused constants (#13199)
This commit is contained in:
parent
167382480a
commit
bdbe53be01
@ -14,8 +14,6 @@ class ColorTestingDemo extends StatelessWidget {
|
||||
Widget build(BuildContext context) => new ColorDemoHome();
|
||||
}
|
||||
|
||||
const double _kPageMaxWidth = 500.0;
|
||||
|
||||
class ColorDemoHome extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@ -10,7 +10,6 @@ const Color _mariner = const Color(0xFF3B5F8F);
|
||||
const Color _mediumPurple = const Color(0xFF8266D4);
|
||||
const Color _tomato = const Color(0xFFF95B57);
|
||||
const Color _mySin = const Color(0xFFF3A646);
|
||||
const Color _deepCerise = const Color(0xFFD93F9B);
|
||||
|
||||
const String _kGalleryAssetsPackage = 'flutter_gallery_assets';
|
||||
|
||||
|
||||
@ -179,7 +179,6 @@ class _CupertinoSliderRenderObjectWidget extends LeafRenderObjectWidget {
|
||||
}
|
||||
|
||||
const double _kPadding = 8.0;
|
||||
const double _kTrackHeight = 2.0;
|
||||
const Color _kTrackColor = const Color(0xFFB5B5B5);
|
||||
const double _kSliderHeight = 2.0 * (CupertinoThumbPainter.radius + _kPadding);
|
||||
const double _kSliderWidth = 176.0; // Matches Material Design slider.
|
||||
|
||||
@ -16,8 +16,6 @@ import 'material.dart';
|
||||
import 'theme.dart';
|
||||
import 'typography.dart';
|
||||
|
||||
const double _kActiveMaxWidth = 168.0;
|
||||
const double _kInactiveMaxWidth = 96.0;
|
||||
const double _kActiveFontSize = 14.0;
|
||||
const double _kInactiveFontSize = 12.0;
|
||||
const double _kTopMargin = 6.0;
|
||||
|
||||
@ -14,8 +14,6 @@ import 'theme.dart';
|
||||
const Duration _kBottomSheetDuration = const Duration(milliseconds: 200);
|
||||
const double _kMinFlingVelocity = 700.0;
|
||||
const double _kCloseProgressThreshold = 0.5;
|
||||
const Color _kTransparent = const Color(0x00000000);
|
||||
const Color _kBarrierColor = Colors.black54;
|
||||
|
||||
/// A material design bottom sheet.
|
||||
///
|
||||
|
||||
@ -151,7 +151,6 @@ class _CheckboxRenderObjectWidget extends LeafRenderObjectWidget {
|
||||
}
|
||||
}
|
||||
|
||||
const double _kMidpoint = 0.5;
|
||||
const double _kEdgeSize = Checkbox.width;
|
||||
const Radius _kEdgeRadius = const Radius.circular(1.0);
|
||||
const double _kStrokeWidth = 2.0;
|
||||
|
||||
@ -277,8 +277,6 @@ class _MaterialState extends State<Material> with TickerProviderStateMixin {
|
||||
}
|
||||
}
|
||||
|
||||
const Duration _kHighlightFadeDuration = const Duration(milliseconds: 200);
|
||||
|
||||
class _RenderInkFeatures extends RenderProxyBox implements MaterialInkController {
|
||||
_RenderInkFeatures({
|
||||
RenderBox child,
|
||||
|
||||
@ -15,8 +15,6 @@ import 'theme_data.dart';
|
||||
// https://material.google.com/components/snackbars-toasts.html#snackbars-toasts-specs
|
||||
const double _kSnackBarPadding = 24.0;
|
||||
const double _kSingleLineVerticalPadding = 14.0;
|
||||
const double _kMultiLineVerticalTopPadding = 24.0;
|
||||
const double _kMultiLineVerticalSpaceBetweenTextAndButtons = 10.0;
|
||||
const Color _kSnackBackground = const Color(0xFF323232);
|
||||
|
||||
// TODO(ianh): We should check if the given text and actions are going to fit on
|
||||
|
||||
@ -22,7 +22,6 @@ import 'theme.dart';
|
||||
const double _kTabHeight = 46.0;
|
||||
const double _kTextAndIconTabHeight = 72.0;
|
||||
const double _kMinTabWidth = 72.0;
|
||||
const double _kMaxTabWidth = 264.0;
|
||||
|
||||
/// A material design [TabBar] tab. If both [icon] and [text] are
|
||||
/// provided, the text is displayed below the icon.
|
||||
|
||||
@ -14,9 +14,6 @@ import 'theme.dart';
|
||||
|
||||
export 'package:flutter/services.dart' show TextInputType;
|
||||
|
||||
const Duration _kTransitionDuration = const Duration(milliseconds: 200);
|
||||
const Curve _kTransitionCurve = Curves.fastOutSlowIn;
|
||||
|
||||
/// A material design text field.
|
||||
///
|
||||
/// A text field lets the user enter text, either with hardware keyboard or with
|
||||
|
||||
@ -18,8 +18,6 @@ const double _kCaretGap = 1.0; // pixels
|
||||
const double _kCaretHeightOffset = 2.0; // pixels
|
||||
const double _kCaretWidth = 1.0; // pixels
|
||||
|
||||
final String _kZeroWidthSpace = new String.fromCharCode(0x200B);
|
||||
|
||||
/// Signature for the callback that reports when the user changes the selection
|
||||
/// (including the cursor location).
|
||||
///
|
||||
|
||||
@ -9,8 +9,6 @@ import 'package:flutter/services.dart';
|
||||
|
||||
import 'widget_tester.dart';
|
||||
|
||||
const String _kTextInputClientChannel = 'flutter/textinputclient';
|
||||
|
||||
/// A testing stub for the system's onscreen keyboard.
|
||||
///
|
||||
/// Typical app tests will not need to use this class directly.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user