mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: dyn panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -57,7 +57,10 @@ Widget content(
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'#${item.modules.moduleDynamic!.topic!.name}',
|
'#${item.modules.moduleDynamic!.topic!.name}',
|
||||||
style: TextStyle(color: theme.colorScheme.primary),
|
style: TextStyle(
|
||||||
|
fontSize: 15,
|
||||||
|
color: theme.colorScheme.primary,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -65,9 +68,7 @@ Widget content(
|
|||||||
source == 'detail'
|
source == 'detail'
|
||||||
? SelectableText.rich(
|
? SelectableText.rich(
|
||||||
richNodes,
|
richNodes,
|
||||||
style: !isSave
|
style: const TextStyle(fontSize: 15),
|
||||||
? const TextStyle(fontSize: 16)
|
|
||||||
: const TextStyle(fontSize: 15),
|
|
||||||
)
|
)
|
||||||
: Text.rich(
|
: Text.rich(
|
||||||
style: const TextStyle(fontSize: 15),
|
style: const TextStyle(fontSize: 15),
|
||||||
|
|||||||
@@ -92,6 +92,22 @@ Widget forWard(
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 2),
|
const SizedBox(height: 2),
|
||||||
|
if (item.modules.moduleDynamic?.topic != null)
|
||||||
|
GestureDetector(
|
||||||
|
onTap: () {
|
||||||
|
Get.toNamed(
|
||||||
|
'/dynTopic',
|
||||||
|
parameters: {
|
||||||
|
'id': item.modules.moduleDynamic!.topic!.id!.toString(),
|
||||||
|
'name': item.modules.moduleDynamic!.topic!.name!,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
|
child: Text(
|
||||||
|
'#${item.modules.moduleDynamic!.topic!.name}',
|
||||||
|
style: TextStyle(color: theme.colorScheme.primary),
|
||||||
|
),
|
||||||
|
),
|
||||||
if (richNodes != null)
|
if (richNodes != null)
|
||||||
Text.rich(
|
Text.rich(
|
||||||
richNodes,
|
richNodes,
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ class _DynTopicPageState extends State<DynTopicPage> {
|
|||||||
_controller.onLoadMore();
|
_controller.onLoadMore();
|
||||||
}
|
}
|
||||||
final item = loadingState.response![index];
|
final item = loadingState.response![index];
|
||||||
if (item.topicType != null) {
|
if (item.dynamicCardItem != null) {
|
||||||
return DynamicPanel(
|
return DynamicPanel(
|
||||||
item: item.dynamicCardItem!,
|
item: item.dynamicCardItem!,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user