riverpod_dev_infinite_scroll 2.0.0-dev.5 copy "riverpod_dev_infinite_scroll: ^2.0.0-dev.5" to clipboard
riverpod_dev_infinite_scroll: ^2.0.0-dev.5 copied to clipboard

Fork of the riverpod_dev_infinite_scroll plugin that uses the dev version of riverpod (2.0.0+5). Riverpod implementation of infinite_scroll_pagination, this package allows to use infinite_scroll_pagin [...]

example/lib/main.dart

import 'package:example/custom/custom_example.dart';
import 'package:example/easy/easy_example.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return ProviderScope(
      child: MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: const MyHomePage(title: 'Flutter Demo Home Page'),
      )
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(),
        body: Column(
          children: [
            ElevatedButton(
                onPressed: () {
                  Navigator.of(context).push(MaterialPageRoute(
                      builder: (context) => const EasyExample()));
                },
                child: const Text('Easy example')),
            ElevatedButton(
                onPressed: () {
                  Navigator.of(context).push(MaterialPageRoute(
                      builder: (context) => const CustomExample()));
                },
                child: const Text('Custome example')),
          ],
        ));
  }
}
2
likes
120
pub points
1%
popularity

Publisher

verified publisherkotelnikov.dev

Fork of the riverpod_dev_infinite_scroll plugin that uses the dev version of riverpod (2.0.0+5). Riverpod implementation of infinite_scroll_pagination, this package allows to use infinite_scroll_pagination with Riverpod abstracting away the complexity

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_riverpod, infinite_scroll_pagination

More

Packages that depend on riverpod_dev_infinite_scroll