Include BoxDecoration description in Container toString
Have BoxDecoration default to one-line dumps Style nits in a rendering example
This commit is contained in:
@@ -8,16 +8,19 @@ import 'package:flutter/rendering.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void main() {
|
||||
var coloredBox = new RenderDecoratedBox(
|
||||
RenderBox coloredBox = new RenderDecoratedBox(
|
||||
decoration: new BoxDecoration(
|
||||
gradient: new RadialGradient(
|
||||
center: Point.origin, radius: 500.0,
|
||||
colors: <Color>[Colors.yellow[500], Colors.blue[500]]),
|
||||
boxShadow: elevationToShadow[8])
|
||||
colors: <Color>[Colors.yellow[500], Colors.blue[500]]
|
||||
),
|
||||
boxShadow: elevationToShadow[8]
|
||||
)
|
||||
);
|
||||
var paddedBox = new RenderPadding(
|
||||
RenderBox paddedBox = new RenderPadding(
|
||||
padding: const EdgeDims.all(50.0),
|
||||
child: coloredBox);
|
||||
child: coloredBox
|
||||
);
|
||||
new RenderingFlutterBinding(root: new RenderDecoratedBox(
|
||||
decoration: const BoxDecoration(
|
||||
backgroundColor: const Color(0xFFFFFFFF)
|
||||
|
||||
Reference in New Issue
Block a user