✨ Pull to refresh
This commit is contained in:
parent
e74aba2d8b
commit
b32a7216b5
@ -64,7 +64,11 @@ class _ExploreScreenState extends State<ExploreScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: PagedListView<int, Feed>(
|
||||
body: RefreshIndicator(
|
||||
onRefresh: () async {
|
||||
paginationController.refresh();
|
||||
},
|
||||
child: PagedListView<int, Feed>(
|
||||
pagingController: paginationController,
|
||||
builderDelegate: PagedChildBuilderDelegate<Feed>(
|
||||
itemBuilder: (context, item, index) => FeedItem(
|
||||
@ -72,6 +76,7 @@ class _ExploreScreenState extends State<ExploreScreen> {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
floatingActionButton: FutureBuilder(
|
||||
future: authClient.isAuthorized(),
|
||||
builder: (context, snapshot) {
|
||||
|
Reference in New Issue
Block a user