mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: pm: share video
Closes #693 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -8,7 +8,9 @@ import 'package:get/get.dart';
|
||||
import 'controller.dart';
|
||||
|
||||
class FollowSearchPage extends CommonSearchPage {
|
||||
const FollowSearchPage({super.key});
|
||||
const FollowSearchPage({super.key, this.mid});
|
||||
|
||||
final int? mid;
|
||||
|
||||
@override
|
||||
State<FollowSearchPage> createState() => _FollowSearchPageState();
|
||||
@@ -17,8 +19,8 @@ class FollowSearchPage extends CommonSearchPage {
|
||||
class _FollowSearchPageState extends CommonSearchPageState<FollowSearchPage,
|
||||
FollowDataModel, FollowItemModel> {
|
||||
@override
|
||||
final FollowSearchController controller = Get.put(
|
||||
FollowSearchController(),
|
||||
late final FollowSearchController controller = Get.put(
|
||||
FollowSearchController(widget.mid ?? Get.arguments['mid']),
|
||||
tag: Utils.generateRandomString(8),
|
||||
);
|
||||
|
||||
@@ -34,7 +36,14 @@ class _FollowSearchPageState extends CommonSearchPageState<FollowSearchPage,
|
||||
if (index == list.length - 1) {
|
||||
controller.onLoadMore();
|
||||
}
|
||||
return FollowItem(item: list[index]);
|
||||
return FollowItem(
|
||||
item: list[index],
|
||||
onSelect: widget.mid != null
|
||||
? (userModel) {
|
||||
Get.back(result: userModel);
|
||||
}
|
||||
: null,
|
||||
);
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user