Remove Cupertino chat transcript branches
Keep the existing Material transcript path while preserving public Cupertino parameters for callers. Narrow transcript tests to the Material-only behavior and remove Cupertino-only fixtures.
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../sessions/chat_adaptive.dart';
|
||||
|
||||
/// Rounds an attachment thumbnail and draws a subtle hairline around it, so a
|
||||
/// dark screenshot on a dark page (or a light one on a light page) still reads
|
||||
/// as a separate object. The line sits over the image's edge, in the host's
|
||||
@@ -19,11 +16,7 @@ class ChatAttachmentFrame extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final cupertino =
|
||||
chatControlsStyleOf(context) == ChatControlsStyle.cupertino;
|
||||
final line = cupertino
|
||||
? CupertinoColors.separator.resolveFrom(context)
|
||||
: Theme.of(context).colorScheme.outlineVariant;
|
||||
final line = Theme.of(context).colorScheme.outlineVariant;
|
||||
return Container(
|
||||
key: const Key('chat-attachment-frame'),
|
||||
foregroundDecoration: BoxDecoration(
|
||||
|
||||
Reference in New Issue
Block a user