retro_infinity_scroll 0.0.4 copy "retro_infinity_scroll: ^0.0.4" to clipboard
retro_infinity_scroll: ^0.0.4 copied to clipboard

A Flutter plugin to implement infinity scroll and inflact paginated data into a ListView.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:retroinfinityscroll_example/pages/infinity_scroll_with_android_refresh_and_load_more_page.dart';
import 'package:retroinfinityscroll_example/pages/infinity_scroll_with_android_refresh_page.dart';
import 'package:retroinfinityscroll_example/pages/infinity_scroll_with_animated_custom_refresh_and_load_more_page.dart';
import 'package:retroinfinityscroll_example/pages/infinity_scroll_with_custom_refresh_and_load_more_page.dart';
import 'package:retroinfinityscroll_example/pages/infinity_scroll_with_ios_refresh_and_load_more_page.dart';
import 'package:retroinfinityscroll_example/pages/inifnity_scroll_with_ios_refresh_page.dart';
import 'package:retroinfinityscroll_example/pages/load_more_retro_infinity_scroll_page.dart';
import 'package:retroinfinityscroll_example/pages/simple_retro_infinity_scroll_page.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) => SimpleRetroInfinityPage())),
              child:
                  Text('Simple Implementation (Without Refresh and loadmore)'),
            ),
            RaisedButton(
              onPressed: () => Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (ctx) => LoadMoreInfinityScrollPage())),
              child: Text('With Loadmore Implementation only'),
            ),
            RaisedButton(
              onPressed: () => Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (ctx) =>
                          InfinityScrollWithAndroidRefreshPage())),
              child: Text('With Android Refresh Implementation only'),
            ),
            RaisedButton(
              onPressed: () => Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (ctx) => InfinityScrollWithIosRefreshPage())),
              child: Text('With IOS Refresh Implementation only'),
            ),
            RaisedButton(
              onPressed: () => Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (ctx) =>
                          InfinityScrollWithAndroidRefreshAndLoadMorePage())),
              child: Text('With Android Refresh and loadmore implementation'),
            ),
            RaisedButton(
              onPressed: () => Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (ctx) =>
                          InfinityScrollWithIosRefreshAndLoadMorePage())),
              child: Text('With IOS Refresh and loadmore implementation'),
            ),
            RaisedButton(
              onPressed: () => Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (ctx) =>
                          InfinityScrollWithCustomRefreshAndLoadMorePage())),
              child: Text('With Custom Refresh and loadmore implementation'),
            ),
            RaisedButton(
              onPressed: () => Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (ctx) =>
                          InfinityScrollWithAnimatedCustomRefreshAndLoadMorePage())),
              child: Text(
                'With Animated Custom Refresh',
                textAlign: TextAlign.center,
              ),
            ),
          ],
        ),
      ),
    );
  }
}
13
likes
30
pub points
0%
popularity

Publisher

verified publishersmarttersstudio.com

A Flutter plugin to implement infinity scroll and inflact paginated data into a ListView.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on retro_infinity_scroll