buildAddNoteField method
Implementation
Widget buildAddNoteField(GenericUploadController controller) {
return !controller.isViewScreen.value
? Row(
spacing: 10,
children: [
Expanded(
child: AppTextField(
width: double.infinity,
controller: controller.noteController,
hint: 'Enter Note',
),
),
ValueListenableBuilder<TextEditingValue>(
valueListenable: controller.noteController,
builder: (context, value, _) {
return Visibility(
visible: value.text.isNotEmpty,
child: AppIconButton(
onPressed: controller.addNote,
icon: Icons.add_outlined,
),
);
},
),
],
)
: const SizedBox.shrink();
}