Merge dev into ez_import_export_5
Resolve pubspec.yaml conflict (keep dev's share_plus ^13.3.1 and file_selector), regenerate localizations, and add the missing map_labelUpdateHint translation for all locales.
This commit is contained in:
commit
3cfa6a786a
77 files changed
+4416
-360
No files matched your search
@@ -54,6 +54,8 @@ import '../storage/contact_settings_store.dart';
|
||||
import '../storage/contact_store.dart';
|
||||
import '../storage/message_store.dart';
|
||||
import '../storage/unread_store.dart';
|
||||
import '../review_mode/review_mode_storage.dart';
|
||||
import '../review_mode/review_radio.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import '../utils/battery_utils.dart';
|
||||
import '../utils/platform_info.dart';
|
||||
@@ -140,7 +142,7 @@ enum MeshCoreConnectionState {
|
||||
disconnecting,
|
||||
}
|
||||
|
||||
enum MeshCoreTransportType { bluetooth, usb, tcp }
|
||||
enum MeshCoreTransportType { bluetooth, usb, tcp, review }
|
||||
|
||||
class RepeaterBatterySnapshot {
|
||||
final int millivolts;
|
||||
@@ -178,7 +180,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
// continuously from the whole mesh, so without a bound this list grows for
|
||||
// as long as the app stays connected. When full, the stalest node (oldest
|
||||
// lastSeen) is evicted to make room for a newly heard one.
|
||||
static const int _maxDiscoveredContacts = 500;
|
||||
static const int maxDiscoveredContacts = 500;
|
||||
|
||||
MeshCoreConnectionState _state = MeshCoreConnectionState.disconnected;
|
||||
BluetoothDevice? _device;
|
||||
@@ -208,6 +210,9 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
StreamSubscription<Uint8List>? _usbFrameSubscription;
|
||||
final MeshCoreTcpConnector _tcpConnector = MeshCoreTcpConnector();
|
||||
MeshCoreTransportType _activeTransport = MeshCoreTransportType.bluetooth;
|
||||
ReviewRadio? _reviewRadio;
|
||||
StreamSubscription<Uint8List>? _reviewFrameSubscription;
|
||||
int _reviewConnectGeneration = 0;
|
||||
|
||||
final List<ScanResult> _scanResults = [];
|
||||
final List<ScanResult> _linuxSystemScanResults = [];
|
||||
@@ -458,6 +463,9 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
bool get isTcpTransportConnected =>
|
||||
_state == MeshCoreConnectionState.connected &&
|
||||
_activeTransport == MeshCoreTransportType.tcp;
|
||||
bool get isReviewMode =>
|
||||
_activeTransport == MeshCoreTransportType.review &&
|
||||
_state != MeshCoreConnectionState.disconnected;
|
||||
|
||||
String get deviceDisplayName {
|
||||
if (_selfName != null && _selfName!.isNotEmpty) {
|
||||
@@ -1368,11 +1376,11 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
|
||||
Future<void> _loadDiscoveredContactCache() async {
|
||||
final cached = await _discoveryContactStore.loadContacts();
|
||||
// Trim a previously-saved oversized list down to the freshest entries so a
|
||||
// device that grew unbounded before the cap existed recovers on load.
|
||||
if (cached.length > _maxDiscoveredContacts) {
|
||||
cached.sort((a, b) => b.lastSeen.compareTo(a.lastSeen));
|
||||
cached.removeRange(_maxDiscoveredContacts, cached.length);
|
||||
// When eviction is enabled, trim a previously-saved oversized list down to
|
||||
// the freshest entries so a device that grew unbounded before the cap
|
||||
// existed recovers on load.
|
||||
if (_evictDiscoveredContactsEnabled &&
|
||||
_trimDiscoveredContactsToLimit(cached)) {
|
||||
unawaited(_discoveryContactStore.saveContacts(cached));
|
||||
}
|
||||
_discoveredContacts
|
||||
@@ -1380,6 +1388,22 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
..addAll(cached);
|
||||
}
|
||||
|
||||
bool get _evictDiscoveredContactsEnabled =>
|
||||
_appSettingsService?.settings.evictDiscoveredContactsEnabled ?? true;
|
||||
|
||||
bool _trimDiscoveredContactsToLimit(List<Contact> contacts) {
|
||||
if (contacts.length <= maxDiscoveredContacts) return false;
|
||||
contacts.sort((a, b) => b.lastSeen.compareTo(a.lastSeen));
|
||||
contacts.removeRange(maxDiscoveredContacts, contacts.length);
|
||||
return true;
|
||||
}
|
||||
|
||||
Future<void> trimDiscoveredContactsToLimit() async {
|
||||
if (!_trimDiscoveredContactsToLimit(_discoveredContacts)) return;
|
||||
await _persistDiscoveredContacts();
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
Future<void> loadChannelSettings({int? maxChannels}) async {
|
||||
_channelSmazEnabled.clear();
|
||||
_channelCyr2LatEnabled.clear();
|
||||
@@ -2220,6 +2244,121 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> connectReview() async {
|
||||
if (_state == MeshCoreConnectionState.connecting ||
|
||||
_state == MeshCoreConnectionState.connected) {
|
||||
_appDebugLogService?.warn(
|
||||
'connectReview ignored: already $_state',
|
||||
tag: 'Review',
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
_appDebugLogService?.info('connectReview: starting', tag: 'Review');
|
||||
|
||||
await _awaitActiveDisconnect();
|
||||
// The await is a suspension point: another connect may have claimed the
|
||||
// connector while this one was waiting for the teardown.
|
||||
if (_state == MeshCoreConnectionState.connecting ||
|
||||
_state == MeshCoreConnectionState.connected) {
|
||||
_appDebugLogService?.warn(
|
||||
'connectReview ignored: already $_state after disconnect wait',
|
||||
tag: 'Review',
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
await stopScan();
|
||||
_cancelReconnectTimer();
|
||||
_manualDisconnect = false;
|
||||
_resetConnectionHandshakeState();
|
||||
_activeTransport = MeshCoreTransportType.review;
|
||||
_setState(MeshCoreConnectionState.connecting);
|
||||
|
||||
// A disconnect (or a newer connect) bumps the generation, so this attempt
|
||||
// can tell after every await whether it still owns the connector.
|
||||
final generation = ++_reviewConnectGeneration;
|
||||
bool isCancelled() =>
|
||||
generation != _reviewConnectGeneration ||
|
||||
_activeTransport != MeshCoreTransportType.review ||
|
||||
_state == MeshCoreConnectionState.disconnecting ||
|
||||
_state == MeshCoreConnectionState.disconnected;
|
||||
|
||||
try {
|
||||
// Every review session starts from a clean slate.
|
||||
await beginReviewModeSession(_appSettingsService);
|
||||
if (isCancelled()) return;
|
||||
await _reviewFrameSubscription?.cancel();
|
||||
_reviewFrameSubscription = null;
|
||||
_reviewRadio?.dispose();
|
||||
final radio = reviewRadioFactoryForTest?.call() ?? ReviewRadio();
|
||||
_reviewRadio = radio;
|
||||
_reviewFrameSubscription = radio.frames.listen(
|
||||
_handleFrame,
|
||||
onError: (error, stackTrace) {
|
||||
_appDebugLogService?.error(
|
||||
'Review radio error: $error',
|
||||
tag: 'Review',
|
||||
);
|
||||
unawaited(disconnect(manual: false));
|
||||
},
|
||||
);
|
||||
|
||||
_setState(MeshCoreConnectionState.connected);
|
||||
unawaited(_backgroundService?.start());
|
||||
_pendingInitialChannelSync = true;
|
||||
_pendingInitialQueuedMessageSync = true;
|
||||
_pendingInitialContactsSync = true;
|
||||
await _requestDeviceInfo();
|
||||
_startBatteryPolling();
|
||||
if (_radioStatsPollRefCount > 0) _startRadioStatsPolling();
|
||||
|
||||
var gotSelfInfo = await _waitForSelfInfo(
|
||||
timeout: const Duration(seconds: 3),
|
||||
);
|
||||
if (isCancelled()) return;
|
||||
if (!gotSelfInfo) {
|
||||
await refreshDeviceInfo();
|
||||
gotSelfInfo = await _waitForSelfInfo(
|
||||
timeout: const Duration(seconds: 3),
|
||||
);
|
||||
}
|
||||
if (isCancelled()) return;
|
||||
if (!gotSelfInfo) {
|
||||
throw StateError(
|
||||
'Timed out waiting for SELF_INFO during review connect',
|
||||
);
|
||||
}
|
||||
|
||||
await syncTime();
|
||||
if (!isCancelled() && isConnected) {
|
||||
radio.start();
|
||||
}
|
||||
} catch (error) {
|
||||
if (isCancelled()) {
|
||||
_appDebugLogService?.info(
|
||||
'Ignoring review connect error after cancellation: $error',
|
||||
tag: 'Review',
|
||||
);
|
||||
return;
|
||||
}
|
||||
_appDebugLogService?.error(
|
||||
'Review connection error: $error',
|
||||
tag: 'Review',
|
||||
);
|
||||
await disconnect(manual: false);
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
@visibleForTesting
|
||||
ReviewRadio Function()? reviewRadioFactoryForTest;
|
||||
|
||||
void sendReviewTestMessage() {
|
||||
if (!isReviewMode) return;
|
||||
_reviewRadio?.sendTestMessage();
|
||||
}
|
||||
|
||||
@visibleForTesting
|
||||
void handleFrameForTest(List<int> data) => _handleFrame(data);
|
||||
|
||||
@@ -2971,6 +3110,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
bool get _shouldGateInitialChannelSync =>
|
||||
_activeTransport == MeshCoreTransportType.usb ||
|
||||
_activeTransport == MeshCoreTransportType.tcp ||
|
||||
_activeTransport == MeshCoreTransportType.review ||
|
||||
(_activeTransport == MeshCoreTransportType.bluetooth &&
|
||||
PlatformInfo.isWeb);
|
||||
|
||||
@@ -3066,6 +3206,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
MeshCoreTransportType.bluetooth => 'BLE',
|
||||
MeshCoreTransportType.usb => 'USB',
|
||||
MeshCoreTransportType.tcp => 'TCP',
|
||||
MeshCoreTransportType.review => 'Review',
|
||||
};
|
||||
|
||||
_appDebugLogService?.info(
|
||||
@@ -3094,6 +3235,12 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
_usbFrameSubscription = null;
|
||||
await _usbManager.disconnect();
|
||||
await _tcpConnector.disconnect();
|
||||
final wasReviewMode = transportAtDisconnect == MeshCoreTransportType.review;
|
||||
_reviewConnectGeneration++;
|
||||
await _reviewFrameSubscription?.cancel();
|
||||
_reviewFrameSubscription = null;
|
||||
_reviewRadio?.dispose();
|
||||
_reviewRadio = null;
|
||||
|
||||
await _notifySubscription?.cancel();
|
||||
_notifySubscription = null;
|
||||
@@ -3171,6 +3318,12 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
_reactionSendQueueSequence = 0;
|
||||
|
||||
_activeTransport = MeshCoreTransportType.bluetooth;
|
||||
if (wasReviewMode) {
|
||||
// Write the debounced unread counts now so they cannot land after the
|
||||
// review data has been deleted.
|
||||
await _unreadStore.flush();
|
||||
await endReviewModeSession(_appSettingsService);
|
||||
}
|
||||
|
||||
_setState(MeshCoreConnectionState.disconnected);
|
||||
_appDebugLogService?.info(
|
||||
@@ -3209,6 +3362,12 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
await Future<void>.delayed(const Duration(milliseconds: 10));
|
||||
} else if (_activeTransport == MeshCoreTransportType.tcp) {
|
||||
await _tcpConnector.write(data);
|
||||
} else if (_activeTransport == MeshCoreTransportType.review) {
|
||||
final radio = _reviewRadio;
|
||||
if (radio == null) {
|
||||
throw Exception("Review radio not available");
|
||||
}
|
||||
radio.handle(data);
|
||||
} else {
|
||||
if (_rxCharacteristic == null) {
|
||||
throw Exception("MeshCore RX characteristic not available");
|
||||
@@ -7567,6 +7726,8 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
_contactsFullController.close();
|
||||
_usbManager.dispose();
|
||||
_tcpConnector.dispose();
|
||||
_reviewFrameSubscription?.cancel();
|
||||
_reviewRadio?.dispose();
|
||||
|
||||
// Flush pending unread writes before disposal
|
||||
_unreadStore.flush();
|
||||
@@ -8057,8 +8218,10 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
flags: 0,
|
||||
);
|
||||
|
||||
if (_discoveredContacts.length >= _maxDiscoveredContacts) {
|
||||
_evictStalestDiscoveredContact();
|
||||
if (_evictDiscoveredContactsEnabled) {
|
||||
while (_discoveredContacts.length >= maxDiscoveredContacts) {
|
||||
_evictStalestDiscoveredContact();
|
||||
}
|
||||
}
|
||||
_discoveredContacts.add(disContact);
|
||||
|
||||
|
||||
+20
-1
@@ -689,6 +689,7 @@
|
||||
"map_shareMarkerHere": "Споделете маркер тук",
|
||||
"map_pinLabel": "Етикет на пина",
|
||||
"map_label": "Етикет",
|
||||
"map_labelUpdateHint": "Ако използвате същия етикет като преди, маркерът ще се обнови за получателите с MeshCore Open.",
|
||||
"map_pointOfInterest": "Точка на интерес",
|
||||
"map_sendToContact": "Изпрати на контакт",
|
||||
"map_sendToChannel": "Изпрати в канала",
|
||||
@@ -2053,6 +2054,15 @@
|
||||
}
|
||||
},
|
||||
"contactsSettings_overwriteOldestSubtitle": "Когато списъкът с контакти е пълен, най-старият неключов контакт ще бъде заменен.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Премахване на открити контакти",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Когато е включено, приложението премахва най-старите открити контакти, щом списъкът с открити контакти достигне лимита си от {limit} записа.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"discoveredContacts_deleteContactAll": "Изтриване на Всички Открити Контакти",
|
||||
"discoveredContacts_deleteContactAllContent": "Сигурни ли сте, че искате да изтриете всички открити контакти?",
|
||||
"common_deleteAll": "Изтрий всичко",
|
||||
@@ -3086,5 +3096,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "Изображението не можа да бъде запазено"
|
||||
"receivedImage_saveFailed": "Изображението не можа да бъде запазено",
|
||||
"reviewMode_dialogTitle": "Вход в режим за преглед?",
|
||||
"reviewMode_dialogBody": "Режимът за преглед се свързва със симулирано радио с примерни контакти, канали и съобщения. Не е нужно реално радио.",
|
||||
"reviewMode_confirm": "Вход",
|
||||
"reviewMode_cancel": "Отказ",
|
||||
"reviewMode_banner": "Режим за преглед — симулирани данни",
|
||||
"reviewMode_sendTest": "Тестово съобщение",
|
||||
"reviewMode_testSent": "Скоро ще пристигне тестово съобщение.",
|
||||
"reviewMode_exit": "Изход",
|
||||
"reviewMode_connectFailed": "Режимът за преглед не можа да се стартира: {error}"
|
||||
}
|
||||
+21
-2
@@ -711,6 +711,7 @@
|
||||
"map_shareMarkerHere": "Marker hier teilen",
|
||||
"map_pinLabel": "Pin-Beschriftung",
|
||||
"map_label": "Beschriftung",
|
||||
"map_labelUpdateHint": "Wenn Sie denselben Namen verwenden wie zuvor, wird die Markierung bei MeshCore Open-Empfängern aktualisiert.",
|
||||
"map_pointOfInterest": "Punkt von Interesse",
|
||||
"map_sendToContact": "An Kontakt senden",
|
||||
"map_sendToChannel": "An Kanal senden",
|
||||
@@ -2130,6 +2131,7 @@
|
||||
"contactsSettings_autoAddUsersTitle": "Automatische Hinzufügung von Benutzern",
|
||||
"settings_contactSettingsSubtitle": "Einstellungen für das Hinzufügen von Kontakten",
|
||||
"contactsSettings_autoAddSensorsTitle": "Automatisch Sensoren hinzufügen",
|
||||
"contactsSettings_autoAddSensorsSubtitle": "Ermöglichen Sie dem Begleiter, automatisch entdeckte Sensoren hinzuzufügen",
|
||||
"contactsSettings_autoAddUsersSubtitle": "Ermöglichen Sie dem Begleiter, automatisch entdeckte Benutzer hinzuzufügen",
|
||||
"contactsSettings_autoAddRoomServersTitle": "Automatisch Raumservers hinzufügen",
|
||||
"contactsSettings_autoAddRoomServersSubtitle": "Ermöglichen Sie dem Begleiter, entdeckte Raumserver automatisch hinzuzufügen",
|
||||
@@ -2143,8 +2145,16 @@
|
||||
"discoveredContacts_Title": "Entdeckte Kontakte",
|
||||
"discoveredContacts_copyContact": "Kontakt in die Zwischenablage kopieren",
|
||||
"contactsSettings_overwriteOldestTitle": "Überschreiben des Ältesten",
|
||||
"contactsSettings_autoAddSensorsSubtitle": "Ermöglichen Sie dem Begleiter, automatisch entdeckte Sensoren hinzuzufügen",
|
||||
"contactsSettings_overwriteOldestSubtitle": "Wenn die Kontaktliste voll ist, wird der älteste nicht favorisierte Kontakt ersetzt.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Liste entdeckter Kontakte kürzen",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Wenn aktiviert, wird die Liste der entdeckten Kontakte auf {limit} Kontakte begrenzt.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"common_deleteAll": "Alles löschen",
|
||||
"discoveredContacts_deleteContactAllContent": "Sind Sie sicher, dass Sie alle gefundenen Kontakte löschen möchten?",
|
||||
"discoveredContacts_deleteContactAll": "Alle entdeckten Kontakte löschen",
|
||||
@@ -3221,5 +3231,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "Das Bild konnte nicht gespeichert werden"
|
||||
"receivedImage_saveFailed": "Das Bild konnte nicht gespeichert werden",
|
||||
"reviewMode_dialogTitle": "Prüfmodus aktivieren?",
|
||||
"reviewMode_dialogBody": "Der Prüfmodus verbindet sich mit einem simulierten Radio mit Beispielkontakten, Kanälen und Nachrichten. Es wird kein echtes Radio benötigt.",
|
||||
"reviewMode_confirm": "Aktivieren",
|
||||
"reviewMode_cancel": "Abbrechen",
|
||||
"reviewMode_banner": "Prüfmodus — simulierte Daten",
|
||||
"reviewMode_sendTest": "Testnachricht senden",
|
||||
"reviewMode_testSent": "Eine Testnachricht trifft in Kürze ein.",
|
||||
"reviewMode_exit": "Beenden",
|
||||
"reviewMode_connectFailed": "Prüfmodus konnte nicht gestartet werden: {error}"
|
||||
}
|
||||
+29
-1
@@ -1145,6 +1145,7 @@
|
||||
"map_setAsMyLocation": "Set as my location",
|
||||
"map_pinLabel": "Pin label",
|
||||
"map_label": "Label",
|
||||
"map_labelUpdateHint": "Using the same label as before will update the marker for MeshCore Open recipients.",
|
||||
"map_pointOfInterest": "Point of interest",
|
||||
"map_sendToContact": "Send to contact",
|
||||
"map_sendToChannel": "Send to channel",
|
||||
@@ -2683,6 +2684,15 @@
|
||||
"contactsSettings_autoAddSensorsSubtitle": "Allow the companion to automatically add discovered sensors.",
|
||||
"contactsSettings_overwriteOldestTitle": "Overwrite Oldest",
|
||||
"contactsSettings_overwriteOldestSubtitle": "When the contact list is full, the oldest non-favorited contact will be replaced.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Evict discovered contacts",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "When enabled, the app removes the oldest discovered contacts once the discovery list reaches its limit of {limit} entries.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"discoveredContacts_Title": "Discovered Contacts",
|
||||
"discoveredContacts_noMatching": "No matching contacts",
|
||||
"discoveredContacts_searchHint": "Search discovered contacts",
|
||||
@@ -3141,5 +3151,23 @@
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"reviewMode_dialogTitle": "Enter review mode?",
|
||||
"@reviewMode_dialogTitle": {"description": "Title of the review mode confirmation dialog"},
|
||||
"reviewMode_dialogBody": "Review mode connects to a simulated radio with sample contacts, channels and messages. No real radio is needed.",
|
||||
"@reviewMode_dialogBody": {"description": "Body of the review mode confirmation dialog"},
|
||||
"reviewMode_confirm": "Enter",
|
||||
"@reviewMode_confirm": {"description": "Confirm button of the review mode dialog"},
|
||||
"reviewMode_cancel": "Cancel",
|
||||
"@reviewMode_cancel": {"description": "Cancel button of the review mode dialog"},
|
||||
"reviewMode_banner": "Review mode — simulated data",
|
||||
"@reviewMode_banner": {"description": "Label of the banner shown while review mode is active"},
|
||||
"reviewMode_sendTest": "Send test message",
|
||||
"@reviewMode_sendTest": {"description": "Banner action that makes the simulated radio deliver a message"},
|
||||
"reviewMode_testSent": "A test message will arrive shortly.",
|
||||
"@reviewMode_testSent": {"description": "Snackbar shown after requesting a test message"},
|
||||
"reviewMode_exit": "Exit",
|
||||
"@reviewMode_exit": {"description": "Banner action that leaves review mode"},
|
||||
"reviewMode_connectFailed": "Could not start review mode: {error}",
|
||||
"@reviewMode_connectFailed": {"description": "Snackbar shown when review mode fails to connect", "placeholders": {"error": {"type": "String"}}}
|
||||
}
|
||||
+20
-1
@@ -711,6 +711,7 @@
|
||||
"map_shareMarkerHere": "Compartir marcador aquí",
|
||||
"map_pinLabel": "Etiqueta del pin",
|
||||
"map_label": "Etiqueta",
|
||||
"map_labelUpdateHint": "Si usas la misma etiqueta que antes, el marcador se actualizará para los destinatarios de MeshCore Open.",
|
||||
"map_pointOfInterest": "Punto de interés",
|
||||
"map_sendToContact": "Enviar a contacto",
|
||||
"map_sendToChannel": "Enviar a canal",
|
||||
@@ -2145,6 +2146,15 @@
|
||||
"discoveredContacts_searchHint": "Buscar contactos descubiertos",
|
||||
"discoveredContacts_addContact": "Agregar contacto",
|
||||
"contactsSettings_overwriteOldestSubtitle": "Cuando la lista de contactos esté llena, se reemplazará el contacto no favorito más antiguo.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Expulsar contactos descubiertos",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Si está activado, la aplicación elimina los contactos descubiertos más antiguos cuando la lista de descubrimiento alcanza su límite de {limit} entradas.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"common_deleteAll": "Eliminar todo",
|
||||
"discoveredContacts_deleteContactAll": "Eliminar Todos los Contactos Descubiertos",
|
||||
"discoveredContacts_deleteContactAllContent": "¿Está seguro de que desea eliminar todos los contactos descubiertos!",
|
||||
@@ -3220,5 +3230,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "No se pudo guardar la imagen"
|
||||
"receivedImage_saveFailed": "No se pudo guardar la imagen",
|
||||
"reviewMode_dialogTitle": "¿Entrar en el modo de revisión?",
|
||||
"reviewMode_dialogBody": "El modo de revisión se conecta a una radio simulada con contactos, canales y mensajes de ejemplo. No se necesita una radio real.",
|
||||
"reviewMode_confirm": "Entrar",
|
||||
"reviewMode_cancel": "Cancelar",
|
||||
"reviewMode_banner": "Modo de revisión — datos simulados",
|
||||
"reviewMode_sendTest": "Enviar mensaje de prueba",
|
||||
"reviewMode_testSent": "En breve llegará un mensaje de prueba.",
|
||||
"reviewMode_exit": "Salir",
|
||||
"reviewMode_connectFailed": "No se pudo iniciar el modo de revisión: {error}"
|
||||
}
|
||||
+20
-1
@@ -711,6 +711,7 @@
|
||||
"map_shareMarkerHere": "Partager le marqueur ici",
|
||||
"map_pinLabel": "Libellé de l'épingle",
|
||||
"map_label": "Étiquette",
|
||||
"map_labelUpdateHint": "Utiliser la même étiquette qu’avant mettra à jour le marqueur pour les destinataires utilisant MeshCore Open.",
|
||||
"map_pointOfInterest": "Point d'intérêt",
|
||||
"map_sendToContact": "Envoyer au contact",
|
||||
"map_sendToChannel": "Envoyer sur le canal",
|
||||
@@ -2138,6 +2139,15 @@
|
||||
"discoveredContacts_Title": "Contacts découverts",
|
||||
"discoveredContacts_searchHint": "Rechercher des contacts découverts",
|
||||
"contactsSettings_overwriteOldestSubtitle": "Lorsque la liste de contacts est pleine, le contact le plus ancien non favori sera remplacé.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Évincer les contacts découverts",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Lorsque cette option est activée, l'application supprime les contacts découverts les plus anciens dès que la liste de découverte atteint sa limite de {limit} entrées.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"common_deleteAll": "Tout supprimer",
|
||||
"discoveredContacts_deleteContactAll": "Supprimer tous les contacts découverts",
|
||||
"discoveredContacts_deleteContactAllContent": "Êtes-vous sûr de vouloir supprimer tous les contacts découverts ?",
|
||||
@@ -3220,5 +3230,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "Impossible d'enregistrer l'image"
|
||||
"receivedImage_saveFailed": "Impossible d'enregistrer l'image",
|
||||
"reviewMode_dialogTitle": "Activer le mode revue ?",
|
||||
"reviewMode_dialogBody": "Le mode revue se connecte à une radio simulée avec des contacts, canaux et messages d'exemple. Aucune radio réelle n'est nécessaire.",
|
||||
"reviewMode_confirm": "Activer",
|
||||
"reviewMode_cancel": "Annuler",
|
||||
"reviewMode_banner": "Mode revue — données simulées",
|
||||
"reviewMode_sendTest": "Envoyer un message test",
|
||||
"reviewMode_testSent": "Un message test arrivera sous peu.",
|
||||
"reviewMode_exit": "Quitter",
|
||||
"reviewMode_connectFailed": "Impossible de démarrer le mode revue : {error}"
|
||||
}
|
||||
+20
-1
@@ -865,6 +865,7 @@
|
||||
"map_setAsMyLocation": "Beállítás helyemként",
|
||||
"map_pinLabel": "Kitűzött címke",
|
||||
"map_label": "Címke",
|
||||
"map_labelUpdateHint": "Ha ugyanazt a címkét használja, mint korábban, a jelölő frissül a MeshCore Open-t használó címzetteknél.",
|
||||
"map_pointOfInterest": "Érdekes pont",
|
||||
"map_sendToContact": "Elküldés a kapcsolattartónak",
|
||||
"map_sendToChannel": "Küldés a csatornára",
|
||||
@@ -2133,6 +2134,15 @@
|
||||
"contactsSettings_autoAddSensorsSubtitle": "Engedélyezze a társ számára a felfedezett érzékelők automatikus hozzáadását.",
|
||||
"contactsSettings_overwriteOldestTitle": "A legrégebbi felülírása",
|
||||
"contactsSettings_overwriteOldestSubtitle": "Amikor a névjegylista megtelik, a legrégebbi, nem kedvenc névjegy lecserélődik.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Felfedezett kapcsolatok eltávolítása",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Ha engedélyezve van, az alkalmazás eltávolítja a legrégebbi felfedezett kapcsolatokat, amint a felfedezési lista eléri a(z) {limit} bejegyzéses korlátot.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"discoveredContacts_Title": "Felfedezett kapcsolatok",
|
||||
"discoveredContacts_noMatching": "Nincsenek megfelelő névjegyek",
|
||||
"discoveredContacts_searchHint": "Keresés a talált névjegyek között",
|
||||
@@ -3125,5 +3135,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "A képet nem sikerült elmenteni"
|
||||
"receivedImage_saveFailed": "A képet nem sikerült elmenteni",
|
||||
"reviewMode_dialogTitle": "Belép az áttekintő módba?",
|
||||
"reviewMode_dialogBody": "Az áttekintő mód egy szimulált rádióhoz csatlakozik, mintakapcsolatokkal, csatornákkal és üzenetekkel. Nincs szükség valódi rádióra.",
|
||||
"reviewMode_confirm": "Belépés",
|
||||
"reviewMode_cancel": "Mégsem",
|
||||
"reviewMode_banner": "Áttekintő mód — szimulált adatok",
|
||||
"reviewMode_sendTest": "Tesztüzenet küldése",
|
||||
"reviewMode_testSent": "Hamarosan megérkezik egy tesztüzenet.",
|
||||
"reviewMode_exit": "Kilépés",
|
||||
"reviewMode_connectFailed": "Az áttekintő mód nem indítható el: {error}"
|
||||
}
|
||||
+20
-1
@@ -756,6 +756,7 @@
|
||||
"map_shareMarkerHere": "Condividi segnaposto qui",
|
||||
"map_pinLabel": "Etichetta pin",
|
||||
"map_label": "Etichetta",
|
||||
"map_labelUpdateHint": "Usando la stessa etichetta di prima, il segnaposto verrà aggiornato per i destinatari che usano MeshCore Open.",
|
||||
"map_pointOfInterest": "Punto di interesse",
|
||||
"map_sendToContact": "Invia a contatto",
|
||||
"map_sendToChannel": "Invia al canale",
|
||||
@@ -2184,6 +2185,15 @@
|
||||
}
|
||||
},
|
||||
"contactsSettings_overwriteOldestSubtitle": "Quando l'elenco dei contatti è pieno, il contatto più vecchio non tra i preferiti verrà sostituito.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Rimuovi i contatti scoperti",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Se abilitato, l'app rimuove i contatti scoperti più vecchi quando l'elenco dei contatti scoperti raggiunge il limite di {limit} voci.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"common_deleteAll": "Elimina tutto",
|
||||
"discoveredContacts_deleteContactAllContent": "Sei sicuro di voler eliminare tutti i contatti scoperti?",
|
||||
"discoveredContacts_deleteContactAll": "Eliminare tutti i contatti scoperti",
|
||||
@@ -3220,5 +3230,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "Impossibile salvare l'immagine"
|
||||
"receivedImage_saveFailed": "Impossibile salvare l'immagine",
|
||||
"reviewMode_dialogTitle": "Entrare nella modalità revisione?",
|
||||
"reviewMode_dialogBody": "La modalità revisione si connette a una radio simulata con contatti, canali e messaggi di esempio. Non serve una radio reale.",
|
||||
"reviewMode_confirm": "Entra",
|
||||
"reviewMode_cancel": "Annulla",
|
||||
"reviewMode_banner": "Modalità revisione — dati simulati",
|
||||
"reviewMode_sendTest": "Invia messaggio di prova",
|
||||
"reviewMode_testSent": "A breve arriverà un messaggio di prova.",
|
||||
"reviewMode_exit": "Esci",
|
||||
"reviewMode_connectFailed": "Impossibile avviare la modalità revisione: {error}"
|
||||
}
|
||||
+20
-1
@@ -883,6 +883,7 @@
|
||||
"map_setAsMyLocation": "現在地として設定",
|
||||
"map_pinLabel": "ピンラベル",
|
||||
"map_label": "ラベル",
|
||||
"map_labelUpdateHint": "以前と同じラベルを使うと、MeshCore Open の受信者側でマーカーが更新されます。",
|
||||
"map_pointOfInterest": "興味地点",
|
||||
"map_sendToContact": "連絡先へ送信",
|
||||
"map_sendToChannel": "チャンネルへ送信",
|
||||
@@ -2228,6 +2229,15 @@
|
||||
"contactsSettings_autoAddSensorsSubtitle": "利用者が、発見したセンサーを自動的に追加できるようにする。",
|
||||
"contactsSettings_overwriteOldestTitle": "最も古いものを上書きする",
|
||||
"contactsSettings_overwriteOldestSubtitle": "連絡先リストが満杯になった場合、最も古いかつ「お気に入り」ではない連絡先が削除されます。",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "検出された連絡先を削除",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "有効にすると、検出された連絡先のリストが上限の{limit}件に達した際に、最も古い検出済み連絡先が削除されます。",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"discoveredContacts_Title": "連絡先が見つかった",
|
||||
"discoveredContacts_noMatching": "一致する連絡先が見つかりませんでした",
|
||||
"discoveredContacts_searchHint": "発見された連絡先を検索する",
|
||||
@@ -3220,5 +3230,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "画像を保存できませんでした"
|
||||
"receivedImage_saveFailed": "画像を保存できませんでした",
|
||||
"reviewMode_dialogTitle": "レビューモードに入りますか?",
|
||||
"reviewMode_dialogBody": "レビューモードでは、サンプルの連絡先、チャンネル、メッセージを備えたシミュレートされたデバイスに接続します。実際のデバイスは不要です。",
|
||||
"reviewMode_confirm": "開始",
|
||||
"reviewMode_cancel": "キャンセル",
|
||||
"reviewMode_banner": "レビューモード — シミュレーションデータ",
|
||||
"reviewMode_sendTest": "テストメッセージを送信",
|
||||
"reviewMode_testSent": "まもなくテストメッセージが届きます。",
|
||||
"reviewMode_exit": "終了",
|
||||
"reviewMode_connectFailed": "レビューモードを開始できませんでした: {error}"
|
||||
}
|
||||
+20
-1
@@ -865,6 +865,7 @@
|
||||
"map_setAsMyLocation": "내 위치로 설정",
|
||||
"map_pinLabel": "핀 라벨",
|
||||
"map_label": "레이블",
|
||||
"map_labelUpdateHint": "이전과 같은 레이블을 사용하면 MeshCore Open 수신자에게 표시된 마커가 업데이트됩니다.",
|
||||
"map_pointOfInterest": "관심 지점",
|
||||
"map_sendToContact": "연락처로 보내기",
|
||||
"map_sendToChannel": "채널로 전송",
|
||||
@@ -2133,6 +2134,15 @@
|
||||
"contactsSettings_autoAddSensorsSubtitle": "애완동물이 발견한 센서를 자동으로 추가할 수 있도록 설정합니다.",
|
||||
"contactsSettings_overwriteOldestTitle": "가장 오래된 것을 덮어쓰기",
|
||||
"contactsSettings_overwriteOldestSubtitle": "연락처 목록이 가득 차면, 가장 오래된 (선호하지 않은) 연락처가 대체됩니다.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "발견된 연락처 삭제",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "활성화하면 발견된 연락처 목록이 {limit}개의 한도에 도달했을 때 가장 오래된 발견된 연락처를 삭제합니다.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"discoveredContacts_Title": "연락처 찾기",
|
||||
"discoveredContacts_noMatching": "일치하는 연락처가 없습니다.",
|
||||
"discoveredContacts_searchHint": "발견된 연락처 검색",
|
||||
@@ -3220,5 +3230,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "이미지를 저장할 수 없습니다"
|
||||
"receivedImage_saveFailed": "이미지를 저장할 수 없습니다",
|
||||
"reviewMode_dialogTitle": "검토 모드로 들어갈까요?",
|
||||
"reviewMode_dialogBody": "검토 모드는 샘플 연락처, 채널, 메시지가 있는 시뮬레이션 기기에 연결합니다. 실제 기기는 필요하지 않습니다.",
|
||||
"reviewMode_confirm": "들어가기",
|
||||
"reviewMode_cancel": "취소",
|
||||
"reviewMode_banner": "검토 모드 — 시뮬레이션 데이터",
|
||||
"reviewMode_sendTest": "테스트 메시지 보내기",
|
||||
"reviewMode_testSent": "잠시 후 테스트 메시지가 도착합니다.",
|
||||
"reviewMode_exit": "나가기",
|
||||
"reviewMode_connectFailed": "검토 모드를 시작할 수 없습니다: {error}"
|
||||
}
|
||||
@@ -3916,6 +3916,12 @@ abstract class AppLocalizations {
|
||||
/// **'Label'**
|
||||
String get map_label;
|
||||
|
||||
/// No description provided for @map_labelUpdateHint.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Using the same label as before will update the marker for MeshCore Open recipients.'**
|
||||
String get map_labelUpdateHint;
|
||||
|
||||
/// No description provided for @map_pointOfInterest.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -8248,6 +8254,18 @@ abstract class AppLocalizations {
|
||||
/// **'When the contact list is full, the oldest non-favorited contact will be replaced.'**
|
||||
String get contactsSettings_overwriteOldestSubtitle;
|
||||
|
||||
/// No description provided for @contactsSettings_evictDiscoveredContactsTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Evict discovered contacts'**
|
||||
String get contactsSettings_evictDiscoveredContactsTitle;
|
||||
|
||||
/// No description provided for @contactsSettings_evictDiscoveredContactsSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'When enabled, the app removes the oldest discovered contacts once the discovery list reaches its limit of {limit} entries.'**
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit);
|
||||
|
||||
/// No description provided for @discoveredContacts_Title.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -9339,6 +9357,60 @@ abstract class AppLocalizations {
|
||||
/// In en, this message translates to:
|
||||
/// **'Over 158 bytes: sent at most {count} times'**
|
||||
String chat_longMessageRetryNote(int count);
|
||||
|
||||
/// Title of the review mode confirmation dialog
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Enter review mode?'**
|
||||
String get reviewMode_dialogTitle;
|
||||
|
||||
/// Body of the review mode confirmation dialog
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Review mode connects to a simulated radio with sample contacts, channels and messages. No real radio is needed.'**
|
||||
String get reviewMode_dialogBody;
|
||||
|
||||
/// Confirm button of the review mode dialog
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Enter'**
|
||||
String get reviewMode_confirm;
|
||||
|
||||
/// Cancel button of the review mode dialog
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Cancel'**
|
||||
String get reviewMode_cancel;
|
||||
|
||||
/// Label of the banner shown while review mode is active
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Review mode — simulated data'**
|
||||
String get reviewMode_banner;
|
||||
|
||||
/// Banner action that makes the simulated radio deliver a message
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Send test message'**
|
||||
String get reviewMode_sendTest;
|
||||
|
||||
/// Snackbar shown after requesting a test message
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'A test message will arrive shortly.'**
|
||||
String get reviewMode_testSent;
|
||||
|
||||
/// Banner action that leaves review mode
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Exit'**
|
||||
String get reviewMode_exit;
|
||||
|
||||
/// Snackbar shown when review mode fails to connect
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Could not start review mode: {error}'**
|
||||
String reviewMode_connectFailed(String error);
|
||||
}
|
||||
|
||||
class _AppLocalizationsDelegate
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2191,6 +2190,10 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Етикет';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Ако използвате същия етикет като преди, маркерът ще се обнови за получателите с MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Точка на интерес';
|
||||
|
||||
@@ -4820,6 +4823,15 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Когато списъкът с контакти е пълен, най-старият неключов контакт ще бъде заменен.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Премахване на открити контакти';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Когато е включено, приложението премахва най-старите открити контакти, щом списъкът с открити контакти достигне лимита си от $limit записа.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Открити контакти';
|
||||
|
||||
@@ -5508,4 +5520,34 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Над 158 байта: изпраща се най-много $count пъти';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Вход в режим за преглед?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'Режимът за преглед се свързва със симулирано радио с примерни контакти, канали и съобщения. Не е нужно реално радио.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Вход';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Отказ';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Режим за преглед — симулирани данни';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Тестово съобщение';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Скоро ще пристигне тестово съобщение.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Изход';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Режимът за преглед не можа да се стартира: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2188,6 +2187,10 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Beschriftung';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Wenn Sie denselben Namen verwenden wie zuvor, wird die Markierung bei MeshCore Open-Empfängern aktualisiert.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Punkt von Interesse';
|
||||
|
||||
@@ -4832,6 +4835,15 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Wenn die Kontaktliste voll ist, wird der älteste nicht favorisierte Kontakt ersetzt.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Liste entdeckter Kontakte kürzen';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Wenn aktiviert, wird die Liste der entdeckten Kontakte auf $limit Kontakte begrenzt.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Entdeckte Kontakte';
|
||||
|
||||
@@ -5525,4 +5537,34 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Über 158 Byte: wird höchstens $count Mal gesendet';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Prüfmodus aktivieren?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'Der Prüfmodus verbindet sich mit einem simulierten Radio mit Beispielkontakten, Kanälen und Nachrichten. Es wird kein echtes Radio benötigt.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Aktivieren';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Abbrechen';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Prüfmodus — simulierte Daten';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Testnachricht senden';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Eine Testnachricht trifft in Kürze ein.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Beenden';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Prüfmodus konnte nicht gestartet werden: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2155,6 +2154,10 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Label';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Using the same label as before will update the marker for MeshCore Open recipients.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Point of interest';
|
||||
|
||||
@@ -4751,6 +4754,15 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'When the contact list is full, the oldest non-favorited contact will be replaced.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Evict discovered contacts';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'When enabled, the app removes the oldest discovered contacts once the discovery list reaches its limit of $limit entries.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Discovered Contacts';
|
||||
|
||||
@@ -5431,4 +5443,34 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Over 158 bytes: sent at most $count times';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Enter review mode?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'Review mode connects to a simulated radio with sample contacts, channels and messages. No real radio is needed.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Enter';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Cancel';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Review mode — simulated data';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Send test message';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'A test message will arrive shortly.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Exit';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Could not start review mode: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2183,6 +2182,10 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Etiqueta';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Si usas la misma etiqueta que antes, el marcador se actualizará para los destinatarios de MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Punto de interés';
|
||||
|
||||
@@ -4823,6 +4826,15 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Cuando la lista de contactos esté llena, se reemplazará el contacto no favorito más antiguo.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Expulsar contactos descubiertos';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Si está activado, la aplicación elimina los contactos descubiertos más antiguos cuando la lista de descubrimiento alcanza su límite de $limit entradas.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Contactos descubiertos';
|
||||
|
||||
@@ -5514,4 +5526,34 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Más de 158 bytes: se envía como máximo $count veces';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => '¿Entrar en el modo de revisión?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'El modo de revisión se conecta a una radio simulada con contactos, canales y mensajes de ejemplo. No se necesita una radio real.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Entrar';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Cancelar';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Modo de revisión — datos simulados';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Enviar mensaje de prueba';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'En breve llegará un mensaje de prueba.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Salir';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'No se pudo iniciar el modo de revisión: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2191,6 +2190,10 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Étiquette';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Utiliser la même étiquette qu’avant mettra à jour le marqueur pour les destinataires utilisant MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Point d\'intérêt';
|
||||
|
||||
@@ -4845,6 +4848,15 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Lorsque la liste de contacts est pleine, le contact le plus ancien non favori sera remplacé.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Évincer les contacts découverts';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Lorsque cette option est activée, l\'application supprime les contacts découverts les plus anciens dès que la liste de découverte atteint sa limite de $limit entrées.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Contacts découverts';
|
||||
|
||||
@@ -5538,4 +5550,34 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Plus de 158 octets : envoi au maximum $count fois';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Activer le mode revue ?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'Le mode revue se connecte à une radio simulée avec des contacts, canaux et messages d\'exemple. Aucune radio réelle n\'est nécessaire.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Activer';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Annuler';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Mode revue — données simulées';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Envoyer un message test';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Un message test arrivera sous peu.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Quitter';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Impossible de démarrer le mode revue : $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2180,6 +2179,10 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Címke';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Ha ugyanazt a címkét használja, mint korábban, a jelölő frissül a MeshCore Open-t használó címzetteknél.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Érdekes pont';
|
||||
|
||||
@@ -4819,6 +4822,15 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Amikor a névjegylista megtelik, a legrégebbi, nem kedvenc névjegy lecserélődik.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Felfedezett kapcsolatok eltávolítása';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Ha engedélyezve van, az alkalmazás eltávolítja a legrégebbi felfedezett kapcsolatokat, amint a felfedezési lista eléri a(z) $limit bejegyzéses korlátot.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Felfedezett kapcsolatok';
|
||||
|
||||
@@ -5504,4 +5516,34 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return '158 bájt felett: legfeljebb $count alkalommal küldve';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Belép az áttekintő módba?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'Az áttekintő mód egy szimulált rádióhoz csatlakozik, mintakapcsolatokkal, csatornákkal és üzenetekkel. Nincs szükség valódi rádióra.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Belépés';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Mégsem';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Áttekintő mód — szimulált adatok';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Tesztüzenet küldése';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Hamarosan megérkezik egy tesztüzenet.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Kilépés';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Az áttekintő mód nem indítható el: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2189,6 +2188,10 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Etichetta';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Usando la stessa etichetta di prima, il segnaposto verrà aggiornato per i destinatari che usano MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Punto di interesse';
|
||||
|
||||
@@ -4829,6 +4832,15 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Quando l\'elenco dei contatti è pieno, il contatto più vecchio non tra i preferiti verrà sostituito.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Rimuovi i contatti scoperti';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Se abilitato, l\'app rimuove i contatti scoperti più vecchi quando l\'elenco dei contatti scoperti raggiunge il limite di $limit voci.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Contatti scoperti';
|
||||
|
||||
@@ -5520,4 +5532,34 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Oltre 158 byte: inviato al massimo $count volte';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Entrare nella modalità revisione?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'La modalità revisione si connette a una radio simulata con contatti, canali e messaggi di esempio. Non serve una radio reale.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Entra';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Annulla';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Modalità revisione — dati simulati';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Invia messaggio di prova';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'A breve arriverà un messaggio di prova.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Esci';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Impossibile avviare la modalità revisione: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2092,6 +2091,10 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'ラベル';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'以前と同じラベルを使うと、MeshCore Open の受信者側でマーカーが更新されます。';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => '興味地点';
|
||||
|
||||
@@ -4584,6 +4587,14 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'連絡先リストが満杯になった場合、最も古いかつ「お気に入り」ではない連絡先が削除されます。';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle => '検出された連絡先を削除';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return '有効にすると、検出された連絡先のリストが上限の$limit件に達した際に、最も古い検出済み連絡先が削除されます。';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => '連絡先が見つかった';
|
||||
|
||||
@@ -5245,4 +5256,34 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return '158バイトを超える場合:最大 $count 回まで送信されます';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'レビューモードに入りますか?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'レビューモードでは、サンプルの連絡先、チャンネル、メッセージを備えたシミュレートされたデバイスに接続します。実際のデバイスは不要です。';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => '開始';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'キャンセル';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'レビューモード — シミュレーションデータ';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'テストメッセージを送信';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'まもなくテストメッセージが届きます。';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => '終了';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'レビューモードを開始できませんでした: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2098,6 +2097,10 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => '레이블';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'이전과 같은 레이블을 사용하면 MeshCore Open 수신자에게 표시된 마커가 업데이트됩니다.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => '관심 지점';
|
||||
|
||||
@@ -4594,6 +4597,14 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'연락처 목록이 가득 차면, 가장 오래된 (선호하지 않은) 연락처가 대체됩니다.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle => '발견된 연락처 삭제';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return '활성화하면 발견된 연락처 목록이 $limit개의 한도에 도달했을 때 가장 오래된 발견된 연락처를 삭제합니다.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => '연락처 찾기';
|
||||
|
||||
@@ -5255,4 +5266,34 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return '158바이트 초과 시: 최대 $count회 전송됩니다';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => '검토 모드로 들어갈까요?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'검토 모드는 샘플 연락처, 채널, 메시지가 있는 시뮬레이션 기기에 연결합니다. 실제 기기는 필요하지 않습니다.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => '들어가기';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => '취소';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => '검토 모드 — 시뮬레이션 데이터';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => '테스트 메시지 보내기';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => '잠시 후 테스트 메시지가 도착합니다.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => '나가기';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return '검토 모드를 시작할 수 없습니다: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2174,6 +2173,10 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Label';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Als je hetzelfde label als eerder gebruikt, wordt de markering bijgewerkt voor ontvangers met MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Interessepunt';
|
||||
|
||||
@@ -4797,6 +4800,15 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Wanneer de contactenlijst vol is, wordt de oudste niet-favoriete contactpersoon vervangen.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Ontdekte contacten verwijderen';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Indien ingeschakeld verwijdert de app de oudste ontdekte contacten zodra de lijst met ontdekte contacten de limiet van $limit items bereikt.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Ontdekte contacten';
|
||||
|
||||
@@ -5482,4 +5494,34 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Meer dan 158 bytes: maximaal $count keer verzonden';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Beoordelingsmodus starten?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'De beoordelingsmodus maakt verbinding met een gesimuleerde radio met voorbeeldcontacten, kanalen en berichten. Een echte radio is niet nodig.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Starten';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Annuleren';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Beoordelingsmodus — gesimuleerde gegevens';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Testbericht sturen';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Er komt zo een testbericht binnen.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Afsluiten';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Beoordelingsmodus kon niet worden gestart: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2206,6 +2205,10 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Etykieta';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Użycie tej samej etykiety co wcześniej zaktualizuje znacznik u odbiorców korzystających z MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Punkt zainteresowań';
|
||||
|
||||
@@ -4852,6 +4855,15 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Gdy lista kontaktów jest pełna, najstarszy nieulubiony kontakt zostanie zastąpiony.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Usuwaj odkryte kontakty';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Gdy ta opcja jest włączona, aplikacja usuwa najstarsze odkryte kontakty, gdy lista odkrytych osiągnie limit $limit wpisów.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Odkryte Kontakty';
|
||||
|
||||
@@ -5542,4 +5554,34 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Powyżej 158 bajtów: wysyłane maksymalnie $count razy';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Włączyć tryb recenzji?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'Tryb recenzji łączy się z symulowanym radiem z przykładowymi kontaktami, kanałami i wiadomościami. Prawdziwe radio nie jest potrzebne.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Włącz';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Anuluj';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Tryb recenzji — dane symulowane';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Wyślij wiadomość testową';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Wiadomość testowa wkrótce nadejdzie.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Wyjdź';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Nie udało się uruchomić trybu recenzji: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2187,6 +2186,10 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Rótulo';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Usar o mesmo rótulo de antes atualizará o marcador para os destinatários do MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Ponto de interesse';
|
||||
|
||||
@@ -4824,6 +4827,15 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Quando a lista de contatos estiver cheia, o contato mais antigo não favoritado será substituído.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Remover contatos descobertos';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Quando ativado, o aplicativo remove os contatos descobertos mais antigos assim que a lista de descobertos atingir o limite de $limit entradas.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Contatos Descobertos';
|
||||
|
||||
@@ -5510,4 +5522,34 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Mais de 158 bytes: enviado no máximo $count vezes';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Entrar no modo de revisão?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'O modo de revisão conecta-se a um rádio simulado com contatos, canais e mensagens de exemplo. Não é necessário um rádio real.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Entrar';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Cancelar';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Modo de revisão — dados simulados';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Enviar mensagem de teste';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Uma mensagem de teste chegará em breve.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Sair';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Não foi possível iniciar o modo de revisão: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2192,6 +2191,10 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Подпись';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Если использовать ту же подпись, что и раньше, метка обновится у получателей MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Точка интереса';
|
||||
|
||||
@@ -4837,6 +4840,15 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Когда список контактов заполнен, будет заменен самый старый контакт, который не находится в избранном.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Удалять обнаруженные контакты';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Если включено, приложение удаляет самые старые обнаруженные контакты, когда список обнаруженных достигает лимита в $limit записей.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Обнаруженные контакты';
|
||||
|
||||
@@ -5529,4 +5541,34 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Более 158 байт: отправляется не более $count раз';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Войти в режим проверки?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'Режим проверки подключается к имитируемому радио с примерами контактов, каналов и сообщений. Реальное радио не требуется.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Войти';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Отмена';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Режим проверки — имитация данных';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Тестовое сообщение';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Скоро придёт тестовое сообщение.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Выйти';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Не удалось запустить режим проверки: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2179,6 +2178,10 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Značka';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Ak použijete rovnaký štítok ako predtým, značka sa aktualizuje u príjemcov MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Bod záujmu';
|
||||
|
||||
@@ -4806,6 +4809,15 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Keď je zoznam kontaktov plný, bude nahradený najstarší neoznačený kontakt.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Odstraňovať objavené kontakty';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Keď je táto možnosť zapnutá, aplikácia odstráni najstaršie objavené kontakty, keď zoznam objavených dosiahne limit $limit záznamov.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Objavené kontakty';
|
||||
|
||||
@@ -5491,4 +5503,34 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Nad 158 bajtov: odoslané najviac $count-krát';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Vstúpiť do režimu kontroly?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'Režim kontroly sa pripojí k simulovanému rádiu s ukážkovými kontaktmi, kanálmi a správami. Skutočné rádio nie je potrebné.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Vstúpiť';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Zrušiť';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Režim kontroly — simulované údaje';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Poslať testovaciu správu';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Čoskoro príde testovacia správa.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Ukončiť';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Režim kontroly sa nepodarilo spustiť: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2173,6 +2172,10 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Oznaka';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Če uporabite enako oznako kot prej, se oznaka na zemljevidu posodobi pri prejemnikih MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Točka zanimivosti';
|
||||
|
||||
@@ -4806,6 +4809,15 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Ko je seznam stikov poln, bo najstarejši nestarševski stik zamenjan.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Odstrani odkrite stike';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Ko je ta možnost vklopljena, aplikacija odstrani najstarejše odkrite stike, ko seznam odkritih stikov doseže omejitev $limit vnosov.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Odkriti stiki';
|
||||
|
||||
@@ -5495,4 +5507,34 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Nad 158 bajtov: poslano največ $count-krat';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Vstop v način pregleda?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'Način pregleda se poveže s simuliranim radiem z vzorčnimi stiki, kanali in sporočili. Pravi radio ni potreben.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Vstopi';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Prekliči';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Način pregleda — simulirani podatki';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Pošlji testno sporočilo';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Kmalu bo prispelo testno sporočilo.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Izhod';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Načina pregleda ni bilo mogoče zagnati: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2163,6 +2162,10 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Etikett';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Om du använder samma etikett som tidigare uppdateras markören för mottagare med MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Plats av intresse';
|
||||
|
||||
@@ -4781,6 +4784,15 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'När kontaktlistan är full ersätts den äldsta icke-favoriterade kontakten.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Rensa upptäckta kontakter';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'När detta är aktiverat tar appen bort de äldsta upptäckta kontakterna när listan över upptäckta kontakter når sin gräns på $limit poster.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Upptäckta kontakter';
|
||||
|
||||
@@ -5465,4 +5477,34 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Över 158 byte: skickas högst $count gånger';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Aktivera granskningsläge?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'Granskningsläget ansluter till en simulerad radio med exempelkontakter, kanaler och meddelanden. Ingen riktig radio behövs.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Aktivera';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Avbryt';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Granskningsläge — simulerad data';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Skicka testmeddelande';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Ett testmeddelande kommer snart.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Avsluta';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Det gick inte att starta granskningsläget: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2182,6 +2181,10 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => 'Мітка';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint =>
|
||||
'Якщо використати ту саму мітку, що й раніше, маркер оновиться в одержувачів MeshCore Open.';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => 'Точка інтересу';
|
||||
|
||||
@@ -4835,6 +4838,15 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'Коли список контактів заповнений, найстарший контакт без позначки улюбленого буде замінений.';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle =>
|
||||
'Видаляти виявлені контакти';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return 'Якщо ввімкнено, застосунок видаляє найстаріші виявлені контакти, коли список виявлених контактів досягає ліміту в $limit записів.';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => 'Виявлені контакти';
|
||||
|
||||
@@ -5531,4 +5543,34 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return 'Понад 158 байтів: надсилається не більше $count разів';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => 'Увійти в режим перевірки?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody =>
|
||||
'Режим перевірки підключається до імітованого радіо із прикладами контактів, каналів і повідомлень. Справжнє радіо не потрібне.';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => 'Увійти';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => 'Скасувати';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => 'Режим перевірки — імітовані дані';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => 'Тестове повідомлення';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => 'Незабаром надійде тестове повідомлення.';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => 'Вийти';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return 'Не вдалося запустити режим перевірки: $error';
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
|
||||
import 'app_localizations.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
@@ -2066,6 +2065,9 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get map_label => '标签';
|
||||
|
||||
@override
|
||||
String get map_labelUpdateHint => '使用与之前相同的标签,将为 MeshCore Open 接收者更新该标记。';
|
||||
|
||||
@override
|
||||
String get map_pointOfInterest => '兴趣点';
|
||||
|
||||
@@ -4469,6 +4471,14 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
String get contactsSettings_overwriteOldestSubtitle =>
|
||||
'当联系人列表已满时,将替换最老的非收藏联系人。';
|
||||
|
||||
@override
|
||||
String get contactsSettings_evictDiscoveredContactsTitle => '清除已发现的联系人';
|
||||
|
||||
@override
|
||||
String contactsSettings_evictDiscoveredContactsSubtitle(int limit) {
|
||||
return '启用后,当已发现联系人列表达到 $limit 条的上限时,应用会移除最旧的已发现联系人。';
|
||||
}
|
||||
|
||||
@override
|
||||
String get discoveredContacts_Title => '已发现的联系人';
|
||||
|
||||
@@ -5122,4 +5132,33 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
String chat_longMessageRetryNote(int count) {
|
||||
return '超过158字节:最多发送 $count 次';
|
||||
}
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogTitle => '进入审核模式?';
|
||||
|
||||
@override
|
||||
String get reviewMode_dialogBody => '审核模式会连接到模拟设备,其中包含示例联系人、频道和消息。无需真实设备。';
|
||||
|
||||
@override
|
||||
String get reviewMode_confirm => '进入';
|
||||
|
||||
@override
|
||||
String get reviewMode_cancel => '取消';
|
||||
|
||||
@override
|
||||
String get reviewMode_banner => '审核模式 — 模拟数据';
|
||||
|
||||
@override
|
||||
String get reviewMode_sendTest => '发送测试消息';
|
||||
|
||||
@override
|
||||
String get reviewMode_testSent => '测试消息即将送达。';
|
||||
|
||||
@override
|
||||
String get reviewMode_exit => '退出';
|
||||
|
||||
@override
|
||||
String reviewMode_connectFailed(String error) {
|
||||
return '无法启动审核模式:$error';
|
||||
}
|
||||
}
|
||||
+20
-1
@@ -709,6 +709,7 @@
|
||||
"map_shareMarkerHere": "Deel marker hier",
|
||||
"map_pinLabel": "Pinlabel",
|
||||
"map_label": "Label",
|
||||
"map_labelUpdateHint": "Als je hetzelfde label als eerder gebruikt, wordt de markering bijgewerkt voor ontvangers met MeshCore Open.",
|
||||
"map_pointOfInterest": "Interessepunt",
|
||||
"map_sendToContact": "Verzenden naar contact",
|
||||
"map_sendToChannel": "Verzenden naar kanaal",
|
||||
@@ -2088,6 +2089,15 @@
|
||||
}
|
||||
},
|
||||
"contactsSettings_overwriteOldestSubtitle": "Wanneer de contactenlijst vol is, wordt de oudste niet-favoriete contactpersoon vervangen.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Ontdekte contacten verwijderen",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Indien ingeschakeld verwijdert de app de oudste ontdekte contacten zodra de lijst met ontdekte contacten de limiet van {limit} items bereikt.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"common_deleteAll": "Alles verwijderen",
|
||||
"discoveredContacts_deleteContactAll": "Verwijder alle ontdekte contacten",
|
||||
"discoveredContacts_deleteContactAllContent": "Weet je zeker dat je alle ontdekte contacten wilt verwijderen?",
|
||||
@@ -2987,5 +2997,14 @@
|
||||
"notification_replyTooLong": "Je antwoord is te lang om vanuit een melding te verzenden. Verzend het vanuit MeshCore Open.",
|
||||
"notification_replyUnavailable": "Dit gesprek staat niet meer op de verbonden radio.",
|
||||
"notification_replySendFailed": "Je antwoord is mogelijk niet verzonden. Controleer dit in MeshCore Open en probeer het opnieuw.",
|
||||
"notification_replyAppNotRunning": "MeshCore Open is niet actief. Open de app en verzend je antwoord opnieuw."
|
||||
"notification_replyAppNotRunning": "MeshCore Open is niet actief. Open de app en verzend je antwoord opnieuw.",
|
||||
"reviewMode_dialogTitle": "Beoordelingsmodus starten?",
|
||||
"reviewMode_dialogBody": "De beoordelingsmodus maakt verbinding met een gesimuleerde radio met voorbeeldcontacten, kanalen en berichten. Een echte radio is niet nodig.",
|
||||
"reviewMode_confirm": "Starten",
|
||||
"reviewMode_cancel": "Annuleren",
|
||||
"reviewMode_banner": "Beoordelingsmodus — gesimuleerde gegevens",
|
||||
"reviewMode_sendTest": "Testbericht sturen",
|
||||
"reviewMode_testSent": "Er komt zo een testbericht binnen.",
|
||||
"reviewMode_exit": "Afsluiten",
|
||||
"reviewMode_connectFailed": "Beoordelingsmodus kon niet worden gestart: {error}"
|
||||
}
|
||||
+20
-1
@@ -699,6 +699,7 @@
|
||||
"map_shareMarkerHere": "Udostępnij znacznik tutaj",
|
||||
"map_pinLabel": "Etykieta pinezki",
|
||||
"map_label": "Etykieta",
|
||||
"map_labelUpdateHint": "Użycie tej samej etykiety co wcześniej zaktualizuje znacznik u odbiorców korzystających z MeshCore Open.",
|
||||
"map_pointOfInterest": "Punkt zainteresowań",
|
||||
"map_sendToContact": "Wyślij do kontaktu",
|
||||
"map_sendToChannel": "Wyślij do kanału",
|
||||
@@ -2091,6 +2092,15 @@
|
||||
}
|
||||
},
|
||||
"contactsSettings_overwriteOldestSubtitle": "Gdy lista kontaktów jest pełna, najstarszy nieulubiony kontakt zostanie zastąpiony.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Usuwaj odkryte kontakty",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Gdy ta opcja jest włączona, aplikacja usuwa najstarsze odkryte kontakty, gdy lista odkrytych osiągnie limit {limit} wpisów.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"common_deleteAll": "Usuń wszystko",
|
||||
"discoveredContacts_deleteContactAllContent": "Czy na pewno chcesz usunąć wszystkie znalezione kontakty?",
|
||||
"discoveredContacts_deleteContactAll": "Usuń wszystkie odkryte kontakty",
|
||||
@@ -3119,5 +3129,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "Nie udało się zapisać obrazu"
|
||||
"receivedImage_saveFailed": "Nie udało się zapisać obrazu",
|
||||
"reviewMode_dialogTitle": "Włączyć tryb recenzji?",
|
||||
"reviewMode_dialogBody": "Tryb recenzji łączy się z symulowanym radiem z przykładowymi kontaktami, kanałami i wiadomościami. Prawdziwe radio nie jest potrzebne.",
|
||||
"reviewMode_confirm": "Włącz",
|
||||
"reviewMode_cancel": "Anuluj",
|
||||
"reviewMode_banner": "Tryb recenzji — dane symulowane",
|
||||
"reviewMode_sendTest": "Wyślij wiadomość testową",
|
||||
"reviewMode_testSent": "Wiadomość testowa wkrótce nadejdzie.",
|
||||
"reviewMode_exit": "Wyjdź",
|
||||
"reviewMode_connectFailed": "Nie udało się uruchomić trybu recenzji: {error}"
|
||||
}
|
||||
+20
-1
@@ -689,6 +689,7 @@
|
||||
"map_shareMarkerHere": "Compartilhar marcador aqui",
|
||||
"map_pinLabel": "Rótulo de marcador",
|
||||
"map_label": "Rótulo",
|
||||
"map_labelUpdateHint": "Usar o mesmo rótulo de antes atualizará o marcador para os destinatários do MeshCore Open.",
|
||||
"map_pointOfInterest": "Ponto de interesse",
|
||||
"map_sendToContact": "Enviar para o contato",
|
||||
"map_sendToChannel": "Enviar para o canal",
|
||||
@@ -2053,6 +2054,15 @@
|
||||
}
|
||||
},
|
||||
"contactsSettings_overwriteOldestSubtitle": "Quando a lista de contatos estiver cheia, o contato mais antigo não favoritado será substituído.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Remover contatos descobertos",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Quando ativado, o aplicativo remove os contatos descobertos mais antigos assim que a lista de descobertos atingir o limite de {limit} entradas.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"common_deleteAll": "Excluir Tudo",
|
||||
"discoveredContacts_deleteContactAll": "Excluir Todos os Contatos Descobertos",
|
||||
"discoveredContacts_deleteContactAllContent": "Tem certeza de que deseja excluir todos os contatos descobertos?",
|
||||
@@ -3086,5 +3096,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "Não foi possível guardar a imagem"
|
||||
"receivedImage_saveFailed": "Não foi possível guardar a imagem",
|
||||
"reviewMode_dialogTitle": "Entrar no modo de revisão?",
|
||||
"reviewMode_dialogBody": "O modo de revisão conecta-se a um rádio simulado com contatos, canais e mensagens de exemplo. Não é necessário um rádio real.",
|
||||
"reviewMode_confirm": "Entrar",
|
||||
"reviewMode_cancel": "Cancelar",
|
||||
"reviewMode_banner": "Modo de revisão — dados simulados",
|
||||
"reviewMode_sendTest": "Enviar mensagem de teste",
|
||||
"reviewMode_testSent": "Uma mensagem de teste chegará em breve.",
|
||||
"reviewMode_exit": "Sair",
|
||||
"reviewMode_connectFailed": "Não foi possível iniciar o modo de revisão: {error}"
|
||||
}
|
||||
+20
-1
@@ -413,6 +413,7 @@
|
||||
"map_shareMarkerHere": "Поделиться меткой здесь",
|
||||
"map_pinLabel": "Метка",
|
||||
"map_label": "Подпись",
|
||||
"map_labelUpdateHint": "Если использовать ту же подпись, что и раньше, метка обновится у получателей MeshCore Open.",
|
||||
"map_pointOfInterest": "Точка интереса",
|
||||
"map_sendToContact": "Отправить контакту",
|
||||
"map_sendToChannel": "Отправить в канал",
|
||||
@@ -1222,6 +1223,15 @@
|
||||
}
|
||||
},
|
||||
"contactsSettings_overwriteOldestSubtitle": "Когда список контактов заполнен, будет заменен самый старый контакт, который не находится в избранном.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Удалять обнаруженные контакты",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Если включено, приложение удаляет самые старые обнаруженные контакты, когда список обнаруженных достигает лимита в {limit} записей.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"common_deleteAll": "Удалить все",
|
||||
"discoveredContacts_deleteContactAllContent": "Вы уверены, что хотите удалить все обнаруженные контакты?",
|
||||
"discoveredContacts_deleteContactAll": "Удалить Все Обнаруженные Контакты",
|
||||
@@ -2383,5 +2393,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "Не удалось сохранить изображение"
|
||||
"receivedImage_saveFailed": "Не удалось сохранить изображение",
|
||||
"reviewMode_dialogTitle": "Войти в режим проверки?",
|
||||
"reviewMode_dialogBody": "Режим проверки подключается к имитируемому радио с примерами контактов, каналов и сообщений. Реальное радио не требуется.",
|
||||
"reviewMode_confirm": "Войти",
|
||||
"reviewMode_cancel": "Отмена",
|
||||
"reviewMode_banner": "Режим проверки — имитация данных",
|
||||
"reviewMode_sendTest": "Тестовое сообщение",
|
||||
"reviewMode_testSent": "Скоро придёт тестовое сообщение.",
|
||||
"reviewMode_exit": "Выйти",
|
||||
"reviewMode_connectFailed": "Не удалось запустить режим проверки: {error}"
|
||||
}
|
||||
+20
-1
@@ -689,6 +689,7 @@
|
||||
"map_shareMarkerHere": "Zdieľte značku tu",
|
||||
"map_pinLabel": "Označka upozornenia",
|
||||
"map_label": "Značka",
|
||||
"map_labelUpdateHint": "Ak použijete rovnaký štítok ako predtým, značka sa aktualizuje u príjemcov MeshCore Open.",
|
||||
"map_pointOfInterest": "Bod záujmu",
|
||||
"map_sendToContact": "Pošleť na kontakt",
|
||||
"map_sendToChannel": "Poslať do kanálu",
|
||||
@@ -2053,6 +2054,15 @@
|
||||
}
|
||||
},
|
||||
"contactsSettings_overwriteOldestSubtitle": "Keď je zoznam kontaktov plný, bude nahradený najstarší neoznačený kontakt.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Odstraňovať objavené kontakty",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Keď je táto možnosť zapnutá, aplikácia odstráni najstaršie objavené kontakty, keď zoznam objavených dosiahne limit {limit} záznamov.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"discoveredContacts_deleteContactAll": "Zmazať všetky objavené kontakty",
|
||||
"common_deleteAll": "Zmazať všetko",
|
||||
"discoveredContacts_deleteContactAllContent": "Ste si istí, že chcete zmazať všetky objavené kontakty?",
|
||||
@@ -3087,5 +3097,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "Nepodarilo sa uložiť obrázok"
|
||||
"receivedImage_saveFailed": "Nepodarilo sa uložiť obrázok",
|
||||
"reviewMode_dialogTitle": "Vstúpiť do režimu kontroly?",
|
||||
"reviewMode_dialogBody": "Režim kontroly sa pripojí k simulovanému rádiu s ukážkovými kontaktmi, kanálmi a správami. Skutočné rádio nie je potrebné.",
|
||||
"reviewMode_confirm": "Vstúpiť",
|
||||
"reviewMode_cancel": "Zrušiť",
|
||||
"reviewMode_banner": "Režim kontroly — simulované údaje",
|
||||
"reviewMode_sendTest": "Poslať testovaciu správu",
|
||||
"reviewMode_testSent": "Čoskoro príde testovacia správa.",
|
||||
"reviewMode_exit": "Ukončiť",
|
||||
"reviewMode_connectFailed": "Režim kontroly sa nepodarilo spustiť: {error}"
|
||||
}
|
||||
+20
-1
@@ -689,6 +689,7 @@
|
||||
"map_shareMarkerHere": "Delite točke tukaj.",
|
||||
"map_pinLabel": "Oznaka za pritrditev",
|
||||
"map_label": "Oznaka",
|
||||
"map_labelUpdateHint": "Če uporabite enako oznako kot prej, se oznaka na zemljevidu posodobi pri prejemnikih MeshCore Open.",
|
||||
"map_pointOfInterest": "Točka zanimivosti",
|
||||
"map_sendToContact": "Pošlji v kontakt",
|
||||
"map_sendToChannel": "Pošlji v kanal",
|
||||
@@ -2053,6 +2054,8 @@
|
||||
}
|
||||
},
|
||||
"contactsSettings_overwriteOldestSubtitle": "Ko je seznam stikov poln, bo najstarejši nestarševski stik zamenjan.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Odstrani odkrite stike",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Ko je ta možnost vklopljena, aplikacija odstrani najstarejše odkrite stike, ko seznam odkritih stikov doseže omejitev {limit} vnosov.",
|
||||
"common_deleteAll": "Izbriši vse",
|
||||
"discoveredContacts_deleteContactAllContent": "Ste prepričani, da želite izbrisati vse odkrite kontakte?",
|
||||
"discoveredContacts_deleteContactAll": "Izbriši vse odkrite kontakte",
|
||||
@@ -2911,6 +2914,13 @@
|
||||
}
|
||||
},
|
||||
"messageStatus_hopsNotReached": "Poslano, a nazaj slišano le skozi {hops} od {required} ponoviteljev. Morda je odšlo še dlje, kot vaše radio sliši.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@messageStatus_hopsNotReached": {
|
||||
"placeholders": {
|
||||
"hops": {
|
||||
@@ -3087,5 +3097,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "Slike ni bilo mogoče shraniti"
|
||||
"receivedImage_saveFailed": "Slike ni bilo mogoče shraniti",
|
||||
"reviewMode_dialogTitle": "Vstop v način pregleda?",
|
||||
"reviewMode_dialogBody": "Način pregleda se poveže s simuliranim radiem z vzorčnimi stiki, kanali in sporočili. Pravi radio ni potreben.",
|
||||
"reviewMode_confirm": "Vstopi",
|
||||
"reviewMode_cancel": "Prekliči",
|
||||
"reviewMode_banner": "Način pregleda — simulirani podatki",
|
||||
"reviewMode_sendTest": "Pošlji testno sporočilo",
|
||||
"reviewMode_testSent": "Kmalu bo prispelo testno sporočilo.",
|
||||
"reviewMode_exit": "Izhod",
|
||||
"reviewMode_connectFailed": "Načina pregleda ni bilo mogoče zagnati: {error}"
|
||||
}
|
||||
+20
-1
@@ -690,6 +690,7 @@
|
||||
"map_shareMarkerHere": "Dela markeringen här",
|
||||
"map_pinLabel": "Fästetikett",
|
||||
"map_label": "Etikett",
|
||||
"map_labelUpdateHint": "Om du använder samma etikett som tidigare uppdateras markören för mottagare med MeshCore Open.",
|
||||
"map_pointOfInterest": "Plats av intresse",
|
||||
"map_sendToContact": "Skicka till kontakt",
|
||||
"map_sendToChannel": "Skicka till kanal",
|
||||
@@ -2054,6 +2055,8 @@
|
||||
}
|
||||
},
|
||||
"contactsSettings_overwriteOldestSubtitle": "När kontaktlistan är full ersätts den äldsta icke-favoriterade kontakten.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Rensa upptäckta kontakter",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "När detta är aktiverat tar appen bort de äldsta upptäckta kontakterna när listan över upptäckta kontakter når sin gräns på {limit} poster.",
|
||||
"common_deleteAll": "Ta bort alla",
|
||||
"discoveredContacts_deleteContactAllContent": "Är du säker på att du vill ta bort alla upptäckta kontakter?",
|
||||
"discoveredContacts_deleteContactAll": "Ta bort alla upptäckta kontakter",
|
||||
@@ -2905,6 +2908,13 @@
|
||||
}
|
||||
},
|
||||
"messageStatus_hopsNotReached": "Skickat, men endast hört tillbaka via {hops} av {required} repeatrar. Det kan ha kommit längre än din radio kan höra.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@messageStatus_hopsNotReached": {
|
||||
"placeholders": {
|
||||
"hops": {
|
||||
@@ -3081,5 +3091,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "Kunde inte spara bilden"
|
||||
"receivedImage_saveFailed": "Kunde inte spara bilden",
|
||||
"reviewMode_dialogTitle": "Aktivera granskningsläge?",
|
||||
"reviewMode_dialogBody": "Granskningsläget ansluter till en simulerad radio med exempelkontakter, kanaler och meddelanden. Ingen riktig radio behövs.",
|
||||
"reviewMode_confirm": "Aktivera",
|
||||
"reviewMode_cancel": "Avbryt",
|
||||
"reviewMode_banner": "Granskningsläge — simulerad data",
|
||||
"reviewMode_sendTest": "Skicka testmeddelande",
|
||||
"reviewMode_testSent": "Ett testmeddelande kommer snart.",
|
||||
"reviewMode_exit": "Avsluta",
|
||||
"reviewMode_connectFailed": "Det gick inte att starta granskningsläget: {error}"
|
||||
}
|
||||
+20
-1
@@ -699,6 +699,7 @@
|
||||
"map_shareMarkerHere": "Поділитись маркером тут",
|
||||
"map_pinLabel": "Мітка піна",
|
||||
"map_label": "Мітка",
|
||||
"map_labelUpdateHint": "Якщо використати ту саму мітку, що й раніше, маркер оновиться в одержувачів MeshCore Open.",
|
||||
"map_pointOfInterest": "Точка інтересу",
|
||||
"map_sendToContact": "Надіслати контакту",
|
||||
"map_sendToChannel": "Надіслати в канал",
|
||||
@@ -2063,6 +2064,8 @@
|
||||
}
|
||||
},
|
||||
"contactsSettings_overwriteOldestSubtitle": "Коли список контактів заповнений, найстарший контакт без позначки улюбленого буде замінений.",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "Видаляти виявлені контакти",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "Якщо ввімкнено, застосунок видаляє найстаріші виявлені контакти, коли список виявлених контактів досягає ліміту в {limit} записів.",
|
||||
"common_deleteAll": "Видалити все",
|
||||
"discoveredContacts_deleteContactAll": "Видалити всі виявлені контакти",
|
||||
"discoveredContacts_deleteContactAllContent": "Ви впевнені, що хочете видалити всі виявлені контакти?",
|
||||
@@ -2890,6 +2893,13 @@
|
||||
}
|
||||
},
|
||||
"messageStatus_hopsNotReached": "Надіслано, але у відповідь почуто лише через {hops} з {required} ретрансляторів. Можливо, воно дійшло далі, ніж може почути ваше радіо.",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@messageStatus_hopsNotReached": {
|
||||
"placeholders": {
|
||||
"hops": {
|
||||
@@ -3066,5 +3076,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "Не вдалося зберегти зображення"
|
||||
"receivedImage_saveFailed": "Не вдалося зберегти зображення",
|
||||
"reviewMode_dialogTitle": "Увійти в режим перевірки?",
|
||||
"reviewMode_dialogBody": "Режим перевірки підключається до імітованого радіо із прикладами контактів, каналів і повідомлень. Справжнє радіо не потрібне.",
|
||||
"reviewMode_confirm": "Увійти",
|
||||
"reviewMode_cancel": "Скасувати",
|
||||
"reviewMode_banner": "Режим перевірки — імітовані дані",
|
||||
"reviewMode_sendTest": "Тестове повідомлення",
|
||||
"reviewMode_testSent": "Незабаром надійде тестове повідомлення.",
|
||||
"reviewMode_exit": "Вийти",
|
||||
"reviewMode_connectFailed": "Не вдалося запустити режим перевірки: {error}"
|
||||
}
|
||||
+20
-1
@@ -716,6 +716,7 @@
|
||||
"map_shareMarkerHere": "在此分享标记",
|
||||
"map_pinLabel": "标签",
|
||||
"map_label": "标签",
|
||||
"map_labelUpdateHint": "使用与之前相同的标签,将为 MeshCore Open 接收者更新该标记。",
|
||||
"map_pointOfInterest": "兴趣点",
|
||||
"map_sendToContact": "发送给联系人",
|
||||
"map_sendToChannel": "发送到频道",
|
||||
@@ -2058,6 +2059,8 @@
|
||||
}
|
||||
},
|
||||
"contactsSettings_overwriteOldestSubtitle": "当联系人列表已满时,将替换最老的非收藏联系人。",
|
||||
"contactsSettings_evictDiscoveredContactsTitle": "清除已发现的联系人",
|
||||
"contactsSettings_evictDiscoveredContactsSubtitle": "启用后,当已发现联系人列表达到 {limit} 条的上限时,应用会移除最旧的已发现联系人。",
|
||||
"common_deleteAll": "删除全部",
|
||||
"discoveredContacts_deleteContactAllContent": "您确定要删除所有发现的联系人吗?",
|
||||
"discoveredContacts_deleteContactAll": "删除所有发现的联系人",
|
||||
@@ -2915,6 +2918,13 @@
|
||||
}
|
||||
},
|
||||
"messageStatus_hopsNotReached": "已发送,但只有 {hops} 个中继器(共 {required} 个)回传。它可能已经到达你的无线电收不到的范围之外。",
|
||||
"@contactsSettings_evictDiscoveredContactsSubtitle": {
|
||||
"placeholders": {
|
||||
"limit": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@messageStatus_hopsNotReached": {
|
||||
"placeholders": {
|
||||
"hops": {
|
||||
@@ -3091,5 +3101,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"receivedImage_saveFailed": "无法保存图片"
|
||||
"receivedImage_saveFailed": "无法保存图片",
|
||||
"reviewMode_dialogTitle": "进入审核模式?",
|
||||
"reviewMode_dialogBody": "审核模式会连接到模拟设备,其中包含示例联系人、频道和消息。无需真实设备。",
|
||||
"reviewMode_confirm": "进入",
|
||||
"reviewMode_cancel": "取消",
|
||||
"reviewMode_banner": "审核模式 — 模拟数据",
|
||||
"reviewMode_sendTest": "发送测试消息",
|
||||
"reviewMode_testSent": "测试消息即将送达。",
|
||||
"reviewMode_exit": "退出",
|
||||
"reviewMode_connectFailed": "无法启动审核模式:{error}"
|
||||
}
|
||||
+18
-5
@@ -7,6 +7,7 @@ import 'package:flutter/services.dart';
|
||||
import 'l10n/app_localizations.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import 'review_mode/review_mode_storage.dart';
|
||||
import 'screens/chrome_required_screen.dart';
|
||||
import 'utils/platform_info.dart';
|
||||
|
||||
@@ -48,6 +49,13 @@ void main() async {
|
||||
debugPrint = (String? message, {int? wrapWidth}) {};
|
||||
}
|
||||
|
||||
// Android 15+ forces edge-to-edge for apps targeting SDK 35; opt Android
|
||||
// 10-14 in too so they lay out the same way under the bars. Flutter ignores
|
||||
// this mode before Android 10, where the old layout remains.
|
||||
if (PlatformInfo.isAndroid) {
|
||||
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
||||
}
|
||||
|
||||
// Initialize SharedPreferences cache
|
||||
await PrefsManager.initialize();
|
||||
|
||||
@@ -73,6 +81,8 @@ void main() async {
|
||||
// `appSettingsService.settings`, so this cannot stay where it used to be
|
||||
// (after the constructions) without those two starting out wrong.
|
||||
await appSettingsService.loadSettings();
|
||||
// Undo a review-mode session the app was killed in before it could exit.
|
||||
await endReviewModeSession(appSettingsService);
|
||||
|
||||
// ---- image messages (AEIC over GRP_DATA) --------------------------------
|
||||
// The codec owns the ONNX decoder; the store owns received-image state and
|
||||
@@ -458,19 +468,22 @@ class _MeshCoreAppState extends State<MeshCoreApp> with WidgetsBindingObserver {
|
||||
|
||||
SystemUiOverlayStyle _systemUiOverlayStyle(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
final colorScheme = theme.colorScheme;
|
||||
final isDark = theme.brightness == Brightness.dark;
|
||||
final iconBrightness = isDark ? Brightness.light : Brightness.dark;
|
||||
|
||||
// Keep Android system bars aligned with the resolved Flutter theme.
|
||||
// The app draws edge-to-edge, so both system bars stay transparent and
|
||||
// their icon brightness follows the resolved Flutter theme. Contrast
|
||||
// enforcement keeps a scrim behind three-button navigation in case a
|
||||
// route paints a dark surface under light-theme icons; dark full-screen
|
||||
// routes also set light icons themselves.
|
||||
return SystemUiOverlayStyle(
|
||||
statusBarColor: Colors.transparent,
|
||||
statusBarIconBrightness: iconBrightness,
|
||||
statusBarBrightness: isDark ? Brightness.dark : Brightness.light,
|
||||
systemNavigationBarColor: colorScheme.surface,
|
||||
systemNavigationBarColor: Colors.transparent,
|
||||
systemNavigationBarIconBrightness: iconBrightness,
|
||||
systemNavigationBarDividerColor: colorScheme.surface,
|
||||
systemNavigationBarContrastEnforced: false,
|
||||
systemNavigationBarDividerColor: Colors.transparent,
|
||||
systemNavigationBarContrastEnforced: true,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -120,6 +120,7 @@ class AppSettings {
|
||||
final UnitSystem unitSystem;
|
||||
final Set<String> mutedChannels;
|
||||
final bool mapShowDiscoveryContacts;
|
||||
final bool evictDiscoveredContactsEnabled;
|
||||
final String tcpServerAddress;
|
||||
final int tcpServerPort;
|
||||
final bool jumpToOldestUnread;
|
||||
@@ -226,6 +227,7 @@ class AppSettings {
|
||||
this.unitSystem = UnitSystem.metric,
|
||||
Set<String>? mutedChannels,
|
||||
this.mapShowDiscoveryContacts = true,
|
||||
this.evictDiscoveredContactsEnabled = true,
|
||||
this.tcpServerAddress = '',
|
||||
this.tcpServerPort = 0,
|
||||
this.jumpToOldestUnread = false,
|
||||
@@ -305,6 +307,7 @@ class AppSettings {
|
||||
'unit_system': unitSystem.value,
|
||||
'muted_channels': mutedChannels.toList(),
|
||||
'map_show_discovery_contacts': mapShowDiscoveryContacts,
|
||||
'evict_discovered_contacts_enabled': evictDiscoveredContactsEnabled,
|
||||
'tcp_server_address': tcpServerAddress,
|
||||
'tcp_server_port': tcpServerPort,
|
||||
'jump_to_oldest_unread': jumpToOldestUnread,
|
||||
@@ -407,6 +410,8 @@ class AppSettings {
|
||||
{},
|
||||
mapShowDiscoveryContacts:
|
||||
json['map_show_discovery_contacts'] as bool? ?? true,
|
||||
evictDiscoveredContactsEnabled:
|
||||
json['evict_discovered_contacts_enabled'] as bool? ?? true,
|
||||
tcpServerAddress: json['tcp_server_address'] as String? ?? '',
|
||||
tcpServerPort: json['tcp_server_port'] as int? ?? 0,
|
||||
jumpToOldestUnread: json['jump_to_oldest_unread'] as bool? ?? false,
|
||||
@@ -524,6 +529,7 @@ class AppSettings {
|
||||
UnitSystem? unitSystem,
|
||||
Set<String>? mutedChannels,
|
||||
bool? mapShowDiscoveryContacts,
|
||||
bool? evictDiscoveredContactsEnabled,
|
||||
String? tcpServerAddress,
|
||||
int? tcpServerPort,
|
||||
bool? jumpToOldestUnread,
|
||||
@@ -604,6 +610,8 @@ class AppSettings {
|
||||
mutedChannels: mutedChannels ?? this.mutedChannels,
|
||||
mapShowDiscoveryContacts:
|
||||
mapShowDiscoveryContacts ?? this.mapShowDiscoveryContacts,
|
||||
evictDiscoveredContactsEnabled:
|
||||
evictDiscoveredContactsEnabled ?? this.evictDiscoveredContactsEnabled,
|
||||
tcpServerAddress: tcpServerAddress ?? this.tcpServerAddress,
|
||||
tcpServerPort: tcpServerPort ?? this.tcpServerPort,
|
||||
jumpToOldestUnread: jumpToOldestUnread ?? this.jumpToOldestUnread,
|
||||
|
||||
@@ -0,0 +1,289 @@
|
||||
import 'dart:typed_data';
|
||||
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
|
||||
/// Pure builders for the radio-to-app companion frames the connector parses.
|
||||
class ReviewFrames {
|
||||
ReviewFrames._();
|
||||
|
||||
/// ERR_CODE_NOT_FOUND in the companion firmware.
|
||||
static const int errNotFound = 2;
|
||||
static const int errUnsupported = 1;
|
||||
|
||||
static Uint8List ok() => Uint8List.fromList([respCodeOk]);
|
||||
|
||||
static Uint8List err([int code = errUnsupported]) =>
|
||||
Uint8List.fromList([respCodeErr, code]);
|
||||
|
||||
static Uint8List selfInfo({
|
||||
required Uint8List publicKey,
|
||||
required String name,
|
||||
required int latitudeE6,
|
||||
required int longitudeE6,
|
||||
required int frequencyHz,
|
||||
required int bandwidthHz,
|
||||
required int spreadingFactor,
|
||||
required int codingRate,
|
||||
required int txPowerDbm,
|
||||
required int maxTxPowerDbm,
|
||||
}) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeSelfInfo);
|
||||
writer.writeByte(advTypeChat);
|
||||
writer.writeByte(txPowerDbm);
|
||||
writer.writeByte(maxTxPowerDbm);
|
||||
writer.writeBytes(publicKey);
|
||||
writer.writeInt32LE(latitudeE6);
|
||||
writer.writeInt32LE(longitudeE6);
|
||||
writer.writeByte(0); // multi_acks
|
||||
writer.writeByte(0); // advert_loc_policy
|
||||
writer.writeByte(0); // telemetry modes
|
||||
writer.writeByte(
|
||||
1,
|
||||
); // manual_add_contacts: 1 = auto-add controlled by flags
|
||||
writer.writeUInt32LE(frequencyHz);
|
||||
writer.writeUInt32LE(bandwidthHz);
|
||||
writer.writeByte(spreadingFactor);
|
||||
writer.writeByte(codingRate);
|
||||
writer.writeString(name);
|
||||
writer.writeByte(0);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
static Uint8List deviceInfo({
|
||||
required int firmwareVerCode,
|
||||
required int maxContacts,
|
||||
required int maxChannels,
|
||||
String manufacturer = 'MeshCore Open Review',
|
||||
String version = 'review',
|
||||
bool clientRepeat = false,
|
||||
int pathHashMode = 0,
|
||||
}) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeDeviceInfo);
|
||||
writer.writeByte(firmwareVerCode);
|
||||
writer.writeByte(maxContacts ~/ 2);
|
||||
writer.writeByte(maxChannels);
|
||||
writer.writeUInt32LE(0); // ble pin, bytes 4..7
|
||||
writer.writeCString('', 12); // build date, bytes 8..19
|
||||
writer.writeCString(manufacturer, 40); // bytes 20..59
|
||||
writer.writeCString(version, 20); // bytes 60..79
|
||||
writer.writeByte(clientRepeat ? 1 : 0); // byte 80
|
||||
writer.writeByte(pathHashMode); // byte 81
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
static Uint8List contactsStart(int count) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeContactsStart);
|
||||
writer.writeUInt32LE(count);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
static Uint8List contact({
|
||||
required Uint8List publicKey,
|
||||
required int type,
|
||||
required Uint8List path,
|
||||
required String name,
|
||||
required int lastAdvertSecs,
|
||||
required int latitudeE6,
|
||||
required int longitudeE6,
|
||||
required int lastModSecs,
|
||||
int flags = 0,
|
||||
}) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeContact);
|
||||
writer.writeBytes(publicKey);
|
||||
writer.writeByte(type);
|
||||
writer.writeByte(flags);
|
||||
writer.writeByte(path.length); // one-byte hashes: hop count == byte count
|
||||
writer.writeBytesPadded(path, maxPathSize);
|
||||
writer.writeCString(name, maxNameSize);
|
||||
writer.writeUInt32LE(lastAdvertSecs);
|
||||
writer.writeInt32LE(latitudeE6);
|
||||
writer.writeInt32LE(longitudeE6);
|
||||
writer.writeUInt32LE(lastModSecs);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
static Uint8List endOfContacts(int mostRecentLastModSecs) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeEndOfContacts);
|
||||
writer.writeUInt32LE(mostRecentLastModSecs);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
static Uint8List channelInfo({
|
||||
required int index,
|
||||
required String name,
|
||||
required Uint8List psk,
|
||||
}) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeChannelInfo);
|
||||
writer.writeByte(index);
|
||||
writer.writeCString(name, 32);
|
||||
writer.writeBytesPadded(psk, 16);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
static Uint8List contactMessage({
|
||||
required Uint8List senderPublicKey,
|
||||
required String text,
|
||||
required int timestampSecs,
|
||||
int pathLen = 0xFF,
|
||||
int snrQuarterDb = 24,
|
||||
}) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeContactMsgRecvV3);
|
||||
writer.writeByte(snrQuarterDb & 0xFF);
|
||||
writer.writeByte(0);
|
||||
writer.writeByte(0);
|
||||
writer.writeBytes(Uint8List.fromList(senderPublicKey.sublist(0, 6)));
|
||||
writer.writeByte(pathLen);
|
||||
writer.writeByte(txtTypePlain);
|
||||
writer.writeUInt32LE(timestampSecs);
|
||||
writer.writeString(text);
|
||||
writer.writeByte(0);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
/// The on-air text is `sender: message`.
|
||||
static Uint8List channelMessage({
|
||||
required int channelIndex,
|
||||
required String sender,
|
||||
required String message,
|
||||
required int timestampSecs,
|
||||
Uint8List? path,
|
||||
int snrQuarterDb = 24,
|
||||
}) {
|
||||
final hasPath = path != null && path.isNotEmpty;
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeChannelMsgRecvV3);
|
||||
writer.writeByte(snrQuarterDb & 0xFF);
|
||||
writer.writeByte(hasPath ? 1 : 0);
|
||||
writer.writeByte(0);
|
||||
writer.writeByte(channelIndex);
|
||||
writer.writeByte(hasPath ? path.length : 0xFF);
|
||||
if (hasPath) writer.writeBytes(path);
|
||||
writer.writeByte(txtTypePlain);
|
||||
writer.writeUInt32LE(timestampSecs);
|
||||
writer.writeString('$sender: $message');
|
||||
writer.writeByte(0);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
static Uint8List sent({
|
||||
required bool flood,
|
||||
required int ackHash,
|
||||
required int timeoutMs,
|
||||
}) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeSent);
|
||||
writer.writeByte(flood ? 1 : 0);
|
||||
writer.writeUInt32LE(ackHash);
|
||||
writer.writeUInt32LE(timeoutMs);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
static Uint8List sendConfirmed({
|
||||
required int ackHash,
|
||||
required int tripTimeMs,
|
||||
}) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(pushCodeSendConfirmed);
|
||||
writer.writeUInt32LE(ackHash);
|
||||
writer.writeUInt32LE(tripTimeMs);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
/// [code][permissions][pub_key_prefix x6][server_time x4][acl][fw_level].
|
||||
static Uint8List loginSuccess({
|
||||
required Uint8List publicKey,
|
||||
required int serverTimeSecs,
|
||||
int permissions = 0,
|
||||
}) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(pushCodeLoginSuccess);
|
||||
writer.writeByte(permissions);
|
||||
writer.writeBytes(Uint8List.fromList(publicKey.sublist(0, 6)));
|
||||
writer.writeUInt32LE(serverTimeSecs);
|
||||
writer.writeByte(0); // ACL permissions
|
||||
writer.writeByte(0); // firmware version level
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
/// [code][reserved][pub_key_prefix x6].
|
||||
static Uint8List loginFail({required Uint8List publicKey}) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(pushCodeLoginFail);
|
||||
writer.writeByte(0);
|
||||
writer.writeBytes(Uint8List.fromList(publicKey.sublist(0, 6)));
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
static Uint8List msgWaiting() => Uint8List.fromList([pushCodeMsgWaiting]);
|
||||
|
||||
static Uint8List noMoreMessages() =>
|
||||
Uint8List.fromList([respCodeNoMoreMessages]);
|
||||
|
||||
static Uint8List battAndStorage({
|
||||
required int millivolts,
|
||||
required int usedKb,
|
||||
required int totalKb,
|
||||
}) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeBattAndStorage);
|
||||
writer.writeUInt16LE(millivolts);
|
||||
writer.writeUInt32LE(usedKb);
|
||||
writer.writeUInt32LE(totalKb);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
static Uint8List currTime(int epochSecs) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeCurrTime);
|
||||
writer.writeUInt32LE(epochSecs);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
/// [vars] is the comma separated "key:value" list the connector parses.
|
||||
static Uint8List customVars(String vars) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeCustomVars);
|
||||
writer.writeString(vars);
|
||||
writer.writeByte(0);
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
static Uint8List autoAddConfig({required int flags, int maxHops = 0}) =>
|
||||
Uint8List.fromList([respCodeAutoAddConfig, flags, maxHops]);
|
||||
|
||||
static Uint8List allowedRepeatFreq(List<RepeatFreqRange> ranges) {
|
||||
final writer = BufferWriter();
|
||||
writer.writeByte(respCodeAllowedRepeatFreq);
|
||||
for (final range in ranges) {
|
||||
writer.writeUInt32LE(range.lowKHz);
|
||||
writer.writeUInt32LE(range.highKHz);
|
||||
}
|
||||
return writer.toBytes();
|
||||
}
|
||||
|
||||
/// STATS_TYPE_RADIO: [24][1][noise i16][rssi i8][snr*4 i8][tx u32][rx u32].
|
||||
static Uint8List radioStats({
|
||||
required int noiseFloorDbm,
|
||||
required int lastRssiDbm,
|
||||
required int lastSnrQuarterDb,
|
||||
required int txAirSecs,
|
||||
required int rxAirSecs,
|
||||
}) {
|
||||
final data = ByteData(14);
|
||||
data.setUint8(0, respCodeStats);
|
||||
data.setUint8(1, statsTypeRadio);
|
||||
data.setInt16(2, noiseFloorDbm, Endian.little);
|
||||
data.setInt8(4, lastRssiDbm);
|
||||
data.setInt8(5, lastSnrQuarterDb);
|
||||
data.setUint32(6, txAirSecs, Endian.little);
|
||||
data.setUint32(10, rxAirSecs, Endian.little);
|
||||
return data.buffer.asUint8List();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../screens/channels_screen.dart';
|
||||
|
||||
export 'review_mode_banner.dart';
|
||||
export 'review_mode_entry.dart';
|
||||
|
||||
/// Asks for confirmation, connects to the simulated radio and opens the app.
|
||||
Future<void> enterReviewMode(BuildContext context) async {
|
||||
final navigator = Navigator.of(context);
|
||||
final messenger = ScaffoldMessenger.of(context);
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
final l10n = context.l10n;
|
||||
|
||||
final confirmed = await showDialog<bool>(
|
||||
context: context,
|
||||
builder: (dialogContext) => AlertDialog(
|
||||
title: Text(dialogContext.l10n.reviewMode_dialogTitle),
|
||||
content: Text(dialogContext.l10n.reviewMode_dialogBody),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.of(dialogContext).pop(false),
|
||||
child: Text(dialogContext.l10n.reviewMode_cancel),
|
||||
),
|
||||
FilledButton(
|
||||
onPressed: () => Navigator.of(dialogContext).pop(true),
|
||||
child: Text(dialogContext.l10n.reviewMode_confirm),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
if (confirmed != true || !navigator.mounted) return;
|
||||
|
||||
// Progress dialog on the root navigator while connecting.
|
||||
showDialog<void>(
|
||||
context: navigator.context,
|
||||
barrierDismissible: false,
|
||||
builder: (_) => const PopScope(
|
||||
canPop: false,
|
||||
child: Center(child: CircularProgressIndicator()),
|
||||
),
|
||||
);
|
||||
|
||||
Object? error;
|
||||
try {
|
||||
await connector.connectReview();
|
||||
} catch (e) {
|
||||
error = e;
|
||||
}
|
||||
|
||||
if (!navigator.mounted) return;
|
||||
navigator.pop(); // progress dialog
|
||||
|
||||
if (error != null) {
|
||||
messenger.showSnackBar(
|
||||
SnackBar(content: Text(l10n.reviewMode_connectFailed(error.toString()))),
|
||||
);
|
||||
return;
|
||||
}
|
||||
// The connect may have been ignored (another connection was in progress)
|
||||
// or cancelled by a disconnect while it was running.
|
||||
if (!connector.isReviewMode || !connector.isConnected) return;
|
||||
|
||||
navigator.push(MaterialPageRoute(builder: (_) => const ChannelsScreen()));
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../connector/meshcore_connector.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
|
||||
/// Strip shown on top of main screens while the simulated radio is active.
|
||||
class ReviewModeBanner extends StatelessWidget {
|
||||
const ReviewModeBanner({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final connector = context.watch<MeshCoreConnector>();
|
||||
if (!connector.isReviewMode) return const SizedBox.shrink();
|
||||
|
||||
final l10n = context.l10n;
|
||||
const textStyle = TextStyle(
|
||||
color: MeshPalette.ink,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w700,
|
||||
);
|
||||
final buttonStyle = TextButton.styleFrom(
|
||||
foregroundColor: MeshPalette.warn,
|
||||
textStyle: const TextStyle(fontSize: 16, fontWeight: FontWeight.w700),
|
||||
minimumSize: const Size(48, 48),
|
||||
);
|
||||
|
||||
return Container(
|
||||
width: double.infinity,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
|
||||
decoration: const BoxDecoration(
|
||||
color: MeshPalette.bg3,
|
||||
border: Border(bottom: BorderSide(color: MeshPalette.warnLine)),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
const Icon(Icons.science, color: MeshPalette.warn, size: 24),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(child: Text(l10n.reviewMode_banner, style: textStyle)),
|
||||
],
|
||||
),
|
||||
Wrap(
|
||||
spacing: 8,
|
||||
children: [
|
||||
TextButton(
|
||||
style: buttonStyle,
|
||||
onPressed: () {
|
||||
connector.sendReviewTestMessage();
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(content: Text(l10n.reviewMode_testSent)),
|
||||
);
|
||||
},
|
||||
child: Text(l10n.reviewMode_sendTest),
|
||||
),
|
||||
TextButton(
|
||||
style: buttonStyle,
|
||||
// The screens hosting the banner return to the Connect screen
|
||||
// themselves once disconnected.
|
||||
onPressed: () => connector.disconnect(manual: true),
|
||||
child: Text(l10n.reviewMode_exit),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'review_mode.dart';
|
||||
|
||||
/// Hidden entry point: long-pressing [child] offers to enter review mode.
|
||||
class ReviewModeLongPress extends StatelessWidget {
|
||||
final Widget child;
|
||||
|
||||
const ReviewModeLongPress({super.key, required this.child});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onLongPress: () => enterReviewMode(context),
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
import '../services/app_settings_service.dart';
|
||||
import '../storage/legacy_key_migration.dart';
|
||||
import '../storage/prefs_manager.dart';
|
||||
import 'review_radio.dart';
|
||||
|
||||
/// Muted channel names as they were when review mode started. Persisted so an
|
||||
/// interrupted session (crash, app killed) is still undone on the next launch.
|
||||
const _savedMutedChannelsKey = 'review_mode_saved_muted_channels';
|
||||
|
||||
/// Deletes every persisted per-radio preference written while review mode was
|
||||
/// active. All per-radio stores (contacts, channels, messages, unread counts,
|
||||
/// channel/contact settings, regions, discovery cache, path history, ...) embed
|
||||
/// the first 10 hex characters of the radio's public key in their key, so the
|
||||
/// simulated radio's fixed prefix identifies exactly its data and nothing else.
|
||||
Future<void> clearReviewModeData() async {
|
||||
final prefs = PrefsManager.instance;
|
||||
final prefix = ReviewRadio.storagePrefix;
|
||||
final keys = prefs.getKeys().where((key) => key.contains(prefix)).toList();
|
||||
for (final key in keys) {
|
||||
await prefs.remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
/// Starts a review session from a clean slate.
|
||||
///
|
||||
/// The simulated radio's scope never adopts legacy unscoped keys, so real
|
||||
/// radio data cannot be pulled into it. Channel mutes are app-wide and keyed
|
||||
/// by channel name (muting the simulated "Public" would mute the real one),
|
||||
/// so the current mutes are saved for [endReviewModeSession] to put back.
|
||||
Future<void> beginReviewModeSession(AppSettingsService? settings) async {
|
||||
scopesWithoutLegacyMigration.add(ReviewRadio.storagePrefix);
|
||||
await clearReviewModeData();
|
||||
final prefs = PrefsManager.instance;
|
||||
// An earlier interrupted session's record holds the real pre-review state.
|
||||
if (settings != null && !prefs.containsKey(_savedMutedChannelsKey)) {
|
||||
await prefs.setStringList(
|
||||
_savedMutedChannelsKey,
|
||||
settings.settings.mutedChannels.toList(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Deletes the review session's data and restores the channel mutes saved by
|
||||
/// [beginReviewModeSession]. Also called at startup to finish a session that
|
||||
/// was interrupted; it does nothing when no session was left behind.
|
||||
Future<void> endReviewModeSession(AppSettingsService? settings) async {
|
||||
await clearReviewModeData();
|
||||
final prefs = PrefsManager.instance;
|
||||
final savedMutes = prefs.getStringList(_savedMutedChannelsKey);
|
||||
if (savedMutes == null || settings == null) return;
|
||||
await settings.updateSettings(
|
||||
settings.settings.copyWith(mutedChannels: savedMutes.toSet()),
|
||||
);
|
||||
await prefs.remove(_savedMutedChannelsKey);
|
||||
}
|
||||
@@ -0,0 +1,624 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
import '../connector/pending_command_replies.dart';
|
||||
import '../services/message_retry_service.dart';
|
||||
import 'review_frames.dart';
|
||||
import 'review_script.dart';
|
||||
|
||||
/// A simulated MeshCore radio that speaks the companion binary protocol.
|
||||
class ReviewRadio {
|
||||
ReviewRadio({
|
||||
this.scheduledMessageInterval = const Duration(seconds: 45),
|
||||
this.ackDelay = const Duration(milliseconds: 1500),
|
||||
this.replyDelay = const Duration(seconds: 4),
|
||||
}) {
|
||||
_seedState();
|
||||
}
|
||||
|
||||
/// 64 lowercase hex chars, fixed and obviously fake.
|
||||
static const String selfPublicKeyHex =
|
||||
'ee5e04b332b386b6cce8355ccf27fffd3a98b7a7a5b9b3a550c039c6ebae38e4';
|
||||
|
||||
/// First 10 hex chars of [selfPublicKeyHex], the per-radio storage scope.
|
||||
static String get storagePrefix => selfPublicKeyHex.substring(0, 10);
|
||||
|
||||
final Duration scheduledMessageInterval;
|
||||
final Duration ackDelay;
|
||||
final Duration replyDelay;
|
||||
|
||||
final StreamController<Uint8List> _controller =
|
||||
StreamController<Uint8List>.broadcast();
|
||||
final List<Uint8List> _outbox = [];
|
||||
final Set<Timer> _timers = {};
|
||||
final List<Uint8List> _messageQueue = [];
|
||||
final List<_Contact> _contacts = [];
|
||||
final Map<int, _Channel> _channels = {};
|
||||
final Uint8List _selfKey = hexToPubKey(selfPublicKeyHex);
|
||||
|
||||
Timer? _flushTimer;
|
||||
Timer? _scheduledTimer;
|
||||
bool _disposed = false;
|
||||
bool _nextScheduledIsDirect = true;
|
||||
int _directPoolIndex = 0;
|
||||
int _channelPoolIndex = 0;
|
||||
int _directReplyIndex = 0;
|
||||
int _channelReplyIndex = 0;
|
||||
|
||||
String _name = ReviewScript.selfName;
|
||||
int _latitudeE6 = ReviewScript.selfLatitudeE6;
|
||||
int _longitudeE6 = ReviewScript.selfLongitudeE6;
|
||||
int _frequencyHz = ReviewScript.frequencyHz;
|
||||
int _bandwidthHz = ReviewScript.bandwidthHz;
|
||||
int _spreadingFactor = ReviewScript.spreadingFactor;
|
||||
int _codingRate = ReviewScript.codingRate;
|
||||
int _txPowerDbm = ReviewScript.txPowerDbm;
|
||||
int _autoAddFlags =
|
||||
autoAddChatFlag | autoAddRepeaterFlag | autoAddRoomServerFlag;
|
||||
int _timeOffsetSecs = 0;
|
||||
|
||||
/// Frames radio to app. Each event is one complete companion frame.
|
||||
Stream<Uint8List> get frames => _controller.stream;
|
||||
|
||||
int get _nowSecs =>
|
||||
DateTime.now().millisecondsSinceEpoch ~/ 1000 + _timeOffsetSecs;
|
||||
|
||||
void _seedState() {
|
||||
final now = _nowSecs;
|
||||
for (final c in ReviewScript.contacts) {
|
||||
_contacts.add(
|
||||
_Contact(
|
||||
publicKey: hexToPubKey(c.publicKeyHex),
|
||||
type: c.type,
|
||||
path: c.pathHex.isEmpty ? Uint8List(0) : hex2Uint8List(c.pathHex),
|
||||
name: c.name,
|
||||
lastAdvertSecs: now - c.lastAdvertAgoSecs,
|
||||
latitudeE6: (c.latitude * 1e6).round(),
|
||||
longitudeE6: (c.longitude * 1e6).round(),
|
||||
lastModSecs: now,
|
||||
),
|
||||
);
|
||||
}
|
||||
for (final c in ReviewScript.channels) {
|
||||
_channels[c.index] = _Channel(c.name, hex2Uint8List(c.pskHex));
|
||||
}
|
||||
|
||||
final history = <_SeedEntry>[
|
||||
for (final m in ReviewScript.seedDirectMessages)
|
||||
_SeedEntry(
|
||||
m.agoSecs,
|
||||
ReviewFrames.contactMessage(
|
||||
senderPublicKey: _contacts[m.contactIndex].publicKey,
|
||||
text: m.text,
|
||||
timestampSecs: now - m.agoSecs,
|
||||
pathLen: ReviewScript.contacts[m.contactIndex].hopCount,
|
||||
),
|
||||
),
|
||||
for (final m in ReviewScript.seedChannelMessages)
|
||||
_SeedEntry(
|
||||
m.agoSecs,
|
||||
ReviewFrames.channelMessage(
|
||||
channelIndex: m.channelIndex,
|
||||
sender: m.sender,
|
||||
message: m.text,
|
||||
timestampSecs: now - m.agoSecs,
|
||||
path: _pathForSender(m.sender),
|
||||
),
|
||||
),
|
||||
]..sort((a, b) => b.agoSecs.compareTo(a.agoSecs));
|
||||
for (final entry in history) {
|
||||
_messageQueue.add(entry.frame);
|
||||
}
|
||||
}
|
||||
|
||||
Uint8List? _pathForSender(String sender) {
|
||||
for (final c in _contacts) {
|
||||
if (c.name == sender && c.path.isNotEmpty) return c.path;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Starts the scheduled incoming-message timer.
|
||||
void start() {
|
||||
if (_disposed || _scheduledTimer != null) return;
|
||||
_scheduledTimer = Timer.periodic(scheduledMessageInterval, (_) {
|
||||
_enqueueScheduledMessage();
|
||||
});
|
||||
}
|
||||
|
||||
/// Immediately queues one incoming message and pushes MSG_WAITING.
|
||||
void sendTestMessage() {
|
||||
if (_disposed) return;
|
||||
_enqueueScheduledMessage();
|
||||
}
|
||||
|
||||
void _enqueueScheduledMessage() {
|
||||
if (_disposed) return;
|
||||
final now = _nowSecs;
|
||||
if (_nextScheduledIsDirect) {
|
||||
final pool = ReviewScript.incomingDirectPool;
|
||||
final line = pool[_directPoolIndex++ % pool.length];
|
||||
_messageQueue.add(
|
||||
ReviewFrames.contactMessage(
|
||||
senderPublicKey: _contacts[line.contactIndex].publicKey,
|
||||
text: line.text,
|
||||
timestampSecs: now,
|
||||
pathLen: ReviewScript.contacts[line.contactIndex].hopCount,
|
||||
),
|
||||
);
|
||||
} else {
|
||||
final pool = ReviewScript.incomingChannelPool;
|
||||
final line = pool[_channelPoolIndex++ % pool.length];
|
||||
_messageQueue.add(
|
||||
ReviewFrames.channelMessage(
|
||||
channelIndex: line.channelIndex,
|
||||
sender: line.sender,
|
||||
message: line.text,
|
||||
timestampSecs: now,
|
||||
path: _pathForSender(line.sender),
|
||||
),
|
||||
);
|
||||
}
|
||||
_nextScheduledIsDirect = !_nextScheduledIsDirect;
|
||||
_emit([ReviewFrames.msgWaiting()]);
|
||||
}
|
||||
|
||||
/// Frame app to radio. Responses are emitted asynchronously.
|
||||
void handle(Uint8List frame) {
|
||||
if (_disposed || frame.isEmpty) return;
|
||||
final code = frame[0];
|
||||
switch (code) {
|
||||
case cmdDeviceQuery:
|
||||
_emit([
|
||||
ReviewFrames.deviceInfo(
|
||||
firmwareVerCode: ReviewScript.firmwareVerCode,
|
||||
maxContacts: ReviewScript.maxContacts,
|
||||
maxChannels: ReviewScript.maxChannels,
|
||||
),
|
||||
]);
|
||||
break;
|
||||
case cmdAppStart:
|
||||
_emit([_selfInfoFrame()]);
|
||||
break;
|
||||
case cmdGetContacts:
|
||||
_handleGetContacts(frame);
|
||||
break;
|
||||
case cmdGetContactByKey:
|
||||
_handleGetContactByKey(frame);
|
||||
break;
|
||||
case cmdGetChannel:
|
||||
_handleGetChannel(frame);
|
||||
break;
|
||||
case cmdSetChannel:
|
||||
_handleSetChannel(frame);
|
||||
break;
|
||||
case cmdSyncNextMessage:
|
||||
_emit([
|
||||
_messageQueue.isEmpty
|
||||
? ReviewFrames.noMoreMessages()
|
||||
: _messageQueue.removeAt(0),
|
||||
]);
|
||||
break;
|
||||
case cmdSendTxtMsg:
|
||||
_handleSendText(frame);
|
||||
break;
|
||||
case cmdSendChannelTxtMsg:
|
||||
_handleSendChannelText(frame);
|
||||
break;
|
||||
case cmdGetBattAndStorage:
|
||||
_emit([
|
||||
ReviewFrames.battAndStorage(
|
||||
millivolts: 3980,
|
||||
usedKb: 412,
|
||||
totalKb: 1792,
|
||||
),
|
||||
]);
|
||||
break;
|
||||
case cmdGetDeviceTime:
|
||||
_emit([ReviewFrames.currTime(_nowSecs)]);
|
||||
break;
|
||||
case cmdSetDeviceTime:
|
||||
if (frame.length >= 5) {
|
||||
_timeOffsetSecs =
|
||||
readUint32LE(frame, 1) -
|
||||
DateTime.now().millisecondsSinceEpoch ~/ 1000;
|
||||
}
|
||||
_emit([ReviewFrames.ok()]);
|
||||
break;
|
||||
case cmdGetCustomVar:
|
||||
_emit([ReviewFrames.customVars('gps:0')]);
|
||||
break;
|
||||
case cmdGetAutoAddConfig:
|
||||
_emit([ReviewFrames.autoAddConfig(flags: _autoAddFlags)]);
|
||||
break;
|
||||
case cmdSetAutoAddConfig:
|
||||
if (frame.length >= 2) _autoAddFlags = frame[1];
|
||||
_emit([ReviewFrames.ok()]);
|
||||
break;
|
||||
case cmdGetAllowedRepeatFreq:
|
||||
_emit([
|
||||
ReviewFrames.allowedRepeatFreq(const [
|
||||
(lowKHz: 433000, highKHz: 433000),
|
||||
(lowKHz: 869000, highKHz: 869000),
|
||||
(lowKHz: 918000, highKHz: 918000),
|
||||
]),
|
||||
]);
|
||||
break;
|
||||
case cmdGetStats:
|
||||
_emit([
|
||||
frame.length >= 2 && frame[1] == statsTypeRadio
|
||||
? ReviewFrames.radioStats(
|
||||
noiseFloorDbm: -112,
|
||||
lastRssiDbm: -78,
|
||||
lastSnrQuarterDb: 28,
|
||||
txAirSecs: 12,
|
||||
rxAirSecs: 48,
|
||||
)
|
||||
: ReviewFrames.err(),
|
||||
]);
|
||||
break;
|
||||
case cmdSetAdvertName:
|
||||
_name = _readCString(frame, 1, maxNameSize - 1);
|
||||
_emit([ReviewFrames.ok()]);
|
||||
break;
|
||||
case cmdSetAdvertLatLon:
|
||||
if (frame.length >= 9) {
|
||||
_latitudeE6 = readInt32LE(frame, 1);
|
||||
_longitudeE6 = readInt32LE(frame, 5);
|
||||
}
|
||||
_emit([ReviewFrames.ok()]);
|
||||
break;
|
||||
case cmdSetRadioParams:
|
||||
if (frame.length >= 11) {
|
||||
_frequencyHz = readUint32LE(frame, 1);
|
||||
_bandwidthHz = readUint32LE(frame, 5);
|
||||
_spreadingFactor = frame[9];
|
||||
_codingRate = frame[10];
|
||||
}
|
||||
_emit([ReviewFrames.ok()]);
|
||||
break;
|
||||
case cmdSetRadioTxPower:
|
||||
if (frame.length >= 2) _txPowerDbm = frame[1];
|
||||
_emit([ReviewFrames.ok()]);
|
||||
break;
|
||||
case cmdRemoveContact:
|
||||
if (frame.length >= 1 + pubKeySize) {
|
||||
final key = frame.sublist(1, 1 + pubKeySize);
|
||||
_contacts.removeWhere((c) => listEquals(c.publicKey, key));
|
||||
}
|
||||
_emit([ReviewFrames.ok()]);
|
||||
break;
|
||||
case cmdSendLogin:
|
||||
_handleLogin(frame);
|
||||
break;
|
||||
case cmdSendStatusReq:
|
||||
case cmdSendTracePath:
|
||||
case cmdSendBinaryReq:
|
||||
case cmdSendAnonReq:
|
||||
_emit([ReviewFrames.err()]);
|
||||
break;
|
||||
case cmdSendTelemetryReq:
|
||||
// The 4-byte "self" form is answered with a push the app does not
|
||||
// track; remote requests are answered with ERR.
|
||||
if (frame.length > 4) _emit([ReviewFrames.err()]);
|
||||
break;
|
||||
default:
|
||||
// Setters, advert, reset path, flood scope, import/export and any
|
||||
// other command the app tracks get OK; untracked ones get nothing.
|
||||
final reply = replyCodeForCommand(frame);
|
||||
if (reply == respCodeOk) {
|
||||
_emit([ReviewFrames.ok()]);
|
||||
} else if (reply != null) {
|
||||
_emit([ReviewFrames.err()]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Uint8List _selfInfoFrame() => ReviewFrames.selfInfo(
|
||||
publicKey: _selfKey,
|
||||
name: _name,
|
||||
latitudeE6: _latitudeE6,
|
||||
longitudeE6: _longitudeE6,
|
||||
frequencyHz: _frequencyHz,
|
||||
bandwidthHz: _bandwidthHz,
|
||||
spreadingFactor: _spreadingFactor,
|
||||
codingRate: _codingRate,
|
||||
txPowerDbm: _txPowerDbm,
|
||||
maxTxPowerDbm: ReviewScript.maxTxPowerDbm,
|
||||
);
|
||||
|
||||
Uint8List _contactFrame(_Contact c) => ReviewFrames.contact(
|
||||
publicKey: c.publicKey,
|
||||
type: c.type,
|
||||
path: c.path,
|
||||
name: c.name,
|
||||
lastAdvertSecs: c.lastAdvertSecs,
|
||||
latitudeE6: c.latitudeE6,
|
||||
longitudeE6: c.longitudeE6,
|
||||
lastModSecs: c.lastModSecs,
|
||||
);
|
||||
|
||||
void _handleGetContacts(Uint8List frame) {
|
||||
final since = frame.length >= 5 ? readUint32LE(frame, 1) : 0;
|
||||
final matching = _contacts.where((c) => c.lastModSecs > since).toList();
|
||||
var mostRecent = since;
|
||||
for (final c in matching) {
|
||||
if (c.lastModSecs > mostRecent) mostRecent = c.lastModSecs;
|
||||
}
|
||||
_emit([
|
||||
ReviewFrames.contactsStart(_contacts.length),
|
||||
for (final c in matching) _contactFrame(c),
|
||||
ReviewFrames.endOfContacts(mostRecent),
|
||||
]);
|
||||
}
|
||||
|
||||
void _handleGetContactByKey(Uint8List frame) {
|
||||
if (frame.length >= 1 + pubKeySize) {
|
||||
final key = frame.sublist(1, 1 + pubKeySize);
|
||||
for (final c in _contacts) {
|
||||
if (listEquals(c.publicKey, key)) {
|
||||
_emit([_contactFrame(c)]);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
_emit([ReviewFrames.err(ReviewFrames.errNotFound)]);
|
||||
}
|
||||
|
||||
void _handleGetChannel(Uint8List frame) {
|
||||
final index = frame.length >= 2 ? frame[1] : 0;
|
||||
if (index >= ReviewScript.maxChannels) {
|
||||
_emit([ReviewFrames.err(ReviewFrames.errNotFound)]);
|
||||
return;
|
||||
}
|
||||
final channel = _channels[index];
|
||||
_emit([
|
||||
ReviewFrames.channelInfo(
|
||||
index: index,
|
||||
name: channel?.name ?? '',
|
||||
psk: channel?.psk ?? Uint8List(16),
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
||||
void _handleSetChannel(Uint8List frame) {
|
||||
// [cmd][idx][name x32][psk x16]
|
||||
if (frame.length >= 50) {
|
||||
final index = frame[1];
|
||||
final name = _readCString(frame, 2, 32);
|
||||
final psk = Uint8List.fromList(frame.sublist(34, 50));
|
||||
if (name.isEmpty && psk.every((b) => b == 0)) {
|
||||
_channels.remove(index);
|
||||
} else {
|
||||
_channels[index] = _Channel(name, psk);
|
||||
}
|
||||
}
|
||||
_emit([ReviewFrames.ok()]);
|
||||
}
|
||||
|
||||
void _handleSendText(Uint8List frame) {
|
||||
// [cmd][txt_type][attempt][timestamp x4][pub_key_prefix x6][text...]\0
|
||||
if (frame.length < 13) {
|
||||
_emit([ReviewFrames.err()]);
|
||||
return;
|
||||
}
|
||||
final attempt = frame[2];
|
||||
final timestamp = readUint32LE(frame, 3);
|
||||
final prefix = frame.sublist(7, 13);
|
||||
final text = _readCString(frame, 13, frame.length - 13);
|
||||
|
||||
final contact = _contactByPrefix(prefix);
|
||||
if (contact == null) {
|
||||
_emit([ReviewFrames.err(ReviewFrames.errNotFound)]);
|
||||
return;
|
||||
}
|
||||
|
||||
final ackHash = MessageRetryService.computeExpectedAckHash(
|
||||
timestamp,
|
||||
attempt,
|
||||
text,
|
||||
_selfKey,
|
||||
);
|
||||
final tripMs = ackDelay.inMilliseconds;
|
||||
_emit([
|
||||
ReviewFrames.sent(
|
||||
// Every simulated contact has a known path; an empty one is a
|
||||
// direct neighbour, so sends are never flooded.
|
||||
flood: false,
|
||||
ackHash: ackHash,
|
||||
timeoutMs: 8000,
|
||||
),
|
||||
]);
|
||||
_later(ackDelay, () {
|
||||
_emit([ReviewFrames.sendConfirmed(ackHash: ackHash, tripTimeMs: tripMs)]);
|
||||
});
|
||||
|
||||
if (contact.type == advTypeChat || contact.type == advTypeRoom) {
|
||||
_later(ackDelay + replyDelay, () {
|
||||
final replies = ReviewScript.directReplies;
|
||||
_messageQueue.add(
|
||||
ReviewFrames.contactMessage(
|
||||
senderPublicKey: contact.publicKey,
|
||||
text: replies[_directReplyIndex++ % replies.length],
|
||||
timestampSecs: _nowSecs,
|
||||
pathLen: contact.path.length,
|
||||
),
|
||||
);
|
||||
_emit([ReviewFrames.msgWaiting()]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
void _handleLogin(Uint8List frame) {
|
||||
// [cmd][pub_key x32][password...]
|
||||
_Contact? contact;
|
||||
if (frame.length >= 1 + pubKeySize) {
|
||||
final key = frame.sublist(1, 1 + pubKeySize);
|
||||
for (final c in _contacts) {
|
||||
if (listEquals(c.publicKey, key)) contact = c;
|
||||
}
|
||||
}
|
||||
if (contact == null) {
|
||||
_emit([ReviewFrames.err(ReviewFrames.errNotFound)]);
|
||||
return;
|
||||
}
|
||||
final target = contact;
|
||||
// The firmware tags a login with the first 4 bytes of the target key.
|
||||
_emit([
|
||||
ReviewFrames.sent(
|
||||
flood: false,
|
||||
ackHash: readUint32LE(target.publicKey, 0),
|
||||
timeoutMs: 8000,
|
||||
),
|
||||
]);
|
||||
// Room servers accept any password so reviewers can open the room chat.
|
||||
// Repeater administration needs real hardware, so it fails right away
|
||||
// instead of leaving the login dialog waiting for a timeout.
|
||||
_later(ackDelay, () {
|
||||
_emit([
|
||||
target.type == advTypeRoom
|
||||
? ReviewFrames.loginSuccess(
|
||||
publicKey: target.publicKey,
|
||||
serverTimeSecs: _nowSecs,
|
||||
)
|
||||
: ReviewFrames.loginFail(publicKey: target.publicKey),
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
void _handleSendChannelText(Uint8List frame) {
|
||||
// [cmd][txt_type][channel_idx][timestamp x4][text...]\0
|
||||
if (frame.length < 8) {
|
||||
_emit([ReviewFrames.err()]);
|
||||
return;
|
||||
}
|
||||
final channelIndex = frame[2];
|
||||
_emit([ReviewFrames.ok()]);
|
||||
|
||||
final members = ReviewScript.channelMembers[channelIndex];
|
||||
if (members == null ||
|
||||
members.isEmpty ||
|
||||
!_channels.containsKey(channelIndex)) {
|
||||
return;
|
||||
}
|
||||
_later(replyDelay, () {
|
||||
final replies = ReviewScript.channelReplies;
|
||||
final index = _channelReplyIndex++;
|
||||
final sender = members[index % members.length];
|
||||
_messageQueue.add(
|
||||
ReviewFrames.channelMessage(
|
||||
channelIndex: channelIndex,
|
||||
sender: sender,
|
||||
message: replies[index % replies.length],
|
||||
timestampSecs: _nowSecs,
|
||||
path: _pathForSender(sender),
|
||||
),
|
||||
);
|
||||
_emit([ReviewFrames.msgWaiting()]);
|
||||
});
|
||||
}
|
||||
|
||||
_Contact? _contactByPrefix(List<int> prefix) {
|
||||
for (final c in _contacts) {
|
||||
if (c.publicKey.length >= prefix.length &&
|
||||
listEquals(c.publicKey.sublist(0, prefix.length), prefix)) {
|
||||
return c;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
String _readCString(Uint8List frame, int start, int maxLength) {
|
||||
final end = (start + maxLength).clamp(start, frame.length);
|
||||
final bytes = <int>[];
|
||||
for (var i = start; i < end; i++) {
|
||||
if (frame[i] == 0) break;
|
||||
bytes.add(frame[i]);
|
||||
}
|
||||
return utf8.decode(bytes, allowMalformed: true);
|
||||
}
|
||||
|
||||
void _later(Duration delay, void Function() action) {
|
||||
if (_disposed) return;
|
||||
late final Timer timer;
|
||||
timer = Timer(delay, () {
|
||||
_timers.remove(timer);
|
||||
if (!_disposed) action();
|
||||
});
|
||||
_timers.add(timer);
|
||||
}
|
||||
|
||||
/// Queues frames and flushes them from a timer, so a response is never
|
||||
/// delivered synchronously inside [handle] and ordering is preserved.
|
||||
void _emit(List<Uint8List> frames) {
|
||||
if (_disposed) return;
|
||||
_outbox.addAll(frames);
|
||||
_flushTimer ??= Timer(Duration.zero, _flush);
|
||||
}
|
||||
|
||||
void _flush() {
|
||||
_flushTimer = null;
|
||||
if (_disposed) return;
|
||||
final pending = List<Uint8List>.of(_outbox);
|
||||
_outbox.clear();
|
||||
for (final frame in pending) {
|
||||
if (_disposed || _controller.isClosed) return;
|
||||
_controller.add(frame);
|
||||
}
|
||||
}
|
||||
|
||||
/// Cancels all timers and closes the stream. Safe to call twice.
|
||||
void dispose() {
|
||||
if (_disposed) return;
|
||||
_disposed = true;
|
||||
_scheduledTimer?.cancel();
|
||||
_scheduledTimer = null;
|
||||
_flushTimer?.cancel();
|
||||
_flushTimer = null;
|
||||
for (final t in _timers) {
|
||||
t.cancel();
|
||||
}
|
||||
_timers.clear();
|
||||
_outbox.clear();
|
||||
unawaited(_controller.close());
|
||||
}
|
||||
}
|
||||
|
||||
class _Contact {
|
||||
final Uint8List publicKey;
|
||||
final int type;
|
||||
final Uint8List path;
|
||||
final String name;
|
||||
final int lastAdvertSecs;
|
||||
final int latitudeE6;
|
||||
final int longitudeE6;
|
||||
final int lastModSecs;
|
||||
|
||||
_Contact({
|
||||
required this.publicKey,
|
||||
required this.type,
|
||||
required this.path,
|
||||
required this.name,
|
||||
required this.lastAdvertSecs,
|
||||
required this.latitudeE6,
|
||||
required this.longitudeE6,
|
||||
required this.lastModSecs,
|
||||
});
|
||||
}
|
||||
|
||||
class _Channel {
|
||||
final String name;
|
||||
final Uint8List psk;
|
||||
|
||||
_Channel(this.name, this.psk);
|
||||
}
|
||||
|
||||
class _SeedEntry {
|
||||
final int agoSecs;
|
||||
final Uint8List frame;
|
||||
|
||||
_SeedEntry(this.agoSecs, this.frame);
|
||||
}
|
||||
@@ -0,0 +1,297 @@
|
||||
import '../connector/meshcore_protocol.dart';
|
||||
|
||||
/// A contact in the simulated radio's contact table.
|
||||
class ReviewContact {
|
||||
final String name;
|
||||
final String publicKeyHex;
|
||||
final int type;
|
||||
|
||||
/// One-byte path hashes, as hex. Empty means a direct (zero hop) path.
|
||||
final String pathHex;
|
||||
final double latitude;
|
||||
final double longitude;
|
||||
final int lastAdvertAgoSecs;
|
||||
|
||||
const ReviewContact({
|
||||
required this.name,
|
||||
required this.publicKeyHex,
|
||||
required this.type,
|
||||
required this.pathHex,
|
||||
required this.latitude,
|
||||
required this.longitude,
|
||||
required this.lastAdvertAgoSecs,
|
||||
});
|
||||
|
||||
int get hopCount => pathHex.length ~/ 2;
|
||||
}
|
||||
|
||||
/// A channel slot configured on the simulated radio.
|
||||
class ReviewChannel {
|
||||
final int index;
|
||||
final String name;
|
||||
final String pskHex;
|
||||
|
||||
const ReviewChannel({
|
||||
required this.index,
|
||||
required this.name,
|
||||
required this.pskHex,
|
||||
});
|
||||
}
|
||||
|
||||
/// A direct message from a script contact.
|
||||
class ReviewDirectLine {
|
||||
final int contactIndex;
|
||||
final String text;
|
||||
final int agoSecs;
|
||||
|
||||
const ReviewDirectLine({
|
||||
required this.contactIndex,
|
||||
required this.text,
|
||||
this.agoSecs = 0,
|
||||
});
|
||||
}
|
||||
|
||||
/// A channel message from a script member.
|
||||
class ReviewChannelLine {
|
||||
final int channelIndex;
|
||||
final String sender;
|
||||
final String text;
|
||||
final int agoSecs;
|
||||
|
||||
const ReviewChannelLine({
|
||||
required this.channelIndex,
|
||||
required this.sender,
|
||||
required this.text,
|
||||
this.agoSecs = 0,
|
||||
});
|
||||
}
|
||||
|
||||
/// The fake world the simulated radio lives in.
|
||||
class ReviewScript {
|
||||
ReviewScript._();
|
||||
|
||||
static const String selfName = 'Review Radio';
|
||||
static const int selfLatitudeE6 = 45515232;
|
||||
static const int selfLongitudeE6 = -122678385;
|
||||
static const int frequencyHz = 910525000;
|
||||
static const int bandwidthHz = 62500;
|
||||
static const int spreadingFactor = 7;
|
||||
static const int codingRate = 5;
|
||||
static const int txPowerDbm = 20;
|
||||
static const int maxTxPowerDbm = 22;
|
||||
|
||||
static const int firmwareVerCode = 14;
|
||||
static const int maxContacts = 100;
|
||||
static const int maxChannels = 8;
|
||||
|
||||
static const List<ReviewContact> contacts = [
|
||||
ReviewContact(
|
||||
name: 'Maya',
|
||||
publicKeyHex:
|
||||
'a95db5b0ac159e4384ff55ef91c94a98dc563d66a88e7b027fcd5190c0f5bed5',
|
||||
type: advTypeChat,
|
||||
pathHex: 'a1',
|
||||
latitude: 45.5231,
|
||||
longitude: -122.6765,
|
||||
lastAdvertAgoSecs: 600,
|
||||
),
|
||||
ReviewContact(
|
||||
name: 'Jordan',
|
||||
publicKeyHex:
|
||||
'136c67657614311f32238751044a0a3c0294f2a521e573afa8e496992d3786ba',
|
||||
type: advTypeChat,
|
||||
pathHex: 'a1c4',
|
||||
latitude: 45.5089,
|
||||
longitude: -122.6912,
|
||||
lastAdvertAgoSecs: 1800,
|
||||
),
|
||||
ReviewContact(
|
||||
name: 'Sam',
|
||||
publicKeyHex:
|
||||
'e96e02d8e47f2a7c03be5117b3ed175c52aa30fb22028cf9c96f261563577605',
|
||||
type: advTypeChat,
|
||||
pathHex: '',
|
||||
latitude: 45.5176,
|
||||
longitude: -122.6701,
|
||||
lastAdvertAgoSecs: 240,
|
||||
),
|
||||
ReviewContact(
|
||||
name: 'Ranger Pat',
|
||||
publicKeyHex:
|
||||
'dbc4a04327176e6577b4da46df04564150053960eba5d89587dad1f76a818d80',
|
||||
type: advTypeChat,
|
||||
pathHex: 'a1c47f',
|
||||
latitude: 45.5402,
|
||||
longitude: -122.7120,
|
||||
lastAdvertAgoSecs: 3600,
|
||||
),
|
||||
ReviewContact(
|
||||
name: 'Hilltop Repeater',
|
||||
publicKeyHex:
|
||||
'409e364456fa93642cd24878f532fffe31e3aae5944d04239a7d023e66ebdbe3',
|
||||
type: advTypeRepeater,
|
||||
pathHex: '',
|
||||
latitude: 45.5298,
|
||||
longitude: -122.7064,
|
||||
lastAdvertAgoSecs: 120,
|
||||
),
|
||||
ReviewContact(
|
||||
name: 'Trailhead Room',
|
||||
publicKeyHex:
|
||||
'08d33503ee27d4c13055d0cefec5e730be4ef2e41cd6cfce434936ec1e7c9d4b',
|
||||
type: advTypeRoom,
|
||||
pathHex: 'a1',
|
||||
latitude: 45.5350,
|
||||
longitude: -122.6650,
|
||||
lastAdvertAgoSecs: 900,
|
||||
),
|
||||
];
|
||||
|
||||
static const List<ReviewChannel> channels = [
|
||||
ReviewChannel(
|
||||
index: 0,
|
||||
name: 'Public',
|
||||
pskHex: '8b3387e9c5cdea6ac9e5edbaa115cd72',
|
||||
),
|
||||
ReviewChannel(
|
||||
index: 1,
|
||||
name: 'Hiking Group',
|
||||
pskHex: 'dd488fa58a29956b6271b573e1a33ac5',
|
||||
),
|
||||
ReviewChannel(
|
||||
index: 2,
|
||||
name: 'Local Net',
|
||||
pskHex: '8bca9c2e3ef52ebcd61d30ec6c724a25',
|
||||
),
|
||||
];
|
||||
|
||||
/// Senders that may speak in each channel, by channel index.
|
||||
static const Map<int, List<String>> channelMembers = {
|
||||
0: ['Maya', 'Sam'],
|
||||
1: ['Jordan', 'Sam'],
|
||||
2: ['Ranger Pat', 'Maya'],
|
||||
};
|
||||
|
||||
static const List<ReviewDirectLine> seedDirectMessages = [
|
||||
ReviewDirectLine(
|
||||
contactIndex: 0,
|
||||
text: 'Hey! Are you heading up to the ridge this weekend?',
|
||||
agoSecs: 7200,
|
||||
),
|
||||
ReviewDirectLine(
|
||||
contactIndex: 0,
|
||||
text: 'The repeater on the hill is showing a great signal today.',
|
||||
agoSecs: 6900,
|
||||
),
|
||||
ReviewDirectLine(
|
||||
contactIndex: 1,
|
||||
text: 'Signal check from the trailhead. Reading you loud and clear.',
|
||||
agoSecs: 3300,
|
||||
),
|
||||
];
|
||||
|
||||
static const List<ReviewChannelLine> seedChannelMessages = [
|
||||
ReviewChannelLine(
|
||||
channelIndex: 0,
|
||||
sender: 'Maya',
|
||||
text: 'Good morning mesh! Anyone on the air?',
|
||||
agoSecs: 5400,
|
||||
),
|
||||
ReviewChannelLine(
|
||||
channelIndex: 1,
|
||||
sender: 'Jordan',
|
||||
text: 'Planning to leave the trailhead at 8 on Saturday.',
|
||||
agoSecs: 4800,
|
||||
),
|
||||
ReviewChannelLine(
|
||||
channelIndex: 1,
|
||||
sender: 'Sam',
|
||||
text: 'I will bring the spare battery pack.',
|
||||
agoSecs: 4500,
|
||||
),
|
||||
ReviewChannelLine(
|
||||
channelIndex: 2,
|
||||
sender: 'Ranger Pat',
|
||||
text: 'Weekly net check-in starts at 7 pm. Please report your signal.',
|
||||
agoSecs: 2400,
|
||||
),
|
||||
];
|
||||
|
||||
/// Scheduled incoming direct messages, cycled in order.
|
||||
static const List<ReviewDirectLine> incomingDirectPool = [
|
||||
ReviewDirectLine(
|
||||
contactIndex: 0,
|
||||
text: 'Just got a message through the hilltop repeater. Nice!',
|
||||
),
|
||||
ReviewDirectLine(
|
||||
contactIndex: 1,
|
||||
text: 'Battery is at 80 percent. Plenty for the whole hike.',
|
||||
),
|
||||
ReviewDirectLine(
|
||||
contactIndex: 2,
|
||||
text: 'Can you hear me from the creek crossing?',
|
||||
),
|
||||
ReviewDirectLine(
|
||||
contactIndex: 3,
|
||||
text: 'Trail conditions are good. A little muddy near the bridge.',
|
||||
),
|
||||
ReviewDirectLine(
|
||||
contactIndex: 0,
|
||||
text: 'Testing a new antenna today. How is my signal?',
|
||||
),
|
||||
ReviewDirectLine(
|
||||
contactIndex: 2,
|
||||
text: 'Heading back down now. See you at the trailhead.',
|
||||
),
|
||||
];
|
||||
|
||||
/// Scheduled incoming channel messages, cycled in order.
|
||||
static const List<ReviewChannelLine> incomingChannelPool = [
|
||||
ReviewChannelLine(
|
||||
channelIndex: 0,
|
||||
sender: 'Sam',
|
||||
text: 'Radio check, one two three. Anyone copy?',
|
||||
),
|
||||
ReviewChannelLine(
|
||||
channelIndex: 1,
|
||||
sender: 'Jordan',
|
||||
text: 'We reached the lookout. The view is great!',
|
||||
),
|
||||
ReviewChannelLine(
|
||||
channelIndex: 2,
|
||||
sender: 'Ranger Pat',
|
||||
text: 'Reminder: the net is open to everyone. Say hello.',
|
||||
),
|
||||
ReviewChannelLine(
|
||||
channelIndex: 0,
|
||||
sender: 'Maya',
|
||||
text: 'Clear skies and a strong signal across town today.',
|
||||
),
|
||||
ReviewChannelLine(
|
||||
channelIndex: 1,
|
||||
sender: 'Sam',
|
||||
text: 'Anyone need water? I am refilling at the next stop.',
|
||||
),
|
||||
ReviewChannelLine(
|
||||
channelIndex: 2,
|
||||
sender: 'Maya',
|
||||
text: 'Checking in from the east side. Copy you five by five.',
|
||||
),
|
||||
];
|
||||
|
||||
/// Auto-replies to a direct message the app sends.
|
||||
static const List<String> directReplies = [
|
||||
'Got it, thanks!',
|
||||
'Sounds good to me.',
|
||||
'Message received loud and clear.',
|
||||
'Thanks for the update. Talk soon!',
|
||||
];
|
||||
|
||||
/// Auto-replies to a channel message the app sends.
|
||||
static const List<String> channelReplies = [
|
||||
'Copy that!',
|
||||
'Welcome to the mesh!',
|
||||
'Heard you loud and clear.',
|
||||
'Thanks for checking in.',
|
||||
];
|
||||
}
|
||||
@@ -38,6 +38,7 @@ import '../widgets/received_image_message.dart';
|
||||
import '../widgets/byte_count_input.dart';
|
||||
import '../widgets/chat_day_separator.dart';
|
||||
import '../widgets/empty_state.dart';
|
||||
|
||||
import '../widgets/chat_zoom_wrapper.dart';
|
||||
import '../widgets/emoji_picker.dart';
|
||||
import '../widgets/gif_message.dart';
|
||||
@@ -2011,6 +2012,79 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
}
|
||||
|
||||
Widget _buildInputBar() {
|
||||
Future<String?> promptForMarkerLabel(
|
||||
BuildContext context, {
|
||||
required double lat,
|
||||
required double lon,
|
||||
required String defaultLabel,
|
||||
required String flags,
|
||||
}) async {
|
||||
final controller = TextEditingController(text: defaultLabel);
|
||||
controller.selection = TextSelection(
|
||||
baseOffset: 0,
|
||||
extentOffset: controller.text.length,
|
||||
);
|
||||
final focusNode = FocusNode();
|
||||
|
||||
final latStr = lat.toStringAsFixed(6);
|
||||
final lonStr = lon.toStringAsFixed(6);
|
||||
final prefix = 'm:$latStr,$lonStr|';
|
||||
final suffix = '|$flags';
|
||||
final overheadBytes = utf8.encode(prefix + suffix).length;
|
||||
final maxForContact = maxContactMessageBytes();
|
||||
final maxForChannel = maxChannelMessageBytes(null);
|
||||
final maxPayload = maxForContact < maxForChannel
|
||||
? maxForContact
|
||||
: maxForChannel;
|
||||
final allowedLabelBytes = (maxPayload - overheadBytes) > 0
|
||||
? (maxPayload - overheadBytes)
|
||||
: 0;
|
||||
|
||||
try {
|
||||
final result = await showDialog<String>(
|
||||
context: context,
|
||||
builder: (dialogContext) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (dialogContext.mounted) {
|
||||
focusNode.requestFocus();
|
||||
controller.selection = TextSelection(
|
||||
baseOffset: 0,
|
||||
extentOffset: controller.text.length,
|
||||
);
|
||||
}
|
||||
});
|
||||
return AlertDialog(
|
||||
title: Text(dialogContext.l10n.map_pinLabel),
|
||||
content: ByteCountedTextField(
|
||||
focusNode: focusNode,
|
||||
maxBytes: allowedLabelBytes,
|
||||
controller: controller,
|
||||
decoration: InputDecoration(
|
||||
helperText: dialogContext.l10n.map_labelUpdateHint,
|
||||
helperMaxLines: 3,
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(dialogContext, null),
|
||||
child: Text(dialogContext.l10n.common_cancel),
|
||||
),
|
||||
FilledButton(
|
||||
onPressed: () =>
|
||||
Navigator.pop(dialogContext, controller.text.trim()),
|
||||
child: Text(dialogContext.l10n.common_share),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
return result;
|
||||
} finally {
|
||||
focusNode.dispose();
|
||||
controller.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
final connector = context.watch<MeshCoreConnector>();
|
||||
final maxBytes = maxChannelMessageBytes(connector.selfName);
|
||||
final settings = context.watch<AppSettingsService>().settings;
|
||||
@@ -2041,44 +2115,135 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
PopupMenuButton<String>(
|
||||
icon: const Icon(Icons.add_circle_outline),
|
||||
position: PopupMenuPosition.over,
|
||||
offset: Offset(0, showImageAction ? -112 : -64),
|
||||
tooltip: context.l10n.chat_selectSendAction,
|
||||
onSelected: (action) {
|
||||
switch (action) {
|
||||
case 'gif':
|
||||
_showGifPicker(context);
|
||||
break;
|
||||
case 'meshcore-image':
|
||||
_showImageSendPreview();
|
||||
break;
|
||||
}
|
||||
Builder(
|
||||
builder: (menuContext) {
|
||||
return IconButton(
|
||||
icon: const Icon(Icons.add_circle_outline),
|
||||
tooltip: context.l10n.chat_selectSendAction,
|
||||
onPressed: () async {
|
||||
final RenderBox button =
|
||||
menuContext.findRenderObject() as RenderBox;
|
||||
final RenderBox overlay =
|
||||
Overlay.of(menuContext).context.findRenderObject()
|
||||
as RenderBox;
|
||||
final Offset buttonOffset = button.localToGlobal(
|
||||
Offset.zero,
|
||||
ancestor: overlay,
|
||||
);
|
||||
final items = <PopupMenuEntry<String>>[
|
||||
PopupMenuItem(
|
||||
value: 'gif',
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.gif_box),
|
||||
const SizedBox(width: 12),
|
||||
Text(context.l10n.chat_sendGif),
|
||||
],
|
||||
),
|
||||
),
|
||||
];
|
||||
if (showImageAction) {
|
||||
items.add(
|
||||
PopupMenuItem(
|
||||
value: 'meshcore-image',
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.image_outlined),
|
||||
const SizedBox(width: 12),
|
||||
Text(context.l10n.chat_sendImageLora),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
if (context.read<MeshCoreConnector>().selfLatitude !=
|
||||
null &&
|
||||
context.read<MeshCoreConnector>().selfLongitude !=
|
||||
null) {
|
||||
items.add(
|
||||
PopupMenuItem(
|
||||
value: 'send-my-location',
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.my_location),
|
||||
const SizedBox(width: 12),
|
||||
Text(context.l10n.map_shareMarkerHere),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
final menuHeight =
|
||||
items.length * kMinInteractiveDimension + 16;
|
||||
final menuTop = (buttonOffset.dy - menuHeight).clamp(
|
||||
8.0,
|
||||
overlay.size.height,
|
||||
);
|
||||
final position = RelativeRect.fromLTRB(
|
||||
buttonOffset.dx,
|
||||
menuTop,
|
||||
overlay.size.width -
|
||||
buttonOffset.dx -
|
||||
button.size.width,
|
||||
overlay.size.height - buttonOffset.dy,
|
||||
);
|
||||
|
||||
final selected = await showMenu<String>(
|
||||
context: menuContext,
|
||||
position: position,
|
||||
items: items,
|
||||
);
|
||||
if (!mounted || !menuContext.mounted) return;
|
||||
if (selected == null) return;
|
||||
switch (selected) {
|
||||
case 'gif':
|
||||
_showGifPicker(context);
|
||||
break;
|
||||
case 'meshcore-image':
|
||||
_showImageSendPreview();
|
||||
break;
|
||||
case 'send-my-location':
|
||||
final connector = context
|
||||
.read<MeshCoreConnector>();
|
||||
if (connector.selfLatitude == null ||
|
||||
connector.selfLongitude == null) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(
|
||||
context.l10n.map_connectToShareMarkers,
|
||||
),
|
||||
);
|
||||
break;
|
||||
}
|
||||
final lat = connector.selfLatitude!;
|
||||
final lon = connector.selfLongitude!;
|
||||
final initialLabel =
|
||||
connector.selfName?.isNotEmpty == true
|
||||
? connector.selfName!
|
||||
: context.l10n.map_sharedPin;
|
||||
final label = await promptForMarkerLabel(
|
||||
context,
|
||||
lat: lat,
|
||||
lon: lon,
|
||||
defaultLabel: initialLabel,
|
||||
flags: 'poi',
|
||||
);
|
||||
if (label == null || label.trim().isEmpty) break;
|
||||
if (!mounted || !menuContext.mounted) break;
|
||||
final connector2 = context
|
||||
.read<MeshCoreConnector>();
|
||||
final markerText =
|
||||
'm:${lat.toStringAsFixed(6)},${lon.toStringAsFixed(6)}|${label.trim()}|poi';
|
||||
connector2.sendChannelMessage(
|
||||
widget.channel,
|
||||
markerText,
|
||||
);
|
||||
break;
|
||||
}
|
||||
},
|
||||
);
|
||||
},
|
||||
itemBuilder: (context) => [
|
||||
PopupMenuItem(
|
||||
value: 'gif',
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.gif_box),
|
||||
const SizedBox(width: 12),
|
||||
Text(context.l10n.chat_sendGif),
|
||||
],
|
||||
),
|
||||
),
|
||||
if (showImageAction)
|
||||
PopupMenuItem(
|
||||
value: 'meshcore-image',
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.image_outlined),
|
||||
const SizedBox(width: 12),
|
||||
Text(context.l10n.chat_sendImageLora),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
if (settings.translationEnabled)
|
||||
MessageTranslationButton(
|
||||
@@ -2478,6 +2643,9 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
|
||||
void _copyMessageText(String text) {
|
||||
Clipboard.setData(ClipboardData(text: text));
|
||||
// Android shows its own clipboard chip; the snackbar is redundant there
|
||||
// and lingers over the input field after the chip dismisses.
|
||||
if (PlatformInfo.isAndroid) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.chat_messageCopied),
|
||||
|
||||
+172
-156
@@ -35,6 +35,7 @@ import 'community_qr_scanner_screen.dart';
|
||||
import 'contacts_screen.dart';
|
||||
import 'map_screen.dart';
|
||||
import 'settings_screen.dart';
|
||||
import '../review_mode/review_mode_banner.dart';
|
||||
|
||||
class ChannelsScreen extends StatefulWidget {
|
||||
final bool hideBackButton;
|
||||
@@ -166,172 +167,187 @@ class _ChannelsScreenState extends State<ChannelsScreen>
|
||||
),
|
||||
],
|
||||
),
|
||||
body: RefreshIndicator(
|
||||
onRefresh: () async {
|
||||
await context.read<MeshCoreConnector>().getChannels(force: true);
|
||||
},
|
||||
child: () {
|
||||
final channels = connector.channels;
|
||||
final waitingForFirstChannel =
|
||||
connector.isLoadingChannels && channels.isEmpty;
|
||||
body: Column(
|
||||
children: [
|
||||
const ReviewModeBanner(),
|
||||
Expanded(
|
||||
child: RefreshIndicator(
|
||||
onRefresh: () async {
|
||||
await context.read<MeshCoreConnector>().getChannels(
|
||||
force: true,
|
||||
);
|
||||
},
|
||||
child: () {
|
||||
final channels = connector.channels;
|
||||
final waitingForFirstChannel =
|
||||
connector.isLoadingChannels && channels.isEmpty;
|
||||
|
||||
// Only block the list while the first channel is actively loading.
|
||||
// If the initial sync aborts, show cached/partial channels instead
|
||||
// of trapping the user behind an idle spinner.
|
||||
if (waitingForFirstChannel) {
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
}
|
||||
// Only block the list while the first channel is actively loading.
|
||||
// If the initial sync aborts, show cached/partial channels instead
|
||||
// of trapping the user behind an idle spinner.
|
||||
if (waitingForFirstChannel) {
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
}
|
||||
|
||||
if (channels.isEmpty) {
|
||||
return ListView(
|
||||
children: [
|
||||
SizedBox(
|
||||
height: MediaQuery.of(context).size.height - 200,
|
||||
child: EmptyState(
|
||||
icon: Icons.tag,
|
||||
title: context.l10n.channels_noChannelsConfigured,
|
||||
action: FilledButton.icon(
|
||||
onPressed: () => _addPublicChannel(context, connector),
|
||||
icon: const Icon(Icons.public),
|
||||
label: Text(context.l10n.channels_addPublicChannel),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
if (channels.isEmpty) {
|
||||
return ListView(
|
||||
children: [
|
||||
SizedBox(
|
||||
height: MediaQuery.of(context).size.height - 200,
|
||||
child: EmptyState(
|
||||
icon: Icons.tag,
|
||||
title: context.l10n.channels_noChannelsConfigured,
|
||||
action: FilledButton.icon(
|
||||
onPressed: () =>
|
||||
_addPublicChannel(context, connector),
|
||||
icon: const Icon(Icons.public),
|
||||
label: Text(
|
||||
context.l10n.channels_addPublicChannel,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
final filteredChannels = _filterAndSortChannels(
|
||||
channels,
|
||||
connector,
|
||||
viewState,
|
||||
);
|
||||
final filteredChannels = _filterAndSortChannels(
|
||||
channels,
|
||||
connector,
|
||||
viewState,
|
||||
);
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: TextField(
|
||||
controller: _searchController,
|
||||
decoration: InputDecoration(
|
||||
hintText: context.l10n.channels_searchChannels,
|
||||
prefixIcon: const Icon(Icons.search),
|
||||
suffixIcon: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (viewState.channelsSearchText.isNotEmpty)
|
||||
IconButton(
|
||||
icon: const Icon(Icons.clear),
|
||||
tooltip: context.l10n.common_clearSearch,
|
||||
onPressed: () {
|
||||
_searchDebounce?.cancel();
|
||||
_searchDebounce = null;
|
||||
_searchController.clear();
|
||||
return Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: TextField(
|
||||
controller: _searchController,
|
||||
decoration: InputDecoration(
|
||||
hintText: context.l10n.channels_searchChannels,
|
||||
prefixIcon: const Icon(Icons.search),
|
||||
suffixIcon: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (viewState.channelsSearchText.isNotEmpty)
|
||||
IconButton(
|
||||
icon: const Icon(Icons.clear),
|
||||
tooltip: context.l10n.common_clearSearch,
|
||||
onPressed: () {
|
||||
_searchDebounce?.cancel();
|
||||
_searchDebounce = null;
|
||||
_searchController.clear();
|
||||
context
|
||||
.read<UiViewStateService>()
|
||||
.setChannelsSearchText('');
|
||||
},
|
||||
),
|
||||
_buildFilterButton(viewState),
|
||||
],
|
||||
),
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 12,
|
||||
),
|
||||
),
|
||||
onChanged: (value) {
|
||||
_searchDebounce?.cancel();
|
||||
_searchDebounce = Timer(
|
||||
const Duration(milliseconds: 300),
|
||||
() {
|
||||
if (!mounted) return;
|
||||
context
|
||||
.read<UiViewStateService>()
|
||||
.setChannelsSearchText('');
|
||||
.setChannelsSearchText(value);
|
||||
},
|
||||
),
|
||||
_buildFilterButton(viewState),
|
||||
],
|
||||
),
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 12,
|
||||
),
|
||||
),
|
||||
onChanged: (value) {
|
||||
_searchDebounce?.cancel();
|
||||
_searchDebounce = Timer(
|
||||
const Duration(milliseconds: 300),
|
||||
() {
|
||||
if (!mounted) return;
|
||||
context
|
||||
.read<UiViewStateService>()
|
||||
.setChannelsSearchText(value);
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: filteredChannels.isEmpty
|
||||
? LayoutBuilder(
|
||||
builder: (context, constraints) => ListView(
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
children: [
|
||||
ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
minHeight: constraints.maxHeight,
|
||||
),
|
||||
child: EmptyState(
|
||||
icon: Icons.search_off,
|
||||
title: context.l10n.channels_noChannelsFound,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
: (viewState.channelsSortOption ==
|
||||
ChannelSortOption.manual &&
|
||||
viewState.channelsSearchText.isEmpty)
|
||||
? ReorderableListView.builder(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 0,
|
||||
right: 0,
|
||||
top: 8,
|
||||
bottom: 88,
|
||||
),
|
||||
buildDefaultDragHandles: false,
|
||||
itemCount: filteredChannels.length,
|
||||
onReorderItem: (oldIndex, newIndex) {
|
||||
final reordered = List<Channel>.from(
|
||||
filteredChannels,
|
||||
);
|
||||
final item = reordered.removeAt(oldIndex);
|
||||
reordered.insert(newIndex, item);
|
||||
unawaited(
|
||||
connector.setChannelOrder(
|
||||
reordered.map((c) => c.index).toList(),
|
||||
),
|
||||
);
|
||||
},
|
||||
itemBuilder: (context, index) {
|
||||
final channel = filteredChannels[index];
|
||||
return _buildChannelTile(
|
||||
context,
|
||||
connector,
|
||||
channelMessageStore,
|
||||
channel,
|
||||
showDragHandle: true,
|
||||
dragIndex: index,
|
||||
listIndex: index,
|
||||
);
|
||||
},
|
||||
)
|
||||
: ListView.builder(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 0,
|
||||
right: 0,
|
||||
top: 8,
|
||||
bottom: 88,
|
||||
),
|
||||
itemCount: filteredChannels.length,
|
||||
itemBuilder: (context, index) {
|
||||
final channel = filteredChannels[index];
|
||||
return _buildChannelTile(
|
||||
context,
|
||||
connector,
|
||||
channelMessageStore,
|
||||
channel,
|
||||
listIndex: index,
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}(),
|
||||
),
|
||||
Expanded(
|
||||
child: filteredChannels.isEmpty
|
||||
? LayoutBuilder(
|
||||
builder: (context, constraints) => ListView(
|
||||
physics:
|
||||
const AlwaysScrollableScrollPhysics(),
|
||||
children: [
|
||||
ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
minHeight: constraints.maxHeight,
|
||||
),
|
||||
child: EmptyState(
|
||||
icon: Icons.search_off,
|
||||
title: context
|
||||
.l10n
|
||||
.channels_noChannelsFound,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
: (viewState.channelsSortOption ==
|
||||
ChannelSortOption.manual &&
|
||||
viewState.channelsSearchText.isEmpty)
|
||||
? ReorderableListView.builder(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 0,
|
||||
right: 0,
|
||||
top: 8,
|
||||
bottom: 88,
|
||||
),
|
||||
buildDefaultDragHandles: false,
|
||||
itemCount: filteredChannels.length,
|
||||
onReorderItem: (oldIndex, newIndex) {
|
||||
final reordered = List<Channel>.from(
|
||||
filteredChannels,
|
||||
);
|
||||
final item = reordered.removeAt(oldIndex);
|
||||
reordered.insert(newIndex, item);
|
||||
unawaited(
|
||||
connector.setChannelOrder(
|
||||
reordered.map((c) => c.index).toList(),
|
||||
),
|
||||
);
|
||||
},
|
||||
itemBuilder: (context, index) {
|
||||
final channel = filteredChannels[index];
|
||||
return _buildChannelTile(
|
||||
context,
|
||||
connector,
|
||||
channelMessageStore,
|
||||
channel,
|
||||
showDragHandle: true,
|
||||
dragIndex: index,
|
||||
listIndex: index,
|
||||
);
|
||||
},
|
||||
)
|
||||
: ListView.builder(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 0,
|
||||
right: 0,
|
||||
top: 8,
|
||||
bottom: 88,
|
||||
),
|
||||
itemCount: filteredChannels.length,
|
||||
itemBuilder: (context, index) {
|
||||
final channel = filteredChannels[index];
|
||||
return _buildChannelTile(
|
||||
context,
|
||||
connector,
|
||||
channelMessageStore,
|
||||
channel,
|
||||
listIndex: index,
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}(),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed: () => _showAddChannelDialog(context),
|
||||
|
||||
@@ -472,6 +472,79 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
}
|
||||
|
||||
Widget _buildInputBar(MeshCoreConnector connector) {
|
||||
Future<String?> promptForMarkerLabel(
|
||||
BuildContext context, {
|
||||
required double lat,
|
||||
required double lon,
|
||||
required String defaultLabel,
|
||||
required String flags,
|
||||
}) async {
|
||||
final controller = TextEditingController(text: defaultLabel);
|
||||
controller.selection = TextSelection(
|
||||
baseOffset: 0,
|
||||
extentOffset: controller.text.length,
|
||||
);
|
||||
final focusNode = FocusNode();
|
||||
|
||||
final latStr = lat.toStringAsFixed(6);
|
||||
final lonStr = lon.toStringAsFixed(6);
|
||||
final prefix = 'm:$latStr,$lonStr|';
|
||||
final suffix = '|$flags';
|
||||
final overheadBytes = utf8.encode(prefix + suffix).length;
|
||||
final maxForContact = maxContactMessageBytes();
|
||||
final maxForChannel = maxChannelMessageBytes(null);
|
||||
final maxPayload = maxForContact < maxForChannel
|
||||
? maxForContact
|
||||
: maxForChannel;
|
||||
final allowedLabelBytes = (maxPayload - overheadBytes) > 0
|
||||
? (maxPayload - overheadBytes)
|
||||
: 0;
|
||||
|
||||
try {
|
||||
final result = await showDialog<String>(
|
||||
context: context,
|
||||
builder: (dialogContext) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (dialogContext.mounted) {
|
||||
focusNode.requestFocus();
|
||||
controller.selection = TextSelection(
|
||||
baseOffset: 0,
|
||||
extentOffset: controller.text.length,
|
||||
);
|
||||
}
|
||||
});
|
||||
return AlertDialog(
|
||||
title: Text(dialogContext.l10n.map_pinLabel),
|
||||
content: ByteCountedTextField(
|
||||
focusNode: focusNode,
|
||||
maxBytes: allowedLabelBytes,
|
||||
controller: controller,
|
||||
decoration: InputDecoration(
|
||||
helperText: dialogContext.l10n.map_labelUpdateHint,
|
||||
helperMaxLines: 3,
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(dialogContext, null),
|
||||
child: Text(dialogContext.l10n.common_cancel),
|
||||
),
|
||||
FilledButton(
|
||||
onPressed: () =>
|
||||
Navigator.pop(dialogContext, controller.text.trim()),
|
||||
child: Text(dialogContext.l10n.common_share),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
return result;
|
||||
} finally {
|
||||
focusNode.dispose();
|
||||
controller.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
final maxBytes = maxContactMessageBytes();
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
final settings = context.watch<AppSettingsService>().settings;
|
||||
@@ -486,10 +559,106 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.gif_box_outlined),
|
||||
tooltip: context.l10n.chat_sendGif,
|
||||
onPressed: () => _showGifPicker(context),
|
||||
Builder(
|
||||
builder: (menuContext) {
|
||||
return IconButton(
|
||||
icon: const Icon(Icons.add_circle_outline),
|
||||
tooltip: context.l10n.chat_selectSendAction,
|
||||
onPressed: () async {
|
||||
final RenderBox button =
|
||||
menuContext.findRenderObject() as RenderBox;
|
||||
final RenderBox overlay =
|
||||
Overlay.of(menuContext).context.findRenderObject()
|
||||
as RenderBox;
|
||||
final Offset buttonOffset = button.localToGlobal(
|
||||
Offset.zero,
|
||||
ancestor: overlay,
|
||||
);
|
||||
const menuHeight = 2 * kMinInteractiveDimension + 16;
|
||||
final menuTop = (buttonOffset.dy - menuHeight).clamp(
|
||||
8.0,
|
||||
overlay.size.height,
|
||||
);
|
||||
final position = RelativeRect.fromLTRB(
|
||||
buttonOffset.dx,
|
||||
menuTop,
|
||||
overlay.size.width -
|
||||
buttonOffset.dx -
|
||||
button.size.width,
|
||||
overlay.size.height - buttonOffset.dy,
|
||||
);
|
||||
|
||||
final selected = await showMenu<String>(
|
||||
context: menuContext,
|
||||
position: position,
|
||||
items: [
|
||||
PopupMenuItem(
|
||||
value: 'gif',
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.gif_box),
|
||||
const SizedBox(width: 12),
|
||||
Text(context.l10n.chat_sendGif),
|
||||
],
|
||||
),
|
||||
),
|
||||
PopupMenuItem(
|
||||
value: 'send-my-location',
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.my_location),
|
||||
const SizedBox(width: 12),
|
||||
Text(context.l10n.map_shareMarkerHere),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
if (!mounted || !menuContext.mounted) return;
|
||||
if (selected == null) return;
|
||||
switch (selected) {
|
||||
case 'gif':
|
||||
_showGifPicker(context);
|
||||
break;
|
||||
case 'send-my-location':
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
if (connector.selfLatitude == null ||
|
||||
connector.selfLongitude == null) {
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(
|
||||
context.l10n.map_connectToShareMarkers,
|
||||
),
|
||||
);
|
||||
break;
|
||||
}
|
||||
final lat = connector.selfLatitude!;
|
||||
final lon = connector.selfLongitude!;
|
||||
final initialLabel =
|
||||
connector.selfName?.isNotEmpty == true
|
||||
? connector.selfName!
|
||||
: context.l10n.map_sharedPin;
|
||||
final label = await promptForMarkerLabel(
|
||||
context,
|
||||
lat: lat,
|
||||
lon: lon,
|
||||
defaultLabel: initialLabel,
|
||||
flags: 'poi',
|
||||
);
|
||||
if (label == null || label.trim().isEmpty) break;
|
||||
if (!mounted || !menuContext.mounted) break;
|
||||
final connector2 = context.read<MeshCoreConnector>();
|
||||
final markerText =
|
||||
'm:${lat.toStringAsFixed(6)},${lon.toStringAsFixed(6)}|${label.trim()}|poi';
|
||||
connector2.sendMessage(
|
||||
_resolveContact(connector2),
|
||||
markerText,
|
||||
);
|
||||
break;
|
||||
}
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
if (settings.translationEnabled)
|
||||
MessageTranslationButton(
|
||||
@@ -1279,6 +1448,9 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
|
||||
void _copyMessageText(String text) {
|
||||
Clipboard.setData(ClipboardData(text: text));
|
||||
// Android shows its own clipboard chip; the snackbar is redundant there
|
||||
// and lingers over the input field after the chip dismisses.
|
||||
if (PlatformInfo.isAndroid) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(context.l10n.chat_messageCopied),
|
||||
|
||||
@@ -37,6 +37,7 @@ import 'chat_screen.dart';
|
||||
import 'contact_qr_scanner_screen.dart';
|
||||
import 'discovery_screen.dart';
|
||||
import 'map_screen.dart';
|
||||
import '../review_mode/review_mode_banner.dart';
|
||||
import 'repeater_hub_screen.dart';
|
||||
import 'settings_screen.dart';
|
||||
|
||||
@@ -477,7 +478,12 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
),
|
||||
],
|
||||
),
|
||||
body: _buildContactsBody(context, connector),
|
||||
body: Column(
|
||||
children: [
|
||||
const ReviewModeBanner(),
|
||||
Expanded(child: _buildContactsBody(context, connector)),
|
||||
],
|
||||
),
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed: () => _showAddContactSheet(context),
|
||||
child: const Icon(Icons.person_add),
|
||||
|
||||
+107
-29
@@ -1,5 +1,6 @@
|
||||
import 'dart:async';
|
||||
import 'dart:math';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -36,6 +37,7 @@ import 'chat_screen.dart';
|
||||
import 'contacts_screen.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import '../widgets/byte_count_input.dart';
|
||||
import '../widgets/repeater_login_dialog.dart';
|
||||
import '../widgets/room_login_dialog.dart';
|
||||
import '../helpers/guessed_location_estimator.dart';
|
||||
@@ -3119,7 +3121,11 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
return;
|
||||
}
|
||||
|
||||
final label = await _promptForLabel(context, defaultLabel);
|
||||
final initialLabel =
|
||||
connector.selfName == null || connector.selfName!.isEmpty
|
||||
? defaultLabel
|
||||
: connector.selfName!;
|
||||
final label = await _promptForLabel(context, position, initialLabel, flags);
|
||||
if (label == null || !mounted) return;
|
||||
|
||||
final markerText = _formatMarkerMessage(position, label, flags);
|
||||
@@ -3135,42 +3141,114 @@ class _MapScreenState extends State<MapScreen> with DisconnectNavigationMixin {
|
||||
|
||||
Future<String?> _promptForLabel(
|
||||
BuildContext context,
|
||||
LatLng position,
|
||||
String defaultLabel,
|
||||
String flags,
|
||||
) async {
|
||||
final controller = TextEditingController(text: defaultLabel);
|
||||
controller.selection = TextSelection(
|
||||
baseOffset: 0,
|
||||
extentOffset: controller.text.length,
|
||||
);
|
||||
return showDialog<String>(
|
||||
context: context,
|
||||
builder: (dialogContext) => AlertDialog(
|
||||
title: Text(context.l10n.map_pinLabel),
|
||||
content: TextField(
|
||||
controller: controller,
|
||||
decoration: InputDecoration(
|
||||
hintText: context.l10n.map_label,
|
||||
border: const OutlineInputBorder(),
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(dialogContext),
|
||||
child: Text(context.l10n.common_cancel),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
final label = controller.text.trim().replaceAll('|', '/');
|
||||
Navigator.pop(
|
||||
dialogContext,
|
||||
label.isEmpty ? defaultLabel : label,
|
||||
final focusNode = FocusNode();
|
||||
// Compute available bytes for the label taking marker overhead into
|
||||
// account. Use a conservative limit based on both contact and channel
|
||||
// message maxima.
|
||||
final lat = position.latitude.toStringAsFixed(6);
|
||||
final lon = position.longitude.toStringAsFixed(6);
|
||||
final prefix = 'm:$lat,$lon|';
|
||||
final suffix = '|$flags';
|
||||
final overheadBytes = utf8.encode(prefix + suffix).length;
|
||||
final maxForContact = maxContactMessageBytes();
|
||||
final maxForChannel = maxChannelMessageBytes(null);
|
||||
final maxPayload = maxForContact < maxForChannel
|
||||
? maxForContact
|
||||
: maxForChannel;
|
||||
final allowedLabelBytes = (maxPayload - overheadBytes) > 0
|
||||
? (maxPayload - overheadBytes)
|
||||
: 0;
|
||||
|
||||
try {
|
||||
final result = await showDialog<String>(
|
||||
context: context,
|
||||
builder: (dialogContext) {
|
||||
final scheme = Theme.of(dialogContext).colorScheme;
|
||||
// Request focus and ensure selection after the frame so the
|
||||
// keyboard appears and text is selected for replacement.
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (dialogContext.mounted) {
|
||||
focusNode.requestFocus();
|
||||
controller.selection = TextSelection(
|
||||
baseOffset: 0,
|
||||
extentOffset: controller.text.length,
|
||||
);
|
||||
},
|
||||
child: Text(context.l10n.common_continue),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
});
|
||||
return AlertDialog(
|
||||
title: Text(dialogContext.l10n.map_pinLabel),
|
||||
content: ByteCountedTextField(
|
||||
focusNode: focusNode,
|
||||
maxBytes: allowedLabelBytes,
|
||||
controller: controller,
|
||||
decoration: InputDecoration(
|
||||
hintText: dialogContext.l10n.map_label,
|
||||
helperText: dialogContext.l10n.map_labelUpdateHint,
|
||||
helperMaxLines: 3,
|
||||
helperStyle: TextStyle(
|
||||
color: _overlaySecondaryTextColor,
|
||||
fontSize: 12,
|
||||
),
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(MeshRadii.md),
|
||||
borderSide: BorderSide(color: scheme.outlineVariant),
|
||||
),
|
||||
enabledBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(MeshRadii.md),
|
||||
borderSide: BorderSide(color: scheme.outlineVariant),
|
||||
),
|
||||
focusedBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(MeshRadii.md),
|
||||
borderSide: BorderSide(color: scheme.primary, width: 1.5),
|
||||
),
|
||||
filled: true,
|
||||
fillColor: scheme.surfaceContainerLow,
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 18,
|
||||
vertical: 12,
|
||||
),
|
||||
),
|
||||
onSubmitted: (_) {
|
||||
final label = controller.text.trim().replaceAll('|', '/');
|
||||
Navigator.pop(
|
||||
dialogContext,
|
||||
label.isEmpty ? defaultLabel : label,
|
||||
);
|
||||
},
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(dialogContext),
|
||||
child: Text(dialogContext.l10n.common_cancel),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
final label = controller.text.trim().replaceAll('|', '/');
|
||||
Navigator.pop(
|
||||
dialogContext,
|
||||
label.isEmpty ? defaultLabel : label,
|
||||
);
|
||||
},
|
||||
child: Text(dialogContext.l10n.common_continue),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
return result;
|
||||
} finally {
|
||||
focusNode.dispose();
|
||||
controller.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
String _formatMarkerMessage(LatLng position, String label, String flags) {
|
||||
|
||||
@@ -15,6 +15,7 @@ import '../widgets/device_tile.dart';
|
||||
import '../widgets/empty_state.dart';
|
||||
import '../widgets/mesh_ui.dart';
|
||||
import '../helpers/snack_bar_builder.dart';
|
||||
import '../review_mode/review_mode_entry.dart';
|
||||
import 'channels_screen.dart';
|
||||
import 'tcp_screen.dart';
|
||||
import 'usb_screen.dart';
|
||||
@@ -103,7 +104,9 @@ class _ScannerScreenState extends State<ScannerScreen> {
|
||||
},
|
||||
)
|
||||
: null,
|
||||
title: AdaptiveAppBarTitle(context.l10n.scanner_title),
|
||||
title: ReviewModeLongPress(
|
||||
child: AdaptiveAppBarTitle(context.l10n.scanner_title),
|
||||
),
|
||||
centerTitle: true,
|
||||
automaticallyImplyLeading: false,
|
||||
actions: [
|
||||
|
||||
@@ -1231,6 +1231,10 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
bool autoAddRoomServer = false;
|
||||
bool autoAddSensor = false;
|
||||
bool overwriteOldest = false;
|
||||
final appSettingsService = context.read<AppSettingsService>();
|
||||
bool evictDiscoveredContactsEnabled =
|
||||
appSettingsService.settings.evictDiscoveredContactsEnabled;
|
||||
bool saving = false;
|
||||
|
||||
final connector = context.read<MeshCoreConnector>();
|
||||
autoAddChat = connector.autoAddUsers ?? false;
|
||||
@@ -1292,6 +1296,20 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
setDialogState(() => overwriteOldest = value);
|
||||
},
|
||||
),
|
||||
const Divider(height: 4),
|
||||
FeatureToggleRow(
|
||||
title: l10n.contactsSettings_evictDiscoveredContactsTitle,
|
||||
subtitle: l10n
|
||||
.contactsSettings_evictDiscoveredContactsSubtitle(
|
||||
MeshCoreConnector.maxDiscoveredContacts,
|
||||
),
|
||||
value: evictDiscoveredContactsEnabled,
|
||||
onChanged: (value) {
|
||||
setDialogState(
|
||||
() => evictDiscoveredContactsEnabled = value,
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -1301,17 +1319,38 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
child: Text(l10n.common_cancel),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
_sendSettings(
|
||||
connector,
|
||||
autoAddChat,
|
||||
autoAddRepeater,
|
||||
autoAddRoomServer,
|
||||
autoAddSensor,
|
||||
overwriteOldest,
|
||||
);
|
||||
Navigator.pop(context);
|
||||
},
|
||||
onPressed: saving
|
||||
? null
|
||||
: () async {
|
||||
setDialogState(() => saving = true);
|
||||
_sendSettings(
|
||||
connector,
|
||||
autoAddChat,
|
||||
autoAddRepeater,
|
||||
autoAddRoomServer,
|
||||
autoAddSensor,
|
||||
overwriteOldest,
|
||||
);
|
||||
try {
|
||||
await appSettingsService
|
||||
.setEvictDiscoveredContactsEnabled(
|
||||
evictDiscoveredContactsEnabled,
|
||||
);
|
||||
if (evictDiscoveredContactsEnabled) {
|
||||
await connector.trimDiscoveredContactsToLimit();
|
||||
}
|
||||
} catch (e) {
|
||||
if (!context.mounted) return;
|
||||
showDismissibleSnackBar(
|
||||
context,
|
||||
content: Text(l10n.settings_error(e.toString())),
|
||||
);
|
||||
setDialogState(() => saving = false);
|
||||
return;
|
||||
}
|
||||
if (!context.mounted) return;
|
||||
Navigator.pop(context);
|
||||
},
|
||||
child: Text(l10n.common_save),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -240,6 +240,12 @@ class AppSettingsService extends ChangeNotifier {
|
||||
await updateSettings(_settings.copyWith(mapShowDiscoveryContacts: value));
|
||||
}
|
||||
|
||||
Future<void> setEvictDiscoveredContactsEnabled(bool value) async {
|
||||
await updateSettings(
|
||||
_settings.copyWith(evictDiscoveredContactsEnabled: value),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> setBatteryChemistryForDevice(
|
||||
String deviceId,
|
||||
String chemistry,
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:meshcore_open/utils/app_logger.dart';
|
||||
import '../models/channel_message.dart';
|
||||
import '../models/translation_support.dart';
|
||||
import '../helpers/smaz.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
class ChannelMessageStore {
|
||||
@@ -50,7 +51,8 @@ class ChannelMessageStore {
|
||||
final oldKey = '$_keyPrefix$channelIndex';
|
||||
|
||||
String? jsonString = prefs.getString(key);
|
||||
if (jsonString == null || jsonString.isEmpty) {
|
||||
if ((jsonString == null || jsonString.isEmpty) &&
|
||||
canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
final legacyJsonString = prefs.getString(oldKey);
|
||||
prefs.remove(oldKey);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'dart:convert';
|
||||
import '../utils/app_logger.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
class ChannelOrderStore {
|
||||
@@ -27,7 +28,8 @@ class ChannelOrderStore {
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
String? jsonString = prefs.getString(keyFor);
|
||||
if (jsonString == null || jsonString.isEmpty) {
|
||||
if ((jsonString == null || jsonString.isEmpty) &&
|
||||
canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
final legacyJsonString = prefs.getString(_keyPrefix);
|
||||
prefs.remove(_keyPrefix);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import '../utils/app_logger.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
class ChannelSettingsStore {
|
||||
@@ -25,7 +26,7 @@ class ChannelSettingsStore {
|
||||
final key = '$keyFor$channelIndex';
|
||||
final oldKey = '$_keyPrefix$channelIndex';
|
||||
bool? enabled = prefs.getBool(key);
|
||||
if (enabled == null) {
|
||||
if (enabled == null && canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
enabled = prefs.getBool(oldKey);
|
||||
prefs.remove(oldKey);
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'dart:typed_data';
|
||||
|
||||
import '../models/channel.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
class ChannelStore {
|
||||
@@ -20,7 +21,8 @@ class ChannelStore {
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
String? jsonString = prefs.getString(keyFor);
|
||||
if (jsonString == null || jsonString.isEmpty) {
|
||||
if ((jsonString == null || jsonString.isEmpty) &&
|
||||
canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
final legacyJsonString = prefs.getString(_keyPrefix);
|
||||
prefs.remove(_keyPrefix);
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'dart:convert';
|
||||
|
||||
import '../models/community.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
/// Persists communities to local storage using SharedPreferences.
|
||||
@@ -26,7 +27,8 @@ class CommunityStore {
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
String? jsonString = prefs.getString(keyFor);
|
||||
if (jsonString == null || jsonString.isEmpty) {
|
||||
if ((jsonString == null || jsonString.isEmpty) &&
|
||||
canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
final legacyJsonString = prefs.getString(_keyPrefix);
|
||||
prefs.remove(_keyPrefix);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'dart:convert';
|
||||
import '../models/contact_group.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
class ContactGroupStore {
|
||||
@@ -19,7 +20,8 @@ class ContactGroupStore {
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
String? jsonString = prefs.getString(keyFor);
|
||||
if (jsonString == null || jsonString.isEmpty) {
|
||||
if ((jsonString == null || jsonString.isEmpty) &&
|
||||
canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
final legacyJsonString = prefs.getString(_keyPrefix);
|
||||
prefs.remove(_keyPrefix);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import '../utils/app_logger.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
class ContactSettingsStore {
|
||||
@@ -25,7 +26,7 @@ class ContactSettingsStore {
|
||||
final key = '$keyFor$contactKeyHex';
|
||||
final oldKey = '$_keyPrefix$contactKeyHex';
|
||||
bool? enabled = prefs.getBool(key);
|
||||
if (enabled == null) {
|
||||
if (enabled == null && canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
enabled = prefs.getBool(oldKey);
|
||||
prefs.remove(oldKey);
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'dart:typed_data';
|
||||
|
||||
import '../models/contact.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
class ContactStore {
|
||||
@@ -21,7 +22,8 @@ class ContactStore {
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
String? jsonString = prefs.getString(keyFor);
|
||||
if (jsonString == null || jsonString.isEmpty) {
|
||||
if ((jsonString == null || jsonString.isEmpty) &&
|
||||
canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
final legacyJsonString = prefs.getString(_keyPrefix);
|
||||
prefs.remove(_keyPrefix);
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/// Storage scopes (first 10 hex chars of a radio's public key) that must
|
||||
/// never adopt data from the legacy unscoped keys.
|
||||
///
|
||||
/// The per-radio stores move a legacy key into the first scope that loads it
|
||||
/// and then delete the legacy key. A scope listed here, such as the simulated
|
||||
/// review-mode radio, leaves legacy data for the next real radio.
|
||||
final Set<String> scopesWithoutLegacyMigration = {};
|
||||
|
||||
bool canMigrateLegacyKeys(String scopeHex) =>
|
||||
!scopesWithoutLegacyMigration.contains(scopeHex);
|
||||
@@ -4,6 +4,7 @@ import '../models/message.dart';
|
||||
import '../models/translation_support.dart';
|
||||
import '../helpers/smaz.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
class MessageStore {
|
||||
@@ -38,7 +39,8 @@ class MessageStore {
|
||||
final key = '$keyFor$contactKeyHex';
|
||||
final oldKey = '$_keyPrefix$contactKeyHex';
|
||||
String? jsonString = prefs.getString(key);
|
||||
if (jsonString == null || jsonString.isEmpty) {
|
||||
if ((jsonString == null || jsonString.isEmpty) &&
|
||||
canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
final legacyJsonString = prefs.getString(oldKey);
|
||||
prefs.remove(oldKey);
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'dart:async';
|
||||
import 'dart:convert';
|
||||
|
||||
import '../utils/app_logger.dart';
|
||||
import 'legacy_key_migration.dart';
|
||||
import 'prefs_manager.dart';
|
||||
|
||||
/// Storage for unread message tracking with debounced writes to reduce I/O.
|
||||
@@ -33,7 +34,8 @@ class UnreadStore {
|
||||
}
|
||||
final prefs = PrefsManager.instance;
|
||||
String? jsonString = prefs.getString(keyFor);
|
||||
if (jsonString == null || jsonString.isEmpty) {
|
||||
if ((jsonString == null || jsonString.isEmpty) &&
|
||||
canMigrateLegacyKeys(publicKeyHex)) {
|
||||
// Attempt migration from legacy unscoped key on first load
|
||||
final legacyJsonString = prefs.getString(_keyPrefix);
|
||||
prefs.remove(_keyPrefix);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:mobile_scanner/mobile_scanner.dart';
|
||||
|
||||
/// A reusable QR code scanner widget that can be embedded anywhere.
|
||||
@@ -150,28 +151,33 @@ class _QrScannerWidgetState extends State<QrScannerWidget>
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Stack(
|
||||
children: [
|
||||
// Scanner view
|
||||
MobileScanner(
|
||||
controller: _controller,
|
||||
onDetect: _handleDetection,
|
||||
errorBuilder: (context, error) {
|
||||
return _buildErrorWidget(context, error);
|
||||
},
|
||||
),
|
||||
// The camera preview is dark, so keep the system bar icons light, and lift
|
||||
// the controls above the navigation bar the app draws behind.
|
||||
return AnnotatedRegion<SystemUiOverlayStyle>(
|
||||
value: SystemUiOverlayStyle.light,
|
||||
child: Stack(
|
||||
children: [
|
||||
// Scanner view
|
||||
MobileScanner(
|
||||
controller: _controller,
|
||||
onDetect: _handleDetection,
|
||||
errorBuilder: (context, error) {
|
||||
return _buildErrorWidget(context, error);
|
||||
},
|
||||
),
|
||||
|
||||
// Overlay
|
||||
widget.overlay ?? _buildDefaultOverlay(context),
|
||||
// Overlay
|
||||
widget.overlay ?? _buildDefaultOverlay(context),
|
||||
|
||||
// Control buttons
|
||||
Positioned(
|
||||
bottom: 16,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: _buildControls(context),
|
||||
),
|
||||
],
|
||||
// Control buttons
|
||||
Positioned(
|
||||
bottom: 16 + MediaQuery.viewPaddingOf(context).bottom,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: _buildControls(context),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,9 +29,8 @@
|
||||
/// with whoever implements export, not here.
|
||||
library;
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../services/received_image_store.dart';
|
||||
@@ -618,36 +617,41 @@ class _ReceivedImageViewer extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.black,
|
||||
appBar: AppBar(
|
||||
// Light system bar icons over the black viewer, whatever the app theme.
|
||||
return AnnotatedRegion<SystemUiOverlayStyle>(
|
||||
value: SystemUiOverlayStyle.light,
|
||||
child: Scaffold(
|
||||
backgroundColor: Colors.black,
|
||||
foregroundColor: Colors.white,
|
||||
),
|
||||
body: Center(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Flexible(
|
||||
child: Stack(
|
||||
children: [
|
||||
InteractiveViewer(child: Image.memory(png)),
|
||||
if (synthesized)
|
||||
const Positioned(
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
child: _SyntheticBanner(),
|
||||
),
|
||||
],
|
||||
appBar: AppBar(
|
||||
backgroundColor: Colors.black,
|
||||
foregroundColor: Colors.white,
|
||||
systemOverlayStyle: SystemUiOverlayStyle.light,
|
||||
),
|
||||
body: Center(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Flexible(
|
||||
child: Stack(
|
||||
children: [
|
||||
InteractiveViewer(child: Image.memory(png)),
|
||||
if (synthesized)
|
||||
const Positioned(
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
child: _SyntheticBanner(),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
if (synthesized)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: _SyntheticCaption(bytes: bytes, onDark: true),
|
||||
),
|
||||
],
|
||||
if (synthesized)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: _SyntheticCaption(bytes: bytes, onDark: true),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user