mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 09:47:35 +08:00
Settings: Align Header with text
It was weird that the rest of the text did not have the same margin.
This commit is contained in:
@ -109,7 +109,7 @@ class SettingsListState extends State<SettingsList> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return PreferencePage([
|
return PreferencePage([
|
||||||
PreferenceTitle('Display Settings'),
|
SettingsHeader('Display Settings'),
|
||||||
DropdownPreference(
|
DropdownPreference(
|
||||||
'Theme',
|
'Theme',
|
||||||
'theme',
|
'theme',
|
||||||
@ -164,11 +164,11 @@ class SettingsListState extends State<SettingsList> {
|
|||||||
Settings.instance.save();
|
Settings.instance.save();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
PreferenceTitle("Git Author Settings"),
|
SettingsHeader("Git Author Settings"),
|
||||||
ListTile(title: gitAuthorForm),
|
ListTile(title: gitAuthorForm),
|
||||||
ListTile(title: gitAuthorEmailForm),
|
ListTile(title: gitAuthorEmailForm),
|
||||||
SizedBox(height: 16.0),
|
SizedBox(height: 16.0),
|
||||||
PreferenceTitle("Storage"),
|
SettingsHeader("Storage"),
|
||||||
DropdownPreference(
|
DropdownPreference(
|
||||||
'File Name',
|
'File Name',
|
||||||
'file_name',
|
'file_name',
|
||||||
@ -198,7 +198,7 @@ class SettingsListState extends State<SettingsList> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
SizedBox(height: 16.0),
|
SizedBox(height: 16.0),
|
||||||
PreferenceTitle("Analytics"),
|
SettingsHeader("Analytics"),
|
||||||
CheckboxPreference(
|
CheckboxPreference(
|
||||||
"Collect Anonymous Usage Statistics",
|
"Collect Anonymous Usage Statistics",
|
||||||
"usage_stats",
|
"usage_stats",
|
||||||
@ -236,13 +236,13 @@ class SettingsHeader extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return ListTile(
|
return Padding(
|
||||||
dense: true,
|
padding: EdgeInsets.only(left: 16.0, bottom: 0.0, top: 20.0),
|
||||||
title: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
style: Theme.of(context).textTheme.title,
|
style: TextStyle(
|
||||||
|
color: Theme.of(context).accentColor, fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
enabled: false,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user