mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Plumb display metrics into SkyView
This CL teaches SkyView the width, height, and device pixel ratio of the display. In the future, we'll want some sort of notification system for when these values change. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1139823010
This commit is contained in:
parent
0b18d56d5a
commit
17040ff355
@ -8,8 +8,8 @@ import 'dart:sky';
|
||||
void main() {
|
||||
print("Hello, world");
|
||||
|
||||
double width = 500.0;
|
||||
double height = 500.0;
|
||||
double width = view.width;
|
||||
double height = view.height;
|
||||
|
||||
PictureRecorder recorder = new PictureRecorder(width, height);
|
||||
double radius = min(width, height) * 0.45;
|
||||
|
Loading…
Reference in New Issue
Block a user