Browse Source

safety

master
fmk 3 years ago
parent
commit
ae08ed5c9b
  1. 8
      lib/community/community_child_page.dart

8
lib/community/community_child_page.dart

@ -33,7 +33,7 @@ class _CommunityChildPage extends State<CommunityChildPage> {
_onRefresh() async {
pageNum = 1;
queryCommunity();
setState(() {});
}
queryCommunity() async {
@ -74,7 +74,7 @@ class _CommunityChildPage extends State<CommunityChildPage> {
@override
Widget build(BuildContext context) {
return FutureBuilder(
future: _onRefresh(),
future: queryCommunity(),
builder: (context, position) {
return SmartRefresher(
controller: refreshController,
@ -88,7 +88,9 @@ class _CommunityChildPage extends State<CommunityChildPage> {
},
),
onRefresh: _onRefresh,
onLoading: queryCommunity,
onLoading: () {
setState(() {});
},
child: ListView.builder(
physics: NeverScrollableScrollPhysics(),
itemBuilder: (context, position) {

Loading…
Cancel
Save