feat: add startup bulletin; switch to edit mode when click text on md preview.

This commit is contained in:
2022-02-21 14:42:18 +08:00
parent 49ec2a641e
commit 0c87b714c4
10 changed files with 86 additions and 20 deletions
+4
View File
@@ -11,6 +11,7 @@ class MdPreview extends StatefulWidget {
required this.widgetImage,
required this.onCodeCopied,
this.textStyle,
this.richTap,
}) : super(key: key);
final String text;
@@ -24,6 +25,8 @@ class MdPreview extends StatefulWidget {
/// If [onTapLink] is null,it will open the link with your default browser.
final TapLinkCallback? onTapLink;
final VoidCallback? richTap;
@override
State<StatefulWidget> createState() => MdPreviewState();
}
@@ -50,6 +53,7 @@ class MdPreviewState extends State<MdPreview>
image: widget.widgetImage,
textStyle: widget.textStyle,
onCodeCopied: widget.onCodeCopied,
richTap: widget.richTap,
);
},
),