<p dir="auto"><a href="https://github.com/collinjackson"><img src="https://avatars.githubusercontent.com/u/394889?v=3" align="left" width="96" height="96" hspace="10" style="max-width: 100%;"></a> <strong>Issue by <a href="https://github.com/collinjackson">collinjackson</a></strong><br>
<em>Wednesday Aug 12, 2015 at 21:03 GMT</em><br>
<em>Originally opened as <a href="https://github.com/flutter/engine/issues/580">https://github.com/flutter/engine/issues/580</a></em></p>
<hr>
<p dir="auto">jackson-macpro:playfair jackson$ dart --version<br>
Dart VM version: 1.11.0-dev.3.0 (Thu May 28 03:42:12 2015) on "macos_x64"</p>
<p dir="auto">jackson-macpro:playfair jackson$ pub run test test/playfair_test.dart<br>
Wrong script snapshot version, expected '146df3da808a6da22679d25262d18cfb' found '6ab2a2a1aedc6faea804a9c1850edf4b'<br>
00:00 +0 -1: loading test/playfair_test.dart<br>
Failed to load "test/playfair_test.dart":<br>
The built-in library 'dart:sky' is not available on the stand-alone VM.<br>
'package:playfair/playfair.dart': error: line 7 pos 1: library handler failed<br>
import 'dart:sky' as sky;<br>
^<br>
00:00 +0 -1: Some tests failed.</p>
<p dir="auto">If we included the Sky shell executable in the Sky package we could run these tests.</p>
<p dir="auto">Device: <strong>iOS Simulator</strong></p>
<p dir="auto"><strong>Sorry there isn't any log or error message here as nothing is being emitted from Flutter.</strong></p>
<p dir="auto">I am getting a weird crash when using a <code class="notranslate">RefreshIndicator</code> attached to a <code class="notranslate">get</code> http action. The crash doesn't occur until I tap on a <code class="notranslate">TabBar</code> that has a listener attached to it. I'm not sure if that is relevant but its the only thing that will cause a crash.</p>
<p dir="auto">The following is the refresh indicator code.</p>
<p dir="auto">Please let me know what other information I can provide.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="	Future&lt;Null&gt; _handleRefresh() {
		Completer&lt;Null&gt; completer = new Completer&lt;Null&gt;();
		get(&quot;http://api.myapp.com/endpoint&quot;).then((response) {
				print(&quot;loaded data&quot;);
				return response.body;
			})
			.then((jsonString) { 
                                print(jsonString) 
                         })
			.then((_) =&gt; completer.complete());
		return completer.future;
	}

	@override
	Widget build(BuildContext context) {
		return new Padding(
			padding: EdgeInsets.zero,
			child: new RefreshIndicator(
				onRefresh: _handleRefresh,
				child: new ListView(
					children: _cells,
				),
			)
		);
	}"><pre class="notranslate"><code class="notranslate">	Future&lt;Null&gt; _handleRefresh() {
		Completer&lt;Null&gt; completer = new Completer&lt;Null&gt;();
		get("http://api.myapp.com/endpoint").then((response) {
				print("loaded data");
				return response.body;
			})
			.then((jsonString) { 
                                print(jsonString) 
                         })
			.then((_) =&gt; completer.complete());
		return completer.future;
	}

	@override
	Widget build(BuildContext context) {
		return new Padding(
			padding: EdgeInsets.zero,
			child: new RefreshIndicator(
				onRefresh: _handleRefresh,
				child: new ListView(
					children: _cells,
				),
			)
		);
	}
</code></pre></div>