This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "dart:sky"; | |
var inline = new RenderInline(); | |
// We'll need a better API for looking up fonts. | |
inline.textStyle.fontSize = "Helvetica"; | |
var text = new RenderText("This is a long bit of text which should wrap. "); | |
var text2 = new RenderText("And this bit is bold "); | |
text2.textStyle.weight = 900; | |
inline.add(text); | |
inline.add(text2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DPI scale: 1 | |
startup, version: 3083 linux x64 channel: stable | |
executable: /opt/sublime_text/sublime_text | |
working dir: / | |
packages path: /usr/local/google/home/eseidel/.config/sublime-text-3/Packages | |
state path: /usr/local/google/home/eseidel/.config/sublime-text-3/Local | |
zip path: /opt/sublime_text/Packages | |
zip path: /usr/local/google/home/eseidel/.config/sublime-text-3/Installed Packages | |
ignored_packages: ["Vintage"] | |
pre session restore time: 0.112585 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "dart:sky"; | |
Screen screen = window.screen; | |
double width = screen.availableWidth; | |
double height = screen.availableHeight; | |
PaintingContext ctx = new PaintingContext(width, height); | |
double radius = min(width, height) * .9; | |
Paint paint; | |
paint.setARGB(1, 0, 1, 0); | |
ctx.drawCircle(width / 2, height / 2, radius, paint); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
E/DartVM (32156): [ GC | space | count | start | gc time | new gen (KB) | old gen (KB) | timers | data ] | |
E/DartVM (32156): [ (isolate)| (reason)| | (s) | (ms) | used,cap,ext | used,cap,ext | (ms) | ] | |
E/DartVM (32156): [ GC(714134764): Scavenge(new space), 1, 0.256, 1.848, 1022, 824, 1024, 1024, 0, 0, 1782, 1782, 2356, 2356, 0, 0, 1.416, 0.191, 0.045, 0.009, 113, 0, 0, 821, ] | |
E/DartVM (32156): [ GC(714134764): Scavenge(new space), 2, 0.269, 2.747, 1024, 189, 1024, 4096, 0, 0, 1782, 2605, 2356, 2840, 0, 0, 1.958, 0.144, 0.106, 0.008, 113, 0, 0, 183, ] | |
E/DartVM (32156): [ GC | space | count | start | gc time | new gen (KB) | old gen (KB) | timers | data ] | |
E/DartVM (32156): [ (isolate)| (reason)| | (s) | (ms) | used,cap,ext | used,cap,ext | (ms) | ] | |
E/DartVM (32156): [ GC(219670806): Scavenge(new space), 1, 0.685, 3.307, 997, 526, 1024, 1024, 15, 2, 1056, 1056, 1536, 1536, 0, 0, 0.032, 2.532, 0.036, 0.168, 188, 0, 0, 526, ] | |
E/DartVM (32156): [ GC(2196708 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 386f1f30346674a8b965bfdb17d85957ef4de2d7 | |
Author: Eric Seidel <eseidel@chromium.org> | |
Date: Wed Jun 10 09:21:18 2015 -0700 | |
gc | |
diff --git a/sky/engine/core/script/dart_controller.cc b/sky/engine/core/script/dart_controller.cc | |
index 62665ab..3dc083c 100644 | |
--- a/sky/engine/core/script/dart_controller.cc | |
+++ b/sky/engine/core/script/dart_controller.cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On 6d0c4e5. | |
diff --git a/sky/engine/core/script/dart_init.cc b/sky/engine/core/script/dart_init.cc | |
index e7a9d45..9d71485 100644 | |
--- a/sky/engine/core/script/dart_init.cc | |
+++ b/sky/engine/core/script/dart_init.cc | |
@@ -64,6 +64,7 @@ void CreateEmptyRootLibraryIfNeeded() { | |
static const char* kDartArgs[] = { | |
"--enable_mirrors=false", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2014 The Chromium Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
DEPS = [ | |
'recipe_engine/path', | |
'recipe_engine/step', | |
'build/git', | |
'build/gclient', | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat packages/flutter/doc/styles.html doc/_analytics.html > /tmp/_header.html | |
Became: | |
flutter_styles = checkout.join('packages', 'flutter', 'doc', | |
'styles.html') | |
analytics = checkout.join('doc', '_analytics.html') | |
header_contents = '\n'.join([ | |
api.file.read('Read styles.html', flutter_styles), | |
api.file.read('Read _analytics.html', analytics), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ideally this would be easier. | |
eseidel@eseidel-macbookpro /src/flutter %cd examples/material_gallery [/src/flutter] | |
eseidel@eseidel-macbookpro /src/flutter/examples/material_gallery %flutter start [/src/flutter/examples/material_gallery] | |
Downloading Dart SDK 1.14.1... | |
######################################################################## 100.0% | |
Building flutter tool... | |
Error: incompatible sky_engine package; please run 'pub get' to get the correct one. | |
eseidel@eseidel-macbookpro /src/flutter/examples/material_gallery %pub get [/src/flutter/examples/material_gallery] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Erics-MacBook-Air:my_app ericseidel$ flutter start | |
idevice_id not found. To work with iOS devices, please install ideviceinstaller. | |
If you use homebrew, you can install it with "$ brew install ideviceinstaller". | |
Starting lib/main.dart on iPhone 5... | |
An error was encountered processing the command (domain=FBSOpenApplicationErrorDomain, code=1): | |
The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.) | |
Error code 1 returned when attempting to run command: /usr/bin/xcrun simctl launch EC33D8AF-D8E0-42BB-A56D-45847027FDBB io.flutter.runner.Runner --enable-checked-mode | |
Error starting application on iPhone 5. | |
Unable to run application. | |
Erics-MacBook-Air:my_app ericseidel$ flutter logs |
OlderNewer