Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: sky/sdk/lib/framework/components2/floating_action_button.dart

Issue 1166203002: Rename Container's desiredSize argument to width and height arguments. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/components2/drawer_header.dart ('k') | sky/sdk/lib/framework/components2/menu_divider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698