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