Commit 916e4fab authored by Adam Barth's avatar Adam Barth

Make these constants private

These constants aren't useful outside these files and are cause noise in the
dartdoc.
parent 333e6115
...@@ -6,7 +6,7 @@ import 'package:sky/widgets/basic.dart'; ...@@ -6,7 +6,7 @@ import 'package:sky/widgets/basic.dart';
import 'package:sky/widgets/framework.dart'; import 'package:sky/widgets/framework.dart';
import 'package:sky/widgets/material.dart'; import 'package:sky/widgets/material.dart';
const EdgeDims kCardMargins = const EdgeDims.all(4.0); const EdgeDims _kCardMargins = const EdgeDims.all(4.0);
/// A material design card /// A material design card
/// ///
...@@ -19,7 +19,7 @@ class Card extends Component { ...@@ -19,7 +19,7 @@ class Card extends Component {
Widget build() { Widget build() {
return new Container( return new Container(
margin: kCardMargins, margin: _kCardMargins,
child: new Material( child: new Material(
color: color, color: color,
type: MaterialType.card, type: MaterialType.card,
......
...@@ -10,8 +10,8 @@ import 'package:sky/widgets/gesture_detector.dart'; ...@@ -10,8 +10,8 @@ import 'package:sky/widgets/gesture_detector.dart';
import 'package:sky/widgets/ink_well.dart'; import 'package:sky/widgets/ink_well.dart';
import 'package:sky/widgets/theme.dart'; import 'package:sky/widgets/theme.dart';
const double kMenuItemHeight = 48.0; const double _kMenuItemHeight = 48.0;
const double kBaselineOffsetFromBottom = 20.0; const double _kBaselineOffsetFromBottom = 20.0;
class PopupMenuItem extends Component { class PopupMenuItem extends Component {
PopupMenuItem({ PopupMenuItem({
...@@ -30,11 +30,11 @@ class PopupMenuItem extends Component { ...@@ -30,11 +30,11 @@ class PopupMenuItem extends Component {
onTap: onPressed, onTap: onPressed,
child: new InkWell( child: new InkWell(
child: new Container( child: new Container(
height: kMenuItemHeight, height: _kMenuItemHeight,
child: new DefaultTextStyle( child: new DefaultTextStyle(
style: textStyle, style: textStyle,
child: new Baseline( child: new Baseline(
baseline: kMenuItemHeight - kBaselineOffsetFromBottom, baseline: _kMenuItemHeight - _kBaselineOffsetFromBottom,
child: child child: child
) )
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment