opt: dynamic detail/html page

Closes #26

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-01 12:39:07 +08:00
parent 018424d5bd
commit 26e8553d9e
7 changed files with 184 additions and 61 deletions

View File

@@ -61,9 +61,9 @@ class Content extends StatelessWidget {
selectionControls: MaterialTextSelectionControls(),
child: Text.rich(
/// fix 默认20px高度
style: const TextStyle(
style: TextStyle(
height: 0,
fontSize: 15,
fontSize: source == 'detail' ? 16 : 15,
),
richNode(item, context),
maxLines: source == 'detail' ? 999 : 6,