An open-source cross-platform alternative to AirDrop
fix: wrap receive history buttons inside scrollview
Tien Do Nam197b215d8cb2
diff --git a/lib/pages/receive_history_page.dart b/lib/pages/receive_history_page.dartindex 3773d0cf..d8dcc6b8 100644--- a/lib/pages/receive_history_page.dart+++ b/lib/pages/receive_history_page.dart@@ -53,23 +53,26 @@ class ReceiveHistoryPage extends ConsumerWidget {body: ResponsiveListView(padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 20),children: [- Row(- children: [- ElevatedButton.icon(- onPressed: checkPlatform([TargetPlatform.iOS]) ? null : () async {- final destination = ref.read(settingsProvider.select((s) => s.destination)) ?? await getDefaultDestinationDirectory();- openFolder(destination);- },- icon: const Icon(Icons.folder),- label: Text(t.receiveHistoryPage.openFolder),- ),- const SizedBox(width: 20),- ElevatedButton.icon(- onPressed: entries.isEmpty ? null : () => ref.read(receiveHistoryProvider.notifier).removeAll(),- icon: const Icon(Icons.delete),- label: Text(t.receiveHistoryPage.deleteHistory),- ),- ],+ SingleChildScrollView(+ scrollDirection: Axis.horizontal,+ child: Row(+ children: [+ ElevatedButton.icon(+ onPressed: checkPlatform([TargetPlatform.iOS]) ? null : () async {+ final destination = ref.read(settingsProvider.select((s) => s.destination)) ?? await getDefaultDestinationDirectory();+ openFolder(destination);+ },+ icon: const Icon(Icons.folder),+ label: Text(t.receiveHistoryPage.openFolder),+ ),+ const SizedBox(width: 20),+ ElevatedButton.icon(+ onPressed: entries.isEmpty ? null : () => ref.read(receiveHistoryProvider.notifier).removeAll(),+ icon: const Icon(Icons.delete),+ label: Text(t.receiveHistoryPage.deleteHistory),+ ),+ ],+ ),),const SizedBox(height: 20),if (entries.isEmpty)