InitialsCircle constructor

const InitialsCircle({
  1. Key? key,
  2. required String initials,
  3. Color backgroundColor = const Color(0xFFFD4563),
  4. double size = 50.0,
  5. TextStyle textStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 15.0),
  6. bool isSelected = false,
  7. VoidCallback? onEdit,
})

Implementation

const InitialsCircle({
  super.key,
  required this.initials,
  this.backgroundColor = const Color(0xFFFD4563),
  this.size = 50.0,
  this.textStyle = const TextStyle(
    color: Colors.white,
    fontWeight: FontWeight.bold,
    fontSize: 15.0,
  ),
  this.isSelected = false,
  this.onEdit, // Callback for the edit button
});