mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-17 18:49:55 +08:00
FolderView: Implement basic note selection
You can delete or share a note using this.
This commit is contained in:
@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:package_info/package_info.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:share/share.dart';
|
||||
|
||||
import 'package:gitjournal/core/notes_folder_fs.dart';
|
||||
import 'package:gitjournal/screens/note_editor.dart';
|
||||
@ -88,3 +89,7 @@ String toCurlCommand(String url, Map<String, String> headers) {
|
||||
|
||||
return "curl -X GET '$url' $headersStr";
|
||||
}
|
||||
|
||||
Future<void> shareNote(Note note) async {
|
||||
return Share.share(note.body);
|
||||
}
|
||||
|
Reference in New Issue
Block a user