mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Sky: Add a CustomDart attribute to the IDL compiler, and use that with Canvas
to provide a better Dart API. When the attribute is present on an IDL interface, the generate Dart code will be a private interface that can extended by custom dart code. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1135283005
This commit is contained in:
parent
204298278a
commit
9dfbc4eea4
@ -18,12 +18,14 @@ void main() {
|
||||
|
||||
context.save();
|
||||
|
||||
context.clipRect([0.0, 0.0, context.width, radius]);
|
||||
context.clipRect(new Rect()..setLTRB(0.0, 0.0, context.width, radius));
|
||||
|
||||
context.translate(context.width / 2.0, context.height / 2.0);
|
||||
paint.setARGB(128, 255, 0, 255);
|
||||
context.rotateDegrees(45.0);
|
||||
context.drawRect([-radius, -radius, radius, radius], paint);
|
||||
|
||||
context.drawRect(new Rect()..setLTRB(-radius, -radius, radius, radius),
|
||||
paint);
|
||||
|
||||
// Scale x and y by 0.5.
|
||||
var scaleMatrix = [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user