mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
fix: Reset fallback sharing state
This commit is contained in:
@@ -394,7 +394,7 @@ class _CustomMapSarUpdateSheetState extends State<CustomMapSarUpdateSheet> {
|
||||
controller: _notesController,
|
||||
maxLines: 3,
|
||||
decoration: InputDecoration(
|
||||
hintText: 'Add additional details',
|
||||
hintText: AppLocalizations.of(context)!.addAdditionalDetails,
|
||||
filled: true,
|
||||
fillColor: colorScheme.surfaceContainerHighest,
|
||||
border: OutlineInputBorder(
|
||||
|
||||
@@ -11,6 +11,7 @@ import '../../providers/contacts_provider.dart';
|
||||
import '../../providers/image_provider.dart' as ip;
|
||||
import '../../providers/messages_provider.dart';
|
||||
import '../../utils/image_message_parser.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
import '../../utils/transmission_target_resolver.dart';
|
||||
import 'transfer_timeout.dart';
|
||||
|
||||
@@ -237,7 +238,7 @@ class _ImageMessageBubbleState extends State<ImageMessageBubble> {
|
||||
onPressed: () => _cancelReceive(envelope.sessionId),
|
||||
icon: const Icon(Icons.close, size: 20),
|
||||
color: Colors.white70,
|
||||
tooltip: 'Cancel image receive',
|
||||
tooltip: AppLocalizations.of(context)!.cancelImageReceive,
|
||||
),
|
||||
),
|
||||
] else if (_errorText != null) ...[
|
||||
@@ -255,7 +256,7 @@ class _ImageMessageBubbleState extends State<ImageMessageBubble> {
|
||||
pathLen: pathLen,
|
||||
),
|
||||
icon: const Icon(Icons.refresh, size: 18),
|
||||
label: const Text('Retry'),
|
||||
label: Text(AppLocalizations.of(context)!.retry),
|
||||
style: TextButton.styleFrom(
|
||||
foregroundColor: Colors.white70,
|
||||
),
|
||||
@@ -657,7 +658,7 @@ class _ImageMessageBubbleState extends State<ImageMessageBubble> {
|
||||
onPressed: () => Navigator.of(dialogContext).pop(),
|
||||
icon: const Icon(Icons.close),
|
||||
color: Colors.white,
|
||||
tooltip: 'Close',
|
||||
tooltip: AppLocalizations.of(context)!.close,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_map/flutter_map.dart' as flutter_map;
|
||||
import 'package:latlong2/latlong.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
import '../../models/ble_packet_log.dart';
|
||||
import '../../models/message.dart';
|
||||
import '../../providers/connection_provider.dart';
|
||||
@@ -133,7 +134,7 @@ class _MessageTraceSheetState extends State<MessageTraceSheet> {
|
||||
child: Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Text('Failed to load trace: ${snapshot.error}'),
|
||||
child: Text(AppLocalizations.of(context)!.failedToLoadTrace(snapshot.error.toString())),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -602,7 +602,7 @@ class _RecipientSelectorSheetState extends State<RecipientSelectorSheet> {
|
||||
final colorScheme = Theme.of(context).colorScheme;
|
||||
|
||||
return PopupMenuButton<_RecipientSortMode>(
|
||||
tooltip: 'Sort',
|
||||
tooltip: AppLocalizations.of(context)!.sort,
|
||||
initialValue: _sortMode,
|
||||
onSelected: (sortMode) {
|
||||
setState(() {
|
||||
@@ -642,13 +642,13 @@ class _RecipientSelectorSheetState extends State<RecipientSelectorSheet> {
|
||||
],
|
||||
),
|
||||
),
|
||||
const PopupMenuItem<_RecipientSortMode>(
|
||||
PopupMenuItem<_RecipientSortMode>(
|
||||
value: _RecipientSortMode.alphabetical,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(Icons.sort_by_alpha_rounded, size: 18),
|
||||
SizedBox(width: 8),
|
||||
Text('A-Z'),
|
||||
const Icon(Icons.sort_by_alpha_rounded, size: 18),
|
||||
const SizedBox(width: 8),
|
||||
Text(AppLocalizations.of(context)!.aToZ),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user