feat: implement some api; add md editor to app; login and signup logic.
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user