mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
移除Expanded,避免部分机型番剧搜索灰屏
This commit is contained in:
@@ -14,8 +14,7 @@ import '../../../utils/grid.dart';
|
|||||||
Widget searchMbangumiPanel(BuildContext context, ctr, list) {
|
Widget searchMbangumiPanel(BuildContext context, ctr, list) {
|
||||||
TextStyle style =
|
TextStyle style =
|
||||||
TextStyle(fontSize: Theme.of(context).textTheme.labelMedium!.fontSize);
|
TextStyle(fontSize: Theme.of(context).textTheme.labelMedium!.fontSize);
|
||||||
return Expanded(
|
return CustomScrollView(
|
||||||
child: CustomScrollView(
|
|
||||||
controller: ctr.scrollController,
|
controller: ctr.scrollController,
|
||||||
slivers: [
|
slivers: [
|
||||||
SliverGrid(
|
SliverGrid(
|
||||||
@@ -23,9 +22,9 @@ Widget searchMbangumiPanel(BuildContext context, ctr, list) {
|
|||||||
mainAxisSpacing: StyleString.cardSpace,
|
mainAxisSpacing: StyleString.cardSpace,
|
||||||
crossAxisSpacing: StyleString.safeSpace,
|
crossAxisSpacing: StyleString.safeSpace,
|
||||||
maxCrossAxisExtent: Grid.maxRowWidth * 2,
|
maxCrossAxisExtent: Grid.maxRowWidth * 2,
|
||||||
mainAxisExtent: 157,),
|
mainAxisExtent: 157,
|
||||||
delegate:
|
),
|
||||||
SliverChildBuilderDelegate((BuildContext context, int index) {
|
delegate: SliverChildBuilderDelegate((BuildContext context, int index) {
|
||||||
var i = list![index];
|
var i = list![index];
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -69,8 +68,7 @@ Widget searchMbangumiPanel(BuildContext context, ctr, list) {
|
|||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color:
|
color: Theme.of(context).colorScheme.onSurface),
|
||||||
Theme.of(context).colorScheme.onSurface),
|
|
||||||
children: [
|
children: [
|
||||||
for (var i in i.title) ...[
|
for (var i in i.title) ...[
|
||||||
TextSpan(
|
TextSpan(
|
||||||
@@ -83,9 +81,7 @@ Widget searchMbangumiPanel(BuildContext context, ctr, list) {
|
|||||||
.fontSize!),
|
.fontSize!),
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
color: i['type'] == 'em'
|
color: i['type'] == 'em'
|
||||||
? Theme.of(context)
|
? Theme.of(context).colorScheme.primary
|
||||||
.colorScheme
|
|
||||||
.primary
|
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.onSurface,
|
.onSurface,
|
||||||
@@ -158,6 +154,5 @@ Widget searchMbangumiPanel(BuildContext context, ctr, list) {
|
|||||||
}, childCount: list.length),
|
}, childCount: list.length),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user