mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
NoteViewer: Add a footer
This commit is contained in:
@ -16,6 +16,7 @@ class NoteViewer extends StatelessWidget {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
_buildHeader(context),
|
_buildHeader(context),
|
||||||
new Text(note.body, style: _biggerFont),
|
new Text(note.body, style: _biggerFont),
|
||||||
|
_buildFooter(context),
|
||||||
],
|
],
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
),
|
),
|
||||||
@ -70,4 +71,28 @@ class NoteViewer extends StatelessWidget {
|
|||||||
child: w,
|
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