opt: save panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-07 18:20:45 +08:00
parent af289c533f
commit 4de180c23a
6 changed files with 132 additions and 79 deletions

View File

@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
import 'rich_node_panel.dart';
Widget content(context, item, source, callback) {
Widget content(isSave, context, item, source, callback) {
InlineSpan picsNodes() {
return WidgetSpan(
child: LayoutBuilder(
@@ -55,7 +55,7 @@ Widget content(context, item, source, callback) {
child: Text.rich(
/// fix 默认20px高度
style: TextStyle(
fontSize: source == 'detail' ? 16 : 15,
fontSize: source == 'detail' && isSave != true ? 16 : 15,
),
richNodes,
maxLines: source == 'detail' ? null : 6,