From 98ece865796c0eaabe73625f4095ac1d3f50fd14 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Mon, 21 May 2018 19:23:25 +0200 Subject: [PATCH] NoteViewer: Add a footer --- lib/note_viewer.dart | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/lib/note_viewer.dart b/lib/note_viewer.dart index deceeaf4..7dbd1500 100644 --- a/lib/note_viewer.dart +++ b/lib/note_viewer.dart @@ -16,6 +16,7 @@ class NoteViewer extends StatelessWidget { children: [ _buildHeader(context), new Text(note.body, style: _biggerFont), + _buildFooter(context), ], crossAxisAlignment: CrossAxisAlignment.start, ), @@ -70,4 +71,28 @@ class NoteViewer extends StatelessWidget { child: w, ); } + + Widget _buildFooter(BuildContext context) { + return new Padding( + padding: const EdgeInsets.only(top: 8.0, bottom: 8.0), + child: new Row( + children: [ + new IconButton( + icon: new Icon(Icons.arrow_left), + tooltip: 'Previous Entry', + onPressed: () {}, + ), + new Expanded( + flex: 10, + child: new Text(''), + ), + new IconButton( + icon: new Icon(Icons.arrow_right), + tooltip: 'Next Entry', + onPressed: () {}, + ), + ], + ), + ); + } }