Created
July 14, 2019 16:04
-
-
Save creativecreatorormaybenot/4df2b87ce7ce1d6f82648003098daf67 to your computer and use it in GitHub Desktop.
RefreshIndicator is broken
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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