mod: lint

mod: tweaks

opt: publish page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-04 11:37:13 +08:00
parent 2cfad80214
commit caa58e9d7d
313 changed files with 2751 additions and 2789 deletions

View File

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

View File

@@ -60,7 +60,7 @@ class SearchArticleController
RxInt currentOrderFilterval = 0.obs;
RxInt currentZoneFilterval = 0.obs;
onShowFilterDialog(BuildContext context) {
void onShowFilterDialog(BuildContext context) {
showModalBottomSheet(
context: context,
useSafeArea: true,

View File

@@ -27,39 +27,36 @@ class LiveItem extends StatelessWidget {
),
child: Column(
children: [
ClipRRect(
borderRadius: BorderRadius.all(StyleString.imgRadius),
child: AspectRatio(
aspectRatio: StyleString.aspectRatio,
child: LayoutBuilder(builder: (context, boxConstraints) {
double maxWidth = boxConstraints.maxWidth;
double maxHeight = boxConstraints.maxHeight;
return Stack(
clipBehavior: Clip.none,
children: [
NetworkImgLayer(
src: liveItem.cover,
type: 'emote',
width: maxWidth,
height: maxHeight,
),
Positioned(
left: 0,
right: 0,
bottom: 0,
child: AnimatedOpacity(
opacity: 1,
duration: const Duration(milliseconds: 200),
child: liveStat(
liveItem.online,
liveItem.cateName,
),
AspectRatio(
aspectRatio: StyleString.aspectRatio,
child: LayoutBuilder(builder: (context, boxConstraints) {
double maxWidth = boxConstraints.maxWidth;
double maxHeight = boxConstraints.maxHeight;
return Stack(
clipBehavior: Clip.none,
children: [
NetworkImgLayer(
src: liveItem.cover,
type: 'emote',
width: maxWidth,
height: maxHeight,
),
Positioned(
left: 0,
right: 0,
bottom: 0,
child: AnimatedOpacity(
opacity: 1,
duration: const Duration(milliseconds: 200),
child: liveStat(
liveItem.online,
liveItem.cateName,
),
),
],
);
}),
),
),
],
);
}),
),
liveContent(theme)
],

View File

@@ -18,7 +18,7 @@ class SearchPgcItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
final ThemeData theme = Theme.of(context);
final TextStyle style = TextStyle(fontSize: 13);
const TextStyle style = TextStyle(fontSize: 13);
return InkWell(
onTap: () {
PageUtils.viewBangumi(seasonId: item.seasonId);

View File

@@ -32,7 +32,7 @@ class SearchUserController
RxInt currentOrderFilterval = 0.obs;
RxInt currentUserTypeFilterval = 0.obs;
onShowFilterDialog(BuildContext context) {
void onShowFilterDialog(BuildContext context) {
showModalBottomSheet(
context: context,
useSafeArea: true,

View File

@@ -62,7 +62,7 @@ class SearchVideoController
return false;
}
void onPushDetail(resultList) async {
Future<void> onPushDetail(resultList) async {
try {
int? aid = int.tryParse(keyword);
if (aid != null && resultList.first.aid == aid) {
@@ -140,7 +140,7 @@ class SearchVideoController
int currentTimeFilter = 0;
int currentZoneFilter = 0;
onShowFilterDialog(BuildContext context) {
void onShowFilterDialog(BuildContext context) {
showModalBottomSheet(
context: context,
useSafeArea: true,

View File

@@ -12,7 +12,7 @@ import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:PiliPlus/models/common/search_type.dart';
import 'controller.dart';
import 'package:PiliPlus/pages/search_panel/controller.dart';
abstract class CommonSearchPanel extends StatefulWidget {
const CommonSearchPanel({