gjwgit / rattleng

The New Generation R Analytics Desktop App
GNU General Public License v3.0
11 stars 5 forks source link

LOG: Embed Markdown on left panel #2

Closed gjwgit closed 10 months ago

gjwgit commented 10 months ago

Description

The current left panel (under the current Save Log button) displays assets/markdown/log_intro.md as a text file. This should be updated to display it as Markdown().

Image

Why

So that the text is properly formatted according to the markdown

Closing Criteria

mukundsrinivasb commented 10 months ago

image I have set up flutter and flutter doctor -v is happy. I am unable to find the widgets.dart file. Apologies for such a newbie question.

gjwgit commented 10 months ago

My oversight. It is there now. Thanks for letting me know.

mukundsrinivasb commented 10 months ago

When I run main.dart , I get the following error . image Upon asking ChatGPT for help, I get to know that runner.exe.manifest needs to be defined.

From what I understand about CmakeLists.txt , cmake generates makefiles that can be run for different configurations. Is there another file where the path to runner.exe.manifest has been defined and has to be referenced from within the CmakeLists.txt?

gjwgit commented 10 months ago

Are you on Windows @mukundsrinivasb. I think this is a Windows specific thing. Does running the following help?

flutter config --enable-windows-desktop

or even

flutter create --platforms=windows,macos,linux .
gjwgit commented 10 months ago

Also, what does 'when I run run main.dart' mean. From the command line this would be

flutter run -d windows
mukundsrinivasb commented 10 months ago

flutter create --platforms=windows,macos,linux . worked for me . Thanks a lot !

mukundsrinivasb commented 10 months ago

image I got it to work , but I had tomodify the import statements in the main.dart . I am pushing the changes and let me know if these import statements make sense.

I had to modify these imports becasue the imprt 'package:ratttle/helpers/r.dart' and the likes would not work on my PC

gjwgit commented 10 months ago

You seem to have set up your folders incorrectly. I suspect you ran the flutter create . in the lib folder, but it should have been run in the root folder. The root folder is where your should run all the flutter commands like flutter run -d windows, which is why your use with package:rattle/... etc are not working.

mukundsrinivasb commented 10 months ago

I have changed the imports back and I have got it to work image

gjwgit commented 10 months ago

That's good. I have already removed the killall so that should not be a problem any more for Windows. The lib folder should only contain the dart source code, not the linux/ios/windows etc folders.

mukundsrinivasb commented 10 months ago

image This is the rendered markdown.

I shall test it with other elements of markdown such as Headings and lists

gjwgit commented 10 months ago

Looks good. Thanks @mukundsrinivasb. I can't merge the PR due to the multiple lib folders (and apparently 67 files that were changed - see the info for the PR), but I've used your suggested MarkdownBody() in the main branch. You may need to start with a new clone or fork.

mukundsrinivasb commented 10 months ago

I shall do the needful and find the next issue that is a bit more challenging