Revert "Merge pull request #2639 from Hixie/always_specify_types"

This reverts commit f41b3411da, reversing
changes made to e33d8d9621.

This was a bad check-in due to my mangling uploading a new version of the branch from a different machine.

This reverts https://github.com/flutter/flutter/pull/2639 and will be replaced by https://github.com/flutter/flutter/pull/2640
This commit is contained in:
Ian Hickson
2016-03-12 00:34:37 -08:00
parent f41b3411da
commit 43b0104114
113 changed files with 689 additions and 770 deletions

View File

@@ -39,7 +39,7 @@ class PianoKey {
player.ptr.pause();
}
Future<Null> load(MediaServiceProxy mediaService) async {
Future load(MediaServiceProxy mediaService) async {
try {
mediaService.ptr.createPlayer(player);
UrlResponse response = await fetchUrl(soundUrl);
@@ -61,11 +61,11 @@ class PianoApp extends StatelessComponent {
new PianoKey(Colors.purple[500], iLoveYou),
];
Future<Null> loadSounds() async {
Future loadSounds() async {
MediaServiceProxy mediaService = new MediaServiceProxy.unbound();
try {
shell.connectToService("mojo:media_service", mediaService);
List<Future<Null>> pending = <Future<Null>>[];
List<Future<MediaPlayerPrepareResponseParams>> pending = <Future<MediaPlayerPrepareResponseParams>>[];
for (PianoKey key in keys)
pending.add(key.load(mediaService));
await Future.wait(pending);
@@ -93,8 +93,8 @@ class PianoApp extends StatelessComponent {
}
Widget statusBox(Widget child) {
const Color mediumGray = const Color(0xff555555);
const Color darkGray = const Color(0xff222222);
const mediumGray = const Color(0xff555555);
const darkGray = const Color(0xff222222);
return new Center(
child: new Container(
decoration: const BoxDecoration(
@@ -121,7 +121,7 @@ Widget splashScreen() {
);
}
Future<Null> main() async {
Future main() async {
runApp(splashScreen());
PianoApp app = new PianoApp();