retro_infinity_scroll 0.0.3 retro_infinity_scroll: ^0.0.3 copied to clipboard
A Flutter plugin to implement infinity scroll and inflact paginated data into a ListView.
import 'package:flutter/material.dart';
import 'package:retroinfinityscroll_example/pages/example_1.dart';
import 'package:retroinfinityscroll_example/pages/example_2.dart';
import 'package:retroinfinityscroll_example/pages/example_3.dart';
import 'package:retroinfinityscroll_example/pages/example_4.dart';
import 'package:retroinfinityscroll_example/pages/example_5.dart';
import 'package:retroinfinityscroll_example/pages/example_6.dart';
import 'package:retroinfinityscroll_example/pages/example_7.dart';
import 'package:retroinfinityscroll_example/pages/example_8.dart';
void main() {
runApp(MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: ChooseOptionsPage(),
appBar: AppBar(title: Text("Choose to view the implementation")),
)));
}
class ChooseOptionsPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
RaisedButton(
onPressed: () => Navigator.push(
context, MaterialPageRoute(builder: (ctx) => Example1())),
child: Text('Simple implementation'),
),
RaisedButton(
onPressed: () => Navigator.push(
context, MaterialPageRoute(builder: (ctx) => Example2())),
child: Text('Load more implementation'),
),
RaisedButton(
onPressed: () => Navigator.push(
context, MaterialPageRoute(builder: (ctx) => Example4())),
child: Text('Android Refresh implementation'),
),
RaisedButton(
onPressed: () => Navigator.push(
context, MaterialPageRoute(builder: (ctx) => Example8())),
child: Text('IOS Refresh implementation'),
),
RaisedButton(
onPressed: () => Navigator.push(
context, MaterialPageRoute(builder: (ctx) => Example3())),
child: Text('Android Refresh and load more implementation'),
),
RaisedButton(
onPressed: () => Navigator.push(
context, MaterialPageRoute(builder: (ctx) => Example7())),
child: Text('IOS Refresh and load more implementation'),
),
RaisedButton(
onPressed: () => Navigator.push(
context, MaterialPageRoute(builder: (ctx) => Example6())),
child: Text('Custom Refresh and load more implementation'),
),
RaisedButton(
onPressed: () => Navigator.push(
context, MaterialPageRoute(builder: (ctx) => Example5())),
child: Text(
'Animated Custom Refresh',
textAlign: TextAlign.center,
),
),
],
),
),
);
}
}