mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: search pgc card
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -10,8 +10,7 @@ import 'package:PiliPlus/utils/utils.dart';
|
|||||||
import '../../../utils/grid.dart';
|
import '../../../utils/grid.dart';
|
||||||
|
|
||||||
Widget searchBangumiPanel(context, ctr, LoadingState loadingState) {
|
Widget searchBangumiPanel(context, ctr, LoadingState loadingState) {
|
||||||
TextStyle style =
|
late TextStyle style = TextStyle(fontSize: 13);
|
||||||
TextStyle(fontSize: Theme.of(context).textTheme.labelMedium!.fontSize);
|
|
||||||
return switch (loadingState) {
|
return switch (loadingState) {
|
||||||
Loading() => loadingWidget,
|
Loading() => loadingWidget,
|
||||||
Success() => (loadingState.response as List?)?.isNotEmpty == true
|
Success() => (loadingState.response as List?)?.isNotEmpty == true
|
||||||
@@ -77,8 +76,8 @@ Widget searchBangumiPanel(context, ctr, LoadingState loadingState) {
|
|||||||
children: [
|
children: [
|
||||||
const SizedBox(height: 4),
|
const SizedBox(height: 4),
|
||||||
RichText(
|
RichText(
|
||||||
maxLines: 1,
|
// maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
// overflow: TextOverflow.ellipsis,
|
||||||
textScaler:
|
textScaler:
|
||||||
MediaQuery.textScalerOf(context),
|
MediaQuery.textScalerOf(context),
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
|
|||||||
Reference in New Issue
Block a user