Move mojo frontend into services.dart

What's important about this code is that it's presenting services outside the
VM, not the particular technology used to present the services.
This commit is contained in:
Adam Barth
2015-09-16 19:09:03 -07:00
parent 41b8ffd623
commit 7064551a45
31 changed files with 98 additions and 76 deletions

View File

@@ -5,8 +5,7 @@
import 'dart:sky' as sky;
import 'dart:math' as math;
import 'package:sky/mojo/activity.dart';
import 'package:sky/mojo/net/image_cache.dart' as image_cache;
import 'package:sky/services.dart';
import 'package:sky/rendering.dart';
import 'solid_color_box.dart';
@@ -60,7 +59,7 @@ void main() {
// Resizeable image
image = new RenderImageGrow(null, new Size(100.0, null));
image_cache.load("https://www.dartlang.org/logos/dart-logo.png").first.then((sky.Image dartLogo) {
imageCache.load("https://www.dartlang.org/logos/dart-logo.png").first.then((sky.Image dartLogo) {
image.image = dartLogo;
});