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