mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 09:06:43 +08:00
NoteViewer: Add a footer
This commit is contained in:
@ -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: () {},
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user