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
@@ -16,7 +16,7 @@ class ChatCodeHover {
Object token,
String text,
Offset pointer, {
required bool cupertino,
bool? cupertino,
}) {
if (_disposed) return;
hide();
@@ -64,11 +64,7 @@ class ChatCodeHover {
child: Material(
elevation: 3,
borderRadius: BorderRadius.circular(8),
child: ChatCopyButton(
text: text,
cupertino: false,
showLabel: true,
),
child: ChatCopyButton(text: text, showLabel: true),
),
),
),
@@ -132,12 +128,12 @@ class ChatCodeCopyRegion extends StatefulWidget {
const ChatCodeCopyRegion({
super.key,
required this.code,
required this.cupertino,
this.cupertino,
required this.label,
required this.child,
});
final String code;
final bool cupertino;
final bool? cupertino;
final Widget label, child;
@override
State<ChatCodeCopyRegion> createState() => _ChatCodeCopyRegionState();
@@ -170,7 +166,6 @@ class _ChatCodeCopyRegionState extends State<ChatCodeCopyRegion> {
child: SelectionContainer.disabled(
child: ChatCopyButton(
text: widget.code,
cupertino: widget.cupertino,
showLabel: true,
),
),