opt: dyn panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-08 16:42:18 +08:00
parent 26f921b7e4
commit bcd0d63db7
3 changed files with 22 additions and 5 deletions

View File

@@ -57,7 +57,10 @@ Widget content(
},
child: Text(
'#${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'
? SelectableText.rich(
richNodes,
style: !isSave
? const TextStyle(fontSize: 16)
: const TextStyle(fontSize: 15),
style: const TextStyle(fontSize: 15),
)
: Text.rich(
style: const TextStyle(fontSize: 15),

View File

@@ -92,6 +92,22 @@ Widget forWard(
],
),
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)
Text.rich(
richNodes,

View File

@@ -113,7 +113,7 @@ class _DynTopicPageState extends State<DynTopicPage> {
_controller.onLoadMore();
}
final item = loadingState.response![index];
if (item.topicType != null) {
if (item.dynamicCardItem != null) {
return DynamicPanel(
item: item.dynamicCardItem!,
);