wip: add md editor for scheme description.

This commit is contained in:
2021-12-16 16:06:00 +08:00
parent f794515cc7
commit 09a9275705
+2
View File
@@ -99,9 +99,11 @@ class _DMarkdownFieldState extends State<DMarkdownField> {
textFocusNode: _focusNode, textFocusNode: _focusNode,
padding: EdgeInsets.symmetric(horizontal: 5), padding: EdgeInsets.symmetric(horizontal: 5),
onComplete: (content) { onComplete: (content) {
if (content == widget.initText)
setState(() { setState(() {
_previewText = content; _previewText = content;
}); });
else
widget.onComplete(content); widget.onComplete(content);
}, },
), ),