mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 19:36:25 +08:00
Markdown: Show images
At least show existing images. The path needs to be relative Related to #10
This commit is contained in:
@ -2,6 +2,7 @@ import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_markdown/flutter_markdown.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:path/path.dart' as p;
|
||||
|
||||
import 'package:gitjournal/core/note.dart';
|
||||
|
||||
@ -51,6 +52,7 @@ class NoteViewer extends StatelessWidget {
|
||||
print("Launching " + link);
|
||||
launch(link);
|
||||
},
|
||||
imageDirectory: note.parent.folderPath + p.separator,
|
||||
),
|
||||
),
|
||||
// _buildFooter(context),
|
||||
|
Reference in New Issue
Block a user