34 lines
824 B
Dart
34 lines
824 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class UserIconElement extends StatelessWidget {
|
|
const UserIconElement({super.key, required this.initials, required this.userColor});
|
|
|
|
final String initials;
|
|
final Color userColor;
|
|
static const Color backgroundColor = Color(0xFF1A1A2E);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
width: 24,
|
|
height: 24,
|
|
alignment: Alignment.center,
|
|
decoration: BoxDecoration(
|
|
color: backgroundColor,
|
|
border: Border.all(
|
|
color: userColor,
|
|
width: 1,
|
|
),
|
|
borderRadius: BorderRadius.circular(1)
|
|
),
|
|
child: Text(
|
|
initials,
|
|
style: TextStyle(
|
|
color: userColor,
|
|
fontWeight: FontWeight(700),
|
|
fontSize: 10,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |