VInputTheme.dark constructor
VInputTheme.dark({
- BoxDecoration containerDecoration = const BoxDecoration(color: Color(0xf7232121), borderRadius: BorderRadius.all(Radius.circular(15))),
- Widget trashIcon = const Icon(PhosphorIcons.trash, color: Colors.redAccent, size: 30),
- Widget cameraIcon = const Icon(PhosphorIcons.camera, size: 26, color: Colors.green),
- Widget fileIcon = const Icon(PhosphorIcons.paperclip, size: 26, color: Colors.green),
- Widget emojiIcon = const Icon(PhosphorIcons.smiley, size: 26, color: Colors.green),
- InputDecoration textFieldDecoration = const InputDecoration(border: InputBorder.none, fillColor: Colors.transparent),
- Widget? recordBtn,
- TextStyle textFieldTextStyle = const TextStyle(height: 1.3),
- Widget? sendBtn,
Implementation
VInputTheme.dark({
this.containerDecoration = const BoxDecoration(
color: Color(0xf7232121),
borderRadius: BorderRadius.all(
Radius.circular(15),
),
),
this.trashIcon = const Icon(
PhosphorIcons.trash,
color: Colors.redAccent,
size: 30,
),
this.cameraIcon = const Icon(
PhosphorIcons.camera,
size: 26,
color: Colors.green,
),
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.textFieldTextStyle = const TextStyle(height: 1.3),
this.sendBtn,
}) {
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,
),
);
}