mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 04:07:53 +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/material.dart';
|
||||||
import 'package:flutter_markdown/flutter_markdown.dart';
|
import 'package:flutter_markdown/flutter_markdown.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
import 'package:path/path.dart' as p;
|
||||||
|
|
||||||
import 'package:gitjournal/core/note.dart';
|
import 'package:gitjournal/core/note.dart';
|
||||||
|
|
||||||
@ -51,6 +52,7 @@ class NoteViewer extends StatelessWidget {
|
|||||||
print("Launching " + link);
|
print("Launching " + link);
|
||||||
launch(link);
|
launch(link);
|
||||||
},
|
},
|
||||||
|
imageDirectory: note.parent.folderPath + p.separator,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// _buildFooter(context),
|
// _buildFooter(context),
|
||||||
|
Reference in New Issue
Block a user