Very Good Ventures(VGV) が無限スクロール用のパッケージを用意してくれてました。 very_good_infinite_list 今回もRiverpodと合わせて使ってみたいと思います。 import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import 'package:very_good_infinite_list/very_good_infinite_list.dart'; part 'main.g.dart'; @riverpod class TodoList extends _$TodoList
![[Flutter] VGVのvery_good_infinite_listとRiverpodで無限スクロール - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/2331c0357e4912142e5c43bb0ccbfb6a62fa1f9e/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZoPTMzNiZ0eHQ9JTVCRmx1dHRlciU1RCUyMFZHViVFMyU4MSVBRXZlcnlfZ29vZF9pbmZpbml0ZV9saXN0JUUzJTgxJUE4Uml2ZXJwb2QlRTMlODElQTclRTclODQlQTElRTklOTklOTAlRTMlODIlQjklRTMlODIlQUYlRTMlODMlQUQlRTMlODMlQkMlRTMlODMlQUImdHh0LWNvbG9yPSUyMzIxMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT01NiZ0eHQtY2xpcD1lbGxpcHNpcyZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZzPTM5ODYxYTRjOWY4N2IxOWViNWM4ZGU2OGVkOTc1MjFl%26mark-x%3D142%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTcxNiZ0eHQ9JTQwd2FrYW1lbm9kJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzImdHh0LWFsaWduPWxlZnQlMkN0b3Amcz0wZjFhMzNiZDk5N2Q1ZDAzOWM4Yzg1ZmIyZDgyZGZmMA%26blend-x%3D142%26blend-y%3D491%26blend-mode%3Dnormal%26s%3D85b2d32e0867a360fa579f12d50aca73)