Remove dead Cupertino chat paths

Keep the chat transcript and toolbar on their existing Material behavior while removing obsolete Cupertino-only helpers, arguments, and icon metadata. Preserve compatibility parameters where callers outside this lane still require them.
This commit is contained in:
2026-11-11 20:05:45 +00:00
parent 3f05421e8b
commit 87a568a7b4
11 changed files with 31 additions and 74 deletions
@@ -31,13 +31,8 @@ Color chatBubbleFill(BuildContext context, Color base) {
/// in the host's own surface roles. The agent's turn has no bubble at all; its
/// text sits on the page, so only the operator's words are enclosed.
class ChatUserBubble extends StatelessWidget {
const ChatUserBubble({
super.key,
required this.cupertino,
required this.child,
});
const ChatUserBubble({super.key, required this.child});
final bool cupertino;
final Widget child;
static const BorderRadius _radius = BorderRadius.all(Radius.circular(20));
@@ -65,13 +60,8 @@ class ChatUserBubble extends StatelessWidget {
/// The agent's answer drawn straight on the page. Material keeps a transparent
/// surface so disclosure ListTiles still paint their ink.
class ChatAgentSurface extends StatelessWidget {
const ChatAgentSurface({
super.key,
required this.cupertino,
required this.child,
});
const ChatAgentSurface({super.key, required this.child});
final bool cupertino;
final Widget child;
@override
@@ -81,7 +71,7 @@ class ChatAgentSurface extends StatelessWidget {
/// The transcript's reading text: the host's large body role, so answers read
/// at a comfortable size and still follow the operator's text scaling.
TextStyle? chatMessageTextStyle(BuildContext context, bool cupertino) =>
TextStyle? chatMessageTextStyle(BuildContext context, [bool? cupertino]) =>
Theme.of(context).textTheme.bodyLarge;
/// The empty-line gap between two paragraphs of a reply: about one line of