Markdown: Show images

At least show existing images. The path needs to be relative

Related to #10
This commit is contained in:
Vishesh Handa
2020-03-31 14:11:01 +02:00
parent fe08b53539
commit 46590aff48

View File

@ -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),