buildNotesTab method
Implementation
Widget buildNotesTab(GenericUploadController controller) {
return Column(
spacing: 20,
children: [
buildAddNoteField(controller),
Expanded(child: buildNoteList(controller)),
Row(
spacing: 10,
mainAxisAlignment: MainAxisAlignment.end,
children: [
Obx(() => controller.notes.isNotEmpty
? buildSaveAttachmentButton(controller)
: const Center(child: SizedBox.shrink())),
AppButton(
isCancelButton: true,
onPressed: () {
if (!controller.isEditScreen.value) {
controller.clearMedia();
}
Get.back();
},
text: 'Close')
],
),
],
);
}