opt: func

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-07 13:07:15 +08:00
parent 6353ecc13e
commit 286193f08f
99 changed files with 204 additions and 270 deletions

View File

@@ -51,7 +51,7 @@ class SearchAllController
pubEnd: pubEnd,
);
Future<void> onPushDetail(resultList) async {
void onPushDetail(resultList) {
try {
int? aid = int.tryParse(keyword);
if (aid != null && resultList.first.aid == aid) {

View File

@@ -18,7 +18,7 @@ class LiveItem extends StatelessWidget {
clipBehavior: Clip.hardEdge,
margin: EdgeInsets.zero,
child: InkWell(
onTap: () async {
onTap: () {
Get.toNamed('/liveRoom?roomid=${liveItem.roomid}');
},
onLongPress: () => imageSaveDialog(

View File

@@ -62,7 +62,7 @@ class SearchVideoController
return false;
}
Future<void> onPushDetail(resultList) async {
void onPushDetail(resultList) {
try {
int? aid = int.tryParse(keyword);
if (aid != null && resultList.first.aid == aid) {

View File

@@ -40,9 +40,7 @@ abstract class CommonSearchPanelState<
super.build(context);
final theme = Theme.of(context);
return refreshIndicator(
onRefresh: () async {
await controller.onRefresh();
},
onRefresh: controller.onRefresh,
child: CustomScrollView(
controller: controller.scrollController,
physics: const AlwaysScrollableScrollPhysics(),