feat: 图文动态详情页&评论渲染

This commit is contained in:
guozhigq
2023-06-27 12:23:20 +08:00
parent 532ad52c17
commit bc8be693a8
20 changed files with 863 additions and 478 deletions

View File

@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import 'rich_node_panel.dart';
Widget content(item, context) {
Widget content(item, context, source) {
TextStyle authorStyle =
TextStyle(color: Theme.of(context).colorScheme.primary);
return Container(
@ -22,7 +22,7 @@ Widget content(item, context) {
],
Text.rich(
richNode(item, context),
maxLines: 3,
maxLines: source == 'detail' ? 999 : 3,
overflow: TextOverflow.ellipsis,
),
],