iykyka/mobile/lib/widgets/brand_mark.dart

33 lines
789 B
Dart

import 'package:flutter/material.dart';
/// Compact messenger brand mark — blue tile, no glow.
class BrandMark extends StatelessWidget {
const BrandMark({super.key, this.size = 64});
final double size;
@override
Widget build(BuildContext context) {
final scheme = Theme.of(context).colorScheme;
return Container(
width: size,
height: size,
decoration: BoxDecoration(
color: scheme.primary,
borderRadius: BorderRadius.circular(size * 0.28),
),
alignment: Alignment.center,
child: Text(
'Y',
style: TextStyle(
color: scheme.onPrimary,
fontWeight: FontWeight.w700,
fontSize: size * 0.42,
height: 1,
letterSpacing: -0.5,
),
),
);
}
}