-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📝 Markdown Viewer added when opening a markdown file #5
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @slimpotatoboy, Thank you for your contribution. There are few things we would like to discuss
- The markdown widget doesn't support HTML tags by default, however there seems to be a way as described in the use case of another package
https://github.com/asjqkkkk/markdown_widget/blob/dev/example/lib/main.dart
We don't want to switch tomarkdown_widget
if possible, use the workaround suggested there with this package. I briefly looked at it and I think it's possible. Would you be willing to take a look at it?
@@ -70,7 +71,34 @@ class CodeEditor extends HookConsumerWidget { | |||
codeController.setCursor(sourceFile.extentOffset); | |||
} | |||
|
|||
return getCodeEditor(ref, focusNode, codeController, codeStyle); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use MultiSplitView
instead so that editor and viewer is resizable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Also, It will easy to extend and implement split view for open files (left, right) etc. We might have to maintain multiple providers for open files then. Eg. If we implement only horizontal split in the beginning then, two providers to maintain open files on split view left and split view right! LMK
Hey guys please review the following and let me know your thoughts. Please feel free to discuss on the implementation aspect in detail. @lohanidamodar has already raised some concerns with me in the morning regarding embedded HTML specifically:-
I will share the design screenshot in few hours! |
Fixes #4