Bläddra i källkod

minor changes

ashilkn 2 år sedan
förälder
incheckning
0d01c06f6a
2 ändrade filer med 11 tillägg och 4 borttagningar
  1. 1 1
      lib/ui/settings/account_section_widget.dart
  2. 10 3
      lib/ui/tools/deduplicate_page.dart

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

@@ -24,7 +24,7 @@ class AccountSectionWidgetState extends State<AccountSectionWidget> {
   Widget build(BuildContext context) {
     return ExpandablePanel(
       header: const SettingsSectionTitle("Account"),
-      collapsed: Container(),
+      collapsed: const SizedBox.shrink(),
       expanded: _getSectionOptions(context),
       theme: getExpandableTheme(context),
     );

+ 10 - 3
lib/ui/tools/deduplicate_page.dart

@@ -175,7 +175,14 @@ class _DeduplicatePageState extends State<DeduplicatePage> {
             shrinkWrap: true,
           ),
         ),
-        _selectedFiles.isEmpty ? const SizedBox.shrink() : _getDeleteButton(),
+        _selectedFiles.isEmpty
+            ? const SizedBox.shrink()
+            : Column(
+                children: [
+                  _getDeleteButton(),
+                  const SizedBox(height: crossAxisSpacing / 2),
+                ],
+              ),
       ],
     );
   }
@@ -317,7 +324,7 @@ class _DeduplicatePageState extends State<DeduplicatePage> {
       width: double.infinity,
       child: SafeArea(
         child: Padding(
-          padding: const EdgeInsets.symmetric(horizontal: 2),
+          padding: const EdgeInsets.symmetric(horizontal: crossAxisSpacing / 2),
           child: TextButton(
             style: OutlinedButton.styleFrom(
               backgroundColor:
@@ -326,7 +333,7 @@ class _DeduplicatePageState extends State<DeduplicatePage> {
             child: Column(
               mainAxisAlignment: MainAxisAlignment.end,
               children: [
-                const Padding(padding: EdgeInsets.all(crossAxisSpacing / 2)),
+                const Padding(padding: EdgeInsets.all(4)),
                 Text(
                   text,
                   style: TextStyle(