| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import '../fn2.dart'; | 5 import '../fn2.dart'; |
| 6 import '../rendering/box.dart'; | 6 import '../rendering/box.dart'; |
| 7 import '../theme2/colors.dart'; | 7 import '../theme2/colors.dart'; |
| 8 import 'dart:sky' as sky; | 8 import 'dart:sky' as sky; |
| 9 import 'ink_well.dart'; | 9 import 'ink_well.dart'; |
| 10 import 'material.dart'; | 10 import 'material.dart'; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 if (content != null) | 24 if (content != null) |
| 25 children.add(content); | 25 children.add(content); |
| 26 | 26 |
| 27 return new Material( | 27 return new Material( |
| 28 content: new CustomPaint( | 28 content: new CustomPaint( |
| 29 callback: (sky.Canvas canvas) { | 29 callback: (sky.Canvas canvas) { |
| 30 const double radius = _kSize / 2.0; | 30 const double radius = _kSize / 2.0; |
| 31 canvas.drawCircle(radius, radius, radius, new sky.Paint()..color = Red
[500]); | 31 canvas.drawCircle(radius, radius, radius, new sky.Paint()..color = Red
[500]); |
| 32 }, | 32 }, |
| 33 child: new Container( | 33 child: new Container( |
| 34 desiredSize: const sky.Size(_kSize, _kSize), | 34 width: _kSize, |
| 35 height: _kSize, |
| 35 child: new InkWell(children: children))), | 36 child: new InkWell(children: children))), |
| 36 level: level); | 37 level: level); |
| 37 } | 38 } |
| 38 } | 39 } |
| OLD | NEW |