feat(app): segmented glass top bar across the app
Extract the chat's segmented bar into lib/ui/adaptive (SegmentedBar, GlassPill, SegmentedBarOverlay) and use it for the shell bar, DetailPane and every page-level bar. Pieces are frosted glass over a fading scrim; only pills take taps. Actions keep their natural width so the title gives way before a model name. The chat transcript scrolls behind its header.
This commit is contained in:
@@ -281,7 +281,14 @@ void main() {
|
||||
// Drag like an operator: a programmatic scroll is undone by the
|
||||
// view's follow-to-latest, while a user drag stops following.
|
||||
final list = find.byKey(const ValueKey<String>('chat-thread-s'));
|
||||
final viewport = tester.getRect(list);
|
||||
// The transcript scrolls behind the floating header; only the part
|
||||
// below it is visible.
|
||||
final viewport = Rect.fromLTRB(
|
||||
tester.getRect(list).left,
|
||||
tester.getRect(find.byKey(const Key('chat-thread-header'))).bottom,
|
||||
tester.getRect(list).right,
|
||||
tester.getRect(list).bottom,
|
||||
);
|
||||
for (var i = 0; i < 10; i++) {
|
||||
final rect = tester.getRect(control);
|
||||
if (rect.top >= viewport.top && rect.bottom <= viewport.bottom) break;
|
||||
|
||||
Reference in New Issue
Block a user