Skip to content

An open-source cross-platform alternative to AirDrop

feat: add help text in send tab

Tien Do Nam59c917c98410
diff --git a/assets/i18n/strings.i18n.json b/assets/i18n/strings.i18n.json
index 91610ba2..82bdf7a9 100644
--- a/assets/i18n/strings.i18n.json
+++ b/assets/i18n/strings.i18n.json
@@ -45,7 +45,8 @@
"text": "Text"
},
"nearbyDevices": "Nearby devices",
- "thisDevice": "This Device"
+ "thisDevice": "This Device",
+ "help": "Please ensure that the desired target is also in the same wifi network."
},
"settingsTab": {
"title": "Settings",
diff --git a/assets/i18n/strings_de.i18n.json b/assets/i18n/strings_de.i18n.json
index 03f44f3e..9030fdf3 100644
--- a/assets/i18n/strings_de.i18n.json
+++ b/assets/i18n/strings_de.i18n.json
@@ -45,7 +45,8 @@
"text": "Text"
},
"nearbyDevices": "Geräte in der Nähe",
- "thisDevice": "Dieses Gerät"
+ "thisDevice": "Dieses Gerät",
+ "help": "Bitte stelle sicher, dass sich das gewünschte Ziel auch im selben WLAN-Netzwerk befindet."
},
"settingsTab": {
"title": "Einstellungen",
diff --git a/lib/pages/tabs/send_tab.dart b/lib/pages/tabs/send_tab.dart
index eed38378..16a5ed0f 100644
--- a/lib/pages/tabs/send_tab.dart
+++ b/lib/pages/tabs/send_tab.dart
@@ -54,8 +54,9 @@ class _SendTabState extends ConsumerState<SendTab> {
final myDevice = ref.watch(deviceInfoProvider);
final nearbyDevicesState = ref.watch(nearbyDevicesProvider);
return ListView(
- padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 20),
+ padding: const EdgeInsets.symmetric(horizontal: 15),
children: [
+ const SizedBox(height: 20),
if (selectedFiles.isEmpty)
Padding(
padding: const EdgeInsets.only(bottom: 10),
@@ -298,6 +299,9 @@ class _SendTabState extends ConsumerState<SendTab> {
),
);
}),
+ const SizedBox(height: 20),
+ Text(t.sendTab.help, style: const TextStyle(color: Colors.grey), textAlign: TextAlign.center),
+ const SizedBox(height: 50),
],
);
}