mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 19:51:11 +08:00
@@ -18,8 +18,13 @@ class SearchPgcPanel extends CommonSearchPanel {
|
||||
State<SearchPgcPanel> createState() => _SearchPgcPanelState();
|
||||
}
|
||||
|
||||
class _SearchPgcPanelState extends CommonSearchPanelState<SearchPgcPanel,
|
||||
SearchPgcData, SearchPgcItemModel> {
|
||||
class _SearchPgcPanelState
|
||||
extends
|
||||
CommonSearchPanelState<
|
||||
SearchPgcPanel,
|
||||
SearchPgcData,
|
||||
SearchPgcItemModel
|
||||
> {
|
||||
@override
|
||||
late final controller = Get.put(
|
||||
SearchPanelController<SearchPgcData, SearchPgcItemModel>(
|
||||
|
||||
@@ -49,7 +49,7 @@ class SearchPgcItem extends StatelessWidget {
|
||||
right: 4.0,
|
||||
bottom: null,
|
||||
left: null,
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
@@ -60,16 +60,19 @@ class SearchPgcItem extends StatelessWidget {
|
||||
const SizedBox(height: 4),
|
||||
Text.rich(
|
||||
TextSpan(
|
||||
children: item.title
|
||||
.map((e) => TextSpan(
|
||||
text: e.text,
|
||||
style: TextStyle(
|
||||
color: e.isEm
|
||||
? theme.colorScheme.primary
|
||||
: theme.colorScheme.onSurface,
|
||||
),
|
||||
))
|
||||
.toList()),
|
||||
children: item.title
|
||||
.map(
|
||||
(e) => TextSpan(
|
||||
text: e.text,
|
||||
style: TextStyle(
|
||||
color: e.isEm
|
||||
? theme.colorScheme.primary
|
||||
: theme.colorScheme.onSurface,
|
||||
),
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
Text('评分:${item.mediaScore?['score']}', style: style),
|
||||
|
||||
Reference in New Issue
Block a user