|
|
@ -24,6 +24,7 @@ class _ReleasePage extends State<ReleasePage> { |
|
|
|
RefreshController refreshController = RefreshController(); |
|
|
|
RefreshController refreshController = RefreshController(); |
|
|
|
ApiService apiService; |
|
|
|
ApiService apiService; |
|
|
|
int pageNum = 0; |
|
|
|
int pageNum = 0; |
|
|
|
|
|
|
|
String userId; |
|
|
|
|
|
|
|
|
|
|
|
List<ComunityComment> comments = []; |
|
|
|
List<ComunityComment> comments = []; |
|
|
|
|
|
|
|
|
|
|
@ -42,6 +43,7 @@ class _ReleasePage extends State<ReleasePage> { |
|
|
|
queryCommunity() async { |
|
|
|
queryCommunity() async { |
|
|
|
if (apiService == null) { |
|
|
|
if (apiService == null) { |
|
|
|
SharedPreferences value = await SharedPreferences.getInstance(); |
|
|
|
SharedPreferences value = await SharedPreferences.getInstance(); |
|
|
|
|
|
|
|
userId = value.getString('userId'); |
|
|
|
apiService = ApiService( |
|
|
|
apiService = ApiService( |
|
|
|
Dio(), |
|
|
|
Dio(), |
|
|
|
context: context, |
|
|
|
context: context, |
|
|
@ -119,7 +121,7 @@ class _ReleasePage extends State<ReleasePage> { |
|
|
|
Navigator.of(context).pushNamed( |
|
|
|
Navigator.of(context).pushNamed( |
|
|
|
'/router/community_details', |
|
|
|
'/router/community_details', |
|
|
|
arguments: { |
|
|
|
arguments: { |
|
|
|
"comment": comments[position], |
|
|
|
"comment": comments[position],"userId":userId, |
|
|
|
}, |
|
|
|
}, |
|
|
|
); |
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
|