|
|
|
@ -9,6 +9,10 @@ import '../../model/mine/friend_data.dart'; |
|
|
|
|
|
|
|
class MyFriendController extends GetxController with GetSingleTickerProviderStateMixin { |
|
|
|
|
|
|
|
final int index; |
|
|
|
MyFriendController({required this.index}); |
|
|
|
|
|
|
|
|
|
|
|
late TabController tabController; |
|
|
|
|
|
|
|
final sum = 0.obs; |
|
|
|
@ -31,7 +35,8 @@ class MyFriendController extends GetxController with GetSingleTickerProviderStat |
|
|
|
void onInit() { |
|
|
|
super.onInit(); |
|
|
|
|
|
|
|
tabController = TabController(length: 2, vsync: this); |
|
|
|
tabController = TabController(length: 2, vsync: this, initialIndex: index); |
|
|
|
tab.value = index; |
|
|
|
|
|
|
|
listRefreshController = EasyRefreshController( |
|
|
|
controlFinishRefresh: true, |
|
|
|
|