mod: search pgc card

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-22 20:05:18 +08:00
parent f02e0e59d9
commit cf6840ebe1

View File

@@ -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(