Files
fanuzu/app/lib/core/ui/bolt_badge.dart

27 lines
829 B
Dart

import 'package:flutter/material.dart';
import '../theme/tokens.dart';
/// 시안의 CONTRIBUTION · 누적 기여 POP 아이콘 — 파란 그라디언트 원에 흰 번개.
/// 다른 3D 아이콘과 달리 Figma 에서 벡터라 이미지로 내보낼 수 없어 위젯으로 그린다.
class BoltBadge extends StatelessWidget {
const BoltBadge({super.key, this.size = 40});
final double size;
@override
Widget build(BuildContext context) => Container(
width: size,
height: size,
decoration: const BoxDecoration(
shape: BoxShape.circle,
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [AppColors.neonCyan, AppColors.cosmicBlue],
),
),
child: Icon(Icons.bolt, size: size * 0.6, color: AppColors.onCosmic),
);
}