Merge upstream/dev (22 commits) [upstream-sync]
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:
commit
185d2aca53
210 files changed
+52066
-5541
No files matched your search
@@ -2,6 +2,29 @@ import 'package:flutter/material.dart';
|
||||
|
||||
import '../theme/terminal_theme.dart';
|
||||
|
||||
/// Title style of settings rows: [MeshNavTile] and, through
|
||||
/// [MeshSettingsTileTheme], stock [ListTile]s and [SwitchListTile]s.
|
||||
TextStyle? meshTileTitleStyle(ThemeData theme) =>
|
||||
theme.textTheme.bodyLarge?.copyWith(fontWeight: FontWeight.w600);
|
||||
|
||||
/// Gives the [ListTile]s, [SwitchListTile]s and [CheckboxListTile]s below it
|
||||
/// the same semibold title as [MeshNavTile], so settings rows built from
|
||||
/// either read alike. Subtitles already match (`bodyMedium`,
|
||||
/// `onSurfaceVariant`). Wrap a settings screen's body in it.
|
||||
class MeshSettingsTileTheme extends StatelessWidget {
|
||||
final Widget child;
|
||||
|
||||
const MeshSettingsTileTheme({super.key, required this.child});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ListTileTheme.merge(
|
||||
titleTextStyle: meshTileTitleStyle(Theme.of(context)),
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Settings-style navigation row: leading icon, bold title, secondary
|
||||
/// subtitle and an optional trailing chevron.
|
||||
///
|
||||
@@ -55,8 +78,13 @@ class MeshNavTile extends StatelessWidget {
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
style: (terminal ? textTheme.bodyMedium : textTheme.bodyLarge)
|
||||
?.copyWith(fontWeight: FontWeight.w600, color: titleColor),
|
||||
style:
|
||||
(terminal
|
||||
? textTheme.bodyMedium?.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
)
|
||||
: meshTileTitleStyle(theme))
|
||||
?.copyWith(color: titleColor),
|
||||
),
|
||||
if (subtitle != null) ...[
|
||||
const SizedBox(height: 2),
|
||||
|
||||
Reference in new issue
Block a user