mirror of
https://github.com/block/buzz.git
synced 2026-11-01 23:11:58 +00:00
Replace the mobile Agents sheet with a full-page directory of verified owned agents. Add dedicated creation and avatar pages with catalog-backed model selection, reuse the profile emoji/photo/camera controls, and expose Builderbot model settings while labeling desktop agents “Manage on desktop.” Share one account-scoped model catalog across editable cards and retries. Choose Bestie from the agent profile using the shared encrypted main-agent record (text-only action, filled star once selected), and move confirmed deletion to a top-left trash control with native iOS glass. Include uploaded avatars in owner registrations so desktop can display them. Validation: mobile analysis and all 3,958 hosted-enabled app tests passed; default-build tests run by the push hook. Earlier iPhone build installed and iterated with the user; the current iOS build succeeds, but final changes still need a device pass. Independent review found no new blockers. Actual camera capture and live Bestie sync remain unconfirmed; the existing shared `main-agent` wire format and Bestie terminology are retained. ### Snapshots Widget-harness captures with test data (not native iOS chrome). | Agents directory | Image avatar editor | | --- | --- | |  |  | --------- Signed-off-by: kenny lopez <klopez4212@gmail.com> Co-authored-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz>
69 lines
2.3 KiB
Dart
69 lines
2.3 KiB
Dart
import 'dart:ui';
|
|
import 'package:flutter/material.dart';
|
|
import '../animated_avatar.dart';
|
|
import '../theme/theme.dart';
|
|
import 'avatar_image.dart';
|
|
|
|
/// A desktop-style profile container with static, faded portrait artwork.
|
|
class AgentArtworkPanel extends StatelessWidget {
|
|
const AgentArtworkPanel({
|
|
required this.imageUrl,
|
|
required this.child,
|
|
this.borderRadius,
|
|
super.key,
|
|
});
|
|
final String? imageUrl;
|
|
final Widget child;
|
|
final BorderRadius? borderRadius;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final poster = parseAnimatedAvatarUrl(imageUrl)?.posterUrl ?? imageUrl;
|
|
return ClipRRect(
|
|
borderRadius: borderRadius ?? BorderRadius.circular(Radii.card),
|
|
child: ColoredBox(
|
|
color: context.colors.surfaceContainerLow,
|
|
child: Stack(
|
|
children: [
|
|
if (poster != null && !MediaQuery.highContrastOf(context))
|
|
Positioned.fill(
|
|
child: IgnorePointer(
|
|
child: ExcludeSemantics(
|
|
child: RepaintBoundary(
|
|
child: ShaderMask(
|
|
blendMode: BlendMode.dstIn,
|
|
shaderCallback: (bounds) => const LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: [Colors.white, Colors.transparent],
|
|
stops: [0.05, 0.7],
|
|
).createShader(bounds),
|
|
child: Opacity(
|
|
opacity: .55,
|
|
child: ImageFiltered(
|
|
imageFilter: ImageFilter.blur(
|
|
sigmaX: 40,
|
|
sigmaY: 40,
|
|
),
|
|
child: Transform.scale(
|
|
scale: 2,
|
|
child: AvatarImageContent(
|
|
imageUrl: poster,
|
|
fallback: const SizedBox.shrink(),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
child,
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|