Files
buzz/mobile/lib/features/channels/composer_send_origin.dart
klopez4212 231a469de5 Refresh mobile message bubbles, reactions, and activity cards (#8281)
## Summary

Refresh mobile conversations with left-aligned grouped bubbles without
tails, tighter consecutive-message spacing, distinct sender colors,
theme-aware incoming backgrounds, and compact overlapping reaction
trays. Attach reply counts beside reactions with up to three participant
avatars; keep outgoing mentions and links readable in both themes.
Coordinate a 500 ms composer-to-message transition with spring
contraction and an anchored avatar. Message ownership follows the
signing identity so profile reloads cannot recolor outgoing bubbles.

Center channel activities without timestamps or icons, keep names
tappable, and show two affected members plus a **See all** sheet. Hide
legacy purpose activities, match media corners to bubble groups, and add
iOS status-bar scroll-to-top. This is an independent mobile PR; no
desktop changes or color picker.

## Validation

- Full `just mobile-check` passed; `just mobile-test` passed 3,275 tests
with 4 skips, plus 3 unconfigured-gateway checks.
- Fixed message-widget lint warnings and a stale notification fixture
that blocked analysis. Made the video-controller disposal test wait for
lifecycle events instead of fixed delays. Mobile pre-push checks are
enabled.
- Physical iPhone previews were installed throughout development. The
latest bubble, reply-avatar, contrast, and spacing updates were
installed and launched on the physical iPhone. Final motion and
status-bar behavior still need device visual verification; Android has
automated coverage but no physical-device verification.

---------

Signed-off-by: kenny lopez <klopez4212@gmail.com>
2026-10-14 16:35:26 -04:00

24 lines
846 B
Dart

import 'dart:async';
import 'package:flutter/widgets.dart';
/// Carries submitted composer geometry through asynchronous send preparation.
class ComposerSendOrigin {
static final _zoneKey = Object();
/// Captures only geometry; no draft or identity data is retained.
static Rect? capture(GlobalKey key) {
final box = key.currentContext?.findRenderObject();
return box is RenderBox && box.hasSize && box.attached
? box.localToGlobal(Offset.zero) & box.size
: null;
}
/// Geometry for this send, isolated from other concurrent submissions.
static Rect? get current => Zone.current[_zoneKey] as Rect?;
/// Retains the submitted surface until this send creates its local claim.
static Future<void> run(Rect? origin, Future<void> Function() send) =>
runZoned(send, zoneValues: {_zoneKey: origin});
}