mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 09:47:35 +08:00
NoteViewer: Align the header text properly
This commit is contained in:
@ -17,6 +17,7 @@ class NoteViewer extends StatelessWidget {
|
|||||||
_buildHeader(context),
|
_buildHeader(context),
|
||||||
new Text(note.body, style: _biggerFont),
|
new Text(note.body, style: _biggerFont),
|
||||||
],
|
],
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
),
|
),
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
);
|
);
|
||||||
@ -36,19 +37,16 @@ class NoteViewer extends StatelessWidget {
|
|||||||
var bigNum = new Text(
|
var bigNum = new Text(
|
||||||
note.createdAt.day.toString(),
|
note.createdAt.day.toString(),
|
||||||
style: TextStyle(fontSize: 40.0),
|
style: TextStyle(fontSize: 40.0),
|
||||||
textAlign: TextAlign.left,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
var dateText = new Text(
|
var dateText = new Text(
|
||||||
dateStr,
|
dateStr,
|
||||||
style: TextStyle(fontSize: 18.0),
|
style: TextStyle(fontSize: 18.0),
|
||||||
textAlign: TextAlign.left,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
var timeText = new Text(
|
var timeText = new Text(
|
||||||
timeStr,
|
timeStr,
|
||||||
style: TextStyle(fontSize: 18.0),
|
style: TextStyle(fontSize: 18.0),
|
||||||
textAlign: TextAlign.left,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
var w = new Row(
|
var w = new Row(
|
||||||
@ -61,6 +59,7 @@ class NoteViewer extends StatelessWidget {
|
|||||||
dateText,
|
dateText,
|
||||||
timeText,
|
timeText,
|
||||||
],
|
],
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user