mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
Make the settings page a bit prettier
This commit is contained in:
@ -107,7 +107,7 @@ class SettingsListState extends State<SettingsList> {
|
|||||||
SettingsHeader("Git Settings"),
|
SettingsHeader("Git Settings"),
|
||||||
ListTile(title: gitAuthorForm),
|
ListTile(title: gitAuthorForm),
|
||||||
ListTile(title: gitAuthorEmailForm),
|
ListTile(title: gitAuthorEmailForm),
|
||||||
SettingsHeader("Version Info"),
|
SizedBox(height: 16.0),
|
||||||
VersionNumberTile(),
|
VersionNumberTile(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -125,9 +125,10 @@ class SettingsHeader extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return ListTile(
|
return ListTile(
|
||||||
|
dense: true,
|
||||||
title: Text(
|
title: Text(
|
||||||
text,
|
text,
|
||||||
style: Theme.of(context).textTheme.headline,
|
style: Theme.of(context).textTheme.title,
|
||||||
),
|
),
|
||||||
enabled: false,
|
enabled: false,
|
||||||
);
|
);
|
||||||
@ -171,13 +172,15 @@ class VersionNumberTileState extends State<VersionNumberTile> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var textTheme = Theme.of(context).textTheme;
|
||||||
return ListTile(
|
return ListTile(
|
||||||
title: Text(
|
title: Text("Version Info", style: textTheme.subhead),
|
||||||
|
subtitle: Text(
|
||||||
text,
|
text,
|
||||||
style: Theme.of(context).textTheme.subhead,
|
style: textTheme.body1,
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
onTap: () {},
|
enabled: false,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user