pull_to_refresh 1.0.7
pull_to_refresh: ^1.0.7 copied to clipboard
a widget provided to the flutter scroll component drop-down refresh and pull up load.
example/lib/main.dart
import 'ui/MainActivity.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Pulltorefresh Demo',
debugShowCheckedModeBanner: false,
theme: new ThemeData(
// This is the theme of your application.
//s
// Try running your application with "flutter run". You'll see the
// application has a blue toolbar. Then, without quitting the app, try
// changing the primarySwatch below to Colors.green and then invoke
// "hot reload" (press "r" in the console where you ran "flutter run",
// or press Run > Flutter Hot Reload in IntelliJ). Notice that the
// counter didn't reset back to zero; the application is not restarted.
primarySwatch: Colors.blue,
),
home: new MainActivity(title: 'Pulltorefresh'),
);
}
}