import 'package:flutter/material.dart'; import '../../../core/theme/app_colors.dart'; /// Tloto brand mark (SVG/PNG asset) with optional wordmark. class PrediqoLogo extends StatelessWidget { const PrediqoLogo({ super.key, this.size = 48, this.showWordmark = true, this.wordmarkStyle, this.gap = 12, }); final double size; final bool showWordmark; final TextStyle? wordmarkStyle; final double gap; @override Widget build(BuildContext context) { final mark = ClipRRect( borderRadius: BorderRadius.circular(size * 0.22), child: Image.asset( 'assets/brand/prediqo-mark.png', width: size, height: size, fit: BoxFit.cover, errorBuilder: (_, __, ___) => _FallbackMark(size: size), ), ); if (!showWordmark) return mark; return Row( mainAxisSize: MainAxisSize.min, children: [ mark, SizedBox(width: gap), Text( 'TLOTO', style: wordmarkStyle ?? Theme.of(context).textTheme.headlineMedium?.copyWith( fontWeight: FontWeight.w900, letterSpacing: 0.3, ), ), ], ); } } class _FallbackMark extends StatelessWidget { const _FallbackMark({required this.size}); final double size; @override Widget build(BuildContext context) { return Container( width: size, height: size, decoration: BoxDecoration( color: AppColors.bgDark, borderRadius: BorderRadius.circular(size * 0.22), border: Border.all(color: AppColors.accentGold, width: 1.5), ), child: Icon( Icons.auto_awesome_rounded, size: size * 0.45, color: AppColors.primaryLight, ), ); } }