Change ordering of items within the settings screen
This commit is contained in:
parent
f1d2290729
commit
41895b6fb8
1 changed files with 28 additions and 28 deletions
|
@ -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(() {});
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue