diff --git a/lib/screens/note_viewer.dart b/lib/screens/note_viewer.dart index 7a3eb269..d6dfaffb 100644 --- a/lib/screens/note_viewer.dart +++ b/lib/screens/note_viewer.dart @@ -4,6 +4,7 @@ import 'package:journal/note.dart'; import 'package:journal/state_container.dart'; import 'package:journal/utils.dart'; import 'package:journal/widgets/note_header.dart'; +import 'package:share/share.dart'; import 'note_editor.dart'; @@ -55,6 +56,13 @@ class NoteBrowsingScreenState extends State { showDialog(context: context, builder: _buildAlertDialog); }, ), + IconButton( + icon: Icon(Icons.share), + onPressed: () { + Note note = widget.notes[_currentIndex()]; + Share.share(note.body); + }, + ), ], ), body: pageView,