Merge upstream/dev (22 commits) [upstream-sync]
build / ci-image (push) Successful in 11s
build / build (push) Successful in 26m36s

Conflicts resolved by hand, our fork changes carried over:
- MainActivity.kt: keep the unread widget hooks next to upstream's
  scroll capture (attach and detach both).
- app_settings_screen.dart: upstream wrapped the list in
  MeshSettingsTileTheme; image-message and translation sections stay
  gated on kOnDeviceMl (ML-free build).
- channel_chat_screen.dart: upstream split build() into methods; took
  theirs and re-applied the terminal-theme list padding.
- chat_composer.dart: both imports (terminal_theme, radio_guard).
- mesh_nav_tile.dart: upstream's meshTileTitleStyle, with the smaller
  terminal-theme title kept.

flutter analyze clean, flutter test 1522 passed (CI image, local).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-11-10 15:30:43 +01:00
commit 185d2aca53
210 files changed
+52066 -5541

No files matched your search

+73 -7
View File
@@ -7,7 +7,9 @@ import '../l10n/l10n.dart';
import '../services/app_settings_service.dart';
import '../theme/mesh_theme.dart';
import '../theme/terminal_theme.dart';
import '../utils/radio_guard.dart';
import 'byte_count_input.dart';
import 'connect_sheet.dart';
import 'gif_message.dart';
import 'gif_picker.dart';
import 'mesh_ui.dart';
@@ -117,13 +119,7 @@ class ChatComposer extends StatelessWidget {
for (final action in actions)
PopupMenuItem(
value: action.id,
child: Row(
children: [
Icon(action.icon),
const SizedBox(width: 12),
Flexible(child: Text(action.label)),
],
),
child: MeshMenuItemRow(icon: action.icon, label: action.label),
),
],
);
@@ -134,6 +130,9 @@ class ChatComposer extends StatelessWidget {
@override
Widget build(BuildContext context) {
final scheme = Theme.of(context).colorScheme;
// Offline the chat is read-only. The draft stays in [controller] (owned
// by the screen) and is back when the radio reconnects.
if (context.radioReadOnly) return const OfflineComposerBar();
final translation = context
.select<AppSettingsService, (bool, bool, String?)>(
(s) => (
@@ -297,3 +296,70 @@ class ChatComposer extends StatelessWidget {
);
}
}
/// Stands in for the composer while no radio is connected.
class OfflineComposerBar extends StatelessWidget {
const OfflineComposerBar({super.key});
@override
Widget build(BuildContext context) {
final scheme = Theme.of(context).colorScheme;
return Container(
decoration: BoxDecoration(
color: scheme.surfaceContainerLow,
border: Border(top: BorderSide(color: scheme.outlineVariant, width: 1)),
),
child: SafeArea(
child: Padding(
padding: const EdgeInsets.fromLTRB(16, 10, 12, 10),
child: LayoutBuilder(
builder: (context, constraints) {
final message = Row(
children: [
Icon(
Icons.cloud_off,
color: scheme.onSurfaceVariant,
size: 24,
),
const SizedBox(width: 12),
Expanded(
child: Text(
context.l10n.chat_composerOffline,
style: Theme.of(
context,
).textTheme.bodyLarge?.copyWith(color: scheme.onSurface),
),
),
],
);
// Side by side when there is room; otherwise the button goes
// under the message so large text never squeezes it.
final roomy =
constraints.maxWidth /
MediaQuery.textScalerOf(context).scale(1) >=
420;
if (roomy) {
return Row(
children: [
Expanded(child: message),
const SizedBox(width: 8),
const ConnectButton(),
],
);
}
return Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.end,
children: [
message,
const SizedBox(height: 8),
const ConnectButton(),
],
);
},
),
),
),
);
}
}