From dee1a8635cb1878ee667d742da9499b09299c002 Mon Sep 17 00:00:00 2001 From: Moustapha Kodjo Amadou <107993382+kodjodevf@users.noreply.github.com> Date: Sat, 8 Nov 2025 22:13:24 +0100 Subject: [PATCH] Refactor --- lib/modules/more/settings/sync/sync.dart | 37 ++++++++++++++---------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/lib/modules/more/settings/sync/sync.dart b/lib/modules/more/settings/sync/sync.dart index 1d6f1f53..c32731b9 100644 --- a/lib/modules/more/settings/sync/sync.dart +++ b/lib/modules/more/settings/sync/sync.dart @@ -142,12 +142,14 @@ class SyncScreen extends ConsumerWidget { color: context.secondaryColor, ), const SizedBox(width: 10), - Text( - l10n.sync_auto_warning, - softWrap: true, - style: TextStyle( - fontSize: 11, - color: context.secondaryColor, + Expanded( + child: Text( + l10n.sync_auto_warning, + softWrap: true, + style: TextStyle( + fontSize: 11, + color: context.secondaryColor, + ), ), ), ], @@ -252,12 +254,14 @@ class SyncScreen extends ConsumerWidget { color: context.secondaryColor, ), const SizedBox(width: 10), - Text( - l10n.syncing_subtitle, - softWrap: true, - style: TextStyle( - fontSize: 11, - color: context.secondaryColor, + Expanded( + child: Text( + l10n.syncing_subtitle, + softWrap: true, + style: TextStyle( + fontSize: 11, + color: context.secondaryColor, + ), ), ), ], @@ -304,9 +308,10 @@ class SyncScreen extends ConsumerWidget { ), ), const SizedBox(height: 20), - Row( + Wrap( + spacing: 20, + crossAxisAlignment: WrapCrossAlignment.center, children: [ - const SizedBox(width: 20), Column( children: [ IconButton( @@ -329,7 +334,7 @@ class SyncScreen extends ConsumerWidget { Text(l10n.sync_button_sync), ], ), - const SizedBox(width: 20), + Column( children: [ IconButton( @@ -346,7 +351,7 @@ class SyncScreen extends ConsumerWidget { Text(l10n.sync_button_upload), ], ), - const SizedBox(width: 20), + Column( children: [ IconButton(