import 'package:flutter/material.dart';
import 'package:kasy_kit/core/theme/theme.dart';
import 'package:kasy_kit/i18n/translations.g.dart';

/// Brand row shown at the top of login and signup screens.
class AuthBrand extends StatelessWidget {
  const AuthBrand({super.key});

  static const double _iconSize = 28;

  @override
  Widget build(BuildContext context) {
    final TextStyle? nameStyle = context.textTheme.titleLarge;
    return Row(
      mainAxisAlignment: MainAxisAlignment.center,
      mainAxisSize: MainAxisSize.min,
      children: [
        Icon(
          KasyIcons.packageOutline,
          size: _iconSize,
          color: context.colors.onSurface,
        ),
        const SizedBox(width: KasySpacing.sm),
        Text(
          t.home.dashboard.brand,
          style: nameStyle?.copyWith(
            fontSize: (nameStyle.fontSize ?? 22) + 2,
            color: context.colors.onSurface,
            fontWeight: FontWeight.w800,
          ),
        ),
      ],
    );
  }
}
