fix: Reset fallback sharing state

This commit is contained in:
Janez T
2026-04-07 14:04:45 +02:00
parent e5514b4ef9
commit 44a668df93
64 changed files with 12741 additions and 8677 deletions

View File

@@ -534,6 +534,7 @@ class _ContactsTabState extends State<ContactsTab> {
final result = await context.read<AppProvider>().setChannelLocationSharingEnabled(
channelIdx,
enabled,
l10n: AppLocalizations.of(context),
);
if (!context.mounted) return;
ToastLogger.success(context, result.message);
@@ -1442,7 +1443,7 @@ class _ContactsTabState extends State<ContactsTab> {
height: 1.1,
),
decoration: InputDecoration(
hintText: 'Search this section',
hintText: AppLocalizations.of(context)!.searchThisSection,
hintStyle: theme.textTheme.bodyMedium?.copyWith(
color: colorScheme.onSurfaceVariant.withValues(
alpha: 0.85,
@@ -1601,7 +1602,7 @@ class _ContactsTabState extends State<ContactsTab> {
final availableModes = _availableSortModes(section);
return PopupMenuButton<ContactSortMode>(
tooltip: 'Sort',
tooltip: AppLocalizations.of(context)!.sort,
initialValue: selectedMode,
onSelected: (sortMode) {
setState(() {
@@ -1862,7 +1863,7 @@ class _InferredContactGroupCard extends StatelessWidget {
if (onDelete != null) ...[
const SizedBox(width: 2),
IconButton(
tooltip: 'Delete group',
tooltip: AppLocalizations.of(context)!.deleteGroup,
onPressed: onDelete,
visualDensity: VisualDensity.compact,
constraints: const BoxConstraints.tightFor(