Switch to the assets plugin (#6408)

This patch removes our dependency on asset_bundle.mojom.
This commit is contained in:
Adam Barth
2016-10-19 22:04:56 -07:00
committed by GitHub
parent 32e95cc6e1
commit beb8afa456
4 changed files with 94 additions and 171 deletions

View File

@@ -3,10 +3,10 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:typed_data';
import 'package:flutter/services.dart';
import 'package:flutter_gallery/gallery/example_code_parser.dart';
import 'package:mojo/core.dart' as core;
import 'package:test/test.dart';
void main() {
@@ -36,7 +36,7 @@ test 1 1
class TestAssetBundle extends AssetBundle {
@override
Future<core.MojoDataPipeConsumer> load(String key) => null;
Future<ByteData> load(String key) => null;
@override
Future<String> loadString(String key, { bool cache: true }) {