mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-25 21:05:52 +08:00
mod: lint
mod: tweaks opt: publish page Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
],
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user