浏览代码

add missing bottom spacing for account section in settings

ashilkn 2 年之前
父节点
当前提交
623be0d1aa
共有 2 个文件被更改,包括 6 次插入3 次删除
  1. 5 3
      lib/ui/components/toggle_switch_widget.dart
  2. 1 0
      lib/ui/settings/account_section_widget.dart

+ 5 - 3
lib/ui/components/toggle_switch_widget.dart

@@ -6,9 +6,11 @@ typedef OnChangedCallBack = void Function(bool);
 class ToggleSwitchWidget extends StatefulWidget {
   final bool value;
   final OnChangedCallBack onChanged;
-  const ToggleSwitchWidget(
-      {required this.value, required this.onChanged, Key? key})
-      : super(key: key);
+  const ToggleSwitchWidget({
+    required this.value,
+    required this.onChanged,
+    Key? key,
+  }) : super(key: key);
 
   @override
   State<ToggleSwitchWidget> createState() => _ToggleSwitchWidgetState();

+ 1 - 0
lib/ui/settings/account_section_widget.dart

@@ -113,6 +113,7 @@ class AccountSectionWidget extends StatelessWidget {
             }
           },
         ),
+        sectionOptionSpacing,
       ],
     );
   }