NoteViewer: Add a footer

This commit is contained in:
Vishesh Handa
2018-05-21 19:23:25 +02:00
parent a7b5afb817
commit 98ece86579

View File

@ -16,6 +16,7 @@ class NoteViewer extends StatelessWidget {
children: <Widget>[
_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: <Widget>[
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: () {},
),
],
),
);
}
}