36 lines
997 B
Dart
36 lines
997 B
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:please_pay_me/theme/tokens.dart';
|
|
|
|
/// App glyph: rounded green tile with a ruble, same language as [AppIconBadge].
|
|
class AppBrandMark extends StatelessWidget {
|
|
const AppBrandMark({super.key, this.size = 96});
|
|
|
|
final double size;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final radius = size * 0.235;
|
|
return Container(
|
|
width: size,
|
|
height: size,
|
|
decoration: BoxDecoration(
|
|
color: AppColors.of(context, AppColors.accent),
|
|
borderRadius: BorderRadius.circular(radius),
|
|
boxShadow: [
|
|
BoxShadow(
|
|
color: AppColors.of(context, AppColors.accent).withValues(alpha: 0.28),
|
|
blurRadius: size * 0.28,
|
|
offset: Offset(0, size * 0.08),
|
|
),
|
|
],
|
|
),
|
|
alignment: Alignment.center,
|
|
child: Icon(
|
|
CupertinoIcons.money_rubl,
|
|
size: size * 0.52,
|
|
color: const Color(0xFFFFFFFF),
|
|
),
|
|
);
|
|
}
|
|
}
|