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(
|
||||
'#${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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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!,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user