Skip to content

Instantly share code, notes, and snippets.

@creativecreatorormaybenot
Created July 14, 2019 16:04
Show Gist options
  • Save creativecreatorormaybenot/4df2b87ce7ce1d6f82648003098daf67 to your computer and use it in GitHub Desktop.
Save creativecreatorormaybenot/4df2b87ce7ce1d6f82648003098daf67 to your computer and use it in GitHub Desktop.
RefreshIndicator is broken
import 'package:flutter/material.dart';
main() {
runApp(
MaterialApp(
home: Scaffold(
body: RefreshIndicator(
onRefresh: () async => Future.delayed(Duration(seconds: 1)),
child: ListView.builder(
itemBuilder: (context, index) => ListTile(
title: Text('$index'),
),
itemCount: 19,
),
),
),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment