Make these constants private
These constants aren't useful outside these files and are cause noise in the dartdoc.
This commit is contained in:
parent
333e611585
commit
916e4fabe4
@ -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 {
|
|||||||
|
|
||||||
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';
|
|||||||
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 {
|
|||||||
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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user