Browse Source

Change ordering of items within the settings screen

Vishnu Mohandas 4 years ago
parent
commit
41895b6fb8
1 changed files with 28 additions and 28 deletions
  1. 28 28
      lib/ui/settings_page.dart

+ 28 - 28
lib/ui/settings_page.dart

@@ -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(() {});
-                  },
-                ),
-              ],
-            ),
-          ),
         ],
       ),
     );