feat(chat): frame attachment thumbnails with a subtle hairline
Sent images and composer thumbnails share ChatAttachmentFrame: rounded corners plus a faint outline in the host's outline role, so a dark screenshot no longer melts into a dark page. Adds a web probe that renders the streaming activity line at several text sizes.
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../data/chat_attachment_images.dart';
|
||||
import 'chat_attachment_frame.dart';
|
||||
import 'chat_image_viewer.dart';
|
||||
|
||||
/// The largest edge a sent image's thumbnail takes in the transcript.
|
||||
@@ -105,8 +106,8 @@ class _ChatAttachmentThumbnailState extends State<ChatAttachmentThumbnail> {
|
||||
|
||||
Widget _thumbnail(BuildContext context, Uint8List bytes) {
|
||||
final ratio = MediaQuery.devicePixelRatioOf(context);
|
||||
final image = ClipRRect(
|
||||
borderRadius: _radius,
|
||||
final image = ChatAttachmentFrame(
|
||||
radius: _radius,
|
||||
child: Image(
|
||||
key: const Key('chat-attachment-thumbnail-image'),
|
||||
// Decode at the thumbnail's size, not the photo's, while scrolling.
|
||||
|
||||
Reference in New Issue
Block a user