Skip to content

An open-source cross-platform alternative to AirDrop

feat: minor UI improvements

Tien Do Name1fab89ed020
diff --git a/lib/pages/receive_history_page.dart b/lib/pages/receive_history_page.dart
index d8dcc6b8..0e62e1de 100644
--- a/lib/pages/receive_history_page.dart
+++ b/lib/pages/receive_history_page.dart
@@ -51,12 +51,13 @@ class ReceiveHistoryPage extends ConsumerWidget {
title: Text(t.receiveHistoryPage.title),
),
body: ResponsiveListView(
- padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 20),
+ padding: const EdgeInsets.symmetric(vertical: 20),
children: [
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
+ const SizedBox(width: 15),
ElevatedButton.icon(
onPressed: checkPlatform([TargetPlatform.iOS]) ? null : () async {
final destination = ref.read(settingsProvider.select((s) => s.destination)) ?? await getDefaultDestinationDirectory();
@@ -83,7 +84,7 @@ class ReceiveHistoryPage extends ConsumerWidget {
else
...entries.map((entry) {
return Padding(
- padding: const EdgeInsets.symmetric(vertical: 8),
+ padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 8),
child: InkWell(
splashColor: Colors.transparent,
splashFactory: NoSplash.splashFactory,
diff --git a/lib/pages/send_page.dart b/lib/pages/send_page.dart
index 154fc03c..99303703 100644
--- a/lib/pages/send_page.dart
+++ b/lib/pages/send_page.dart
@@ -80,7 +80,7 @@ class _SendPageState extends ConsumerState<SendPage> {
children: [
InitialSlideTransition(
origin: const Offset(0, -1),
- duration: const Duration(milliseconds: 500),
+ duration: const Duration(milliseconds: 400),
child: DeviceListTile(
device: myDevice,
),
diff --git a/lib/pages/tabs/send_tab.dart b/lib/pages/tabs/send_tab.dart
index eee9b793..10647253 100644
--- a/lib/pages/tabs/send_tab.dart
+++ b/lib/pages/tabs/send_tab.dart
@@ -315,7 +315,9 @@ class _CircularPopupButton<T> extends StatelessWidget {
child: Material(
type: MaterialType.transparency,
child: DividerTheme(
- data: DividerThemeData(color: Colors.teal.shade200),
+ data: DividerThemeData(
+ color: Theme.of(context).brightness == Brightness.light ? Colors.teal.shade100 : Colors.grey.shade700,
+ ),
child: PopupMenuButton(
offset: const Offset(0, 40),
onSelected: onSelected,