feat: implement some api; add md editor to app; login and signup logic.

This commit is contained in:
2021-12-30 20:04:00 +08:00
parent 1a0e8f8de7
commit 853132f1a8
61 changed files with 3205 additions and 149 deletions
+4
View File
@@ -9,6 +9,7 @@ class MdPreview extends StatefulWidget {
this.padding = const EdgeInsets.all(0.0),
this.onTapLink,
required this.widgetImage,
required this.onCodeCopied,
this.textStyle,
}) : super(key: key);
@@ -17,6 +18,8 @@ class MdPreview extends StatefulWidget {
final WidgetImage widgetImage;
final TextStyle? textStyle;
final Function onCodeCopied;
/// Call this method when it tap link of markdown.
/// If [onTapLink] is null,it will open the link with your default browser.
final TapLinkCallback? onTapLink;
@@ -46,6 +49,7 @@ class MdPreviewState extends State<MdPreview>
},
image: widget.widgetImage,
textStyle: widget.textStyle,
onCodeCopied: widget.onCodeCopied,
);
},
),
+3 -1
View File
@@ -11,7 +11,9 @@ dependencies:
sdk: flutter
shared_preferences: ^2.0.4
markdown_core: ^1.0.0
markdown_core:
path:
../markdown_core
dev_dependencies:
flutter_test: