Change ordering of items within the settings screen

This commit is contained in:
Vishnu Mohandas 2021-02-14 18:11:01 +05:30
parent f1d2290729
commit 41895b6fb8

View file

@ -75,6 +75,34 @@ class BackupSettingsWidgetState extends State<BackupSettingsWidget> {
child: Column(
children: [
SettingsSectionTitle("backup"),
GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () async {
_showFoldersDialog(context);
},
child: SettingsTextItem(
text: "backed up folders", icon: Icons.navigate_next),
),
Divider(height: 4),
Padding(padding: EdgeInsets.all(4)),
Container(
height: 36,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text("backup over mobile data"),
Switch(
value: Configuration.instance.shouldBackupOverMobileData(),
onChanged: (value) async {
Configuration.instance.setBackupOverMobileData(value);
setState(() {});
},
),
],
),
),
Padding(padding: EdgeInsets.all(4)),
Divider(height: 4),
GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () async {
@ -105,34 +133,6 @@ class BackupSettingsWidgetState extends State<BackupSettingsWidget> {
),
],
),
Padding(padding: EdgeInsets.all(8)),
Divider(height: 4),
GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () async {
_showFoldersDialog(context);
},
child: SettingsTextItem(
text: "backed up folders", icon: Icons.navigate_next),
),
Divider(height: 4),
Padding(padding: EdgeInsets.all(4)),
Container(
height: 36,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text("backup over mobile data"),
Switch(
value: Configuration.instance.shouldBackupOverMobileData(),
onChanged: (value) async {
Configuration.instance.setBackupOverMobileData(value);
setState(() {});
},
),
],
),
),
],
),
);