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:
Vishesh Handa
2019-10-07 20:36:23 +02:00
parent adf28a4e78
commit 05fb3da7c2

View File

@ -109,7 +109,7 @@ class SettingsListState extends State<SettingsList> {
);
return PreferencePage([
PreferenceTitle('Display Settings'),
SettingsHeader('Display Settings'),
DropdownPreference(
'Theme',
'theme',
@ -164,11 +164,11 @@ class SettingsListState extends State<SettingsList> {
Settings.instance.save();
},
),
PreferenceTitle("Git Author Settings"),
SettingsHeader("Git Author Settings"),
ListTile(title: gitAuthorForm),
ListTile(title: gitAuthorEmailForm),
SizedBox(height: 16.0),
PreferenceTitle("Storage"),
SettingsHeader("Storage"),
DropdownPreference(
'File Name',
'file_name',
@ -198,7 +198,7 @@ class SettingsListState extends State<SettingsList> {
},
),
SizedBox(height: 16.0),
PreferenceTitle("Analytics"),
SettingsHeader("Analytics"),
CheckboxPreference(
"Collect Anonymous Usage Statistics",
"usage_stats",
@ -236,13 +236,13 @@ class SettingsHeader extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListTile(
dense: true,
title: Text(
return Padding(
padding: EdgeInsets.only(left: 16.0, bottom: 0.0, top: 20.0),
child: Text(
text,
style: Theme.of(context).textTheme.title,
style: TextStyle(
color: Theme.of(context).accentColor, fontWeight: FontWeight.bold),
),
enabled: false,
);
}
}