AddDiaryEntryPage constructor

AddDiaryEntryPage({
  1. Key? key,
  2. required void onSave()?,
  3. required void switchToCameraScreen()?,
  4. required void switchToDiaryScreen()?,
  5. required void deletePhoto(
    1. String photoPath
    )?,
  6. required TextEditingController titleController,
  7. required TextEditingController descriptionController,
  8. required TextEditingController locationController,
  9. required TextEditingController dateController,
  10. required bool isAiGenerated,
  11. required void onAiGeneratedChanged(
    1. bool
    )?,
  12. List<String> initialPhotoUrls = const [],
})

Creates a page to add a new diary entry.

Implementation

AddDiaryEntryPage({
  super.key,
  required this.onSave,
  required this.switchToCameraScreen,
  required this.switchToDiaryScreen,
  required this.deletePhoto,
  required this.titleController,
  required this.descriptionController,
  required this.locationController,
  required this.dateController,
  required this.isAiGenerated,
  required this.onAiGeneratedChanged,
  this.initialPhotoUrls = const [],
});