import 'package:flutter/material.dart'; class AppLogo extends StatelessWidget { const AppLogo({super.key, this.size = 64, this.showText = false}); final double size; final bool showText; @override Widget build(BuildContext context) { final colors = Theme.of(context).colorScheme; return Row( mainAxisSize: MainAxisSize.min, children: [ Container( width: size, height: size, decoration: BoxDecoration( borderRadius: BorderRadius.circular(size * 0.32), boxShadow: [ BoxShadow( color: const Color(0xFF075985).withValues(alpha: 0.28), blurRadius: 22, offset: const Offset(0, 12), ), ], ), child: ClipRRect( borderRadius: BorderRadius.circular(size * 0.32), child: Image.asset( 'assets/logo/semeru_app_logo.png', width: size, height: size, fit: BoxFit.cover, errorBuilder: (context, error, stackTrace) { return Icon( Icons.terrain_rounded, color: colors.onPrimary, size: size * 0.54, ); }, ), ), ), if (showText) ...[ const SizedBox(width: 10), Text( 'Explore\nLumajang', style: Theme.of(context).textTheme.titleSmall?.copyWith( fontWeight: FontWeight.w800, height: 1.05, ), ), ], ], ); } }