VInputTheme.light constructor

VInputTheme.light({
  1. BoxDecoration containerDecoration = const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(15))),
  2. Widget cameraIcon = const Icon(PhosphorIcons.camera, size: 26, color: Colors.green),
  3. Widget trashIcon = const Icon(PhosphorIcons.trash, color: Colors.redAccent, size: 30),
  4. Widget fileIcon = const Icon(PhosphorIcons.paperclip, size: 26, color: Colors.green),
  5. Widget emojiIcon = const Icon(PhosphorIcons.smiley, size: 26, color: Colors.green),
  6. InputDecoration textFieldDecoration = const InputDecoration(border: InputBorder.none, fillColor: Colors.transparent),
  7. Widget? recordBtn,
  8. Widget? sendBtn,
  9. TextStyle textFieldTextStyle = const TextStyle(height: 1.3),
})

Implementation

VInputTheme.light({
  this.containerDecoration = const BoxDecoration(
    color: Colors.white,
    borderRadius: BorderRadius.all(
      Radius.circular(15),
    ),
  ),
  this.cameraIcon = const Icon(
    PhosphorIcons.camera,
    size: 26,
    color: Colors.green,
  ),
  this.trashIcon = const Icon(
    PhosphorIcons.trash,
    color: Colors.redAccent,
    size: 30,
  ),
  this.fileIcon = const Icon(
    PhosphorIcons.paperclip,
    size: 26,
    color: Colors.green,
  ),
  this.emojiIcon = const Icon(
    PhosphorIcons.smiley,
    size: 26,
    color: Colors.green,
  ),
  this.textFieldDecoration = const InputDecoration(
    border: InputBorder.none,
    fillColor: Colors.transparent,
  ),
  this.recordBtn,
  this.sendBtn,
  this.textFieldTextStyle = const TextStyle(height: 1.3),
}) {
  recordBtn ??= Container(
    padding: const EdgeInsets.all(7),
    decoration: const BoxDecoration(
      shape: BoxShape.circle,
      color: Colors.green,
    ),
    child: const Icon(
      PhosphorIcons.microphoneFill,
      color: Colors.white,
    ),
  );
  sendBtn ??= Container(
    padding: const EdgeInsets.all(7),
    decoration: const BoxDecoration(
      shape: BoxShape.circle,
      color: Colors.green,
    ),
    child: const Icon(
      Icons.send,
      color: Colors.white,
    ),
  );
}