Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
fix(PostForm): Make description optional
Browse files Browse the repository at this point in the history
  • Loading branch information
moverval committed Jan 3, 2024
1 parent 1803e87 commit c671702
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/components/Post/Form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ class _PostFormState extends State<PostForm> {
});

// fill image
ImageManager
.getImageFileByKey(widget.initialPost!.imageId)
.then((image) {
ImageManager.getImageFileByKey(widget.initialPost!.imageId).then((image) {
setState(() {
_image = image;
});
Expand All @@ -95,7 +93,7 @@ class _PostFormState extends State<PostForm> {
}

Future<void> _submitForm() async {
if (_descriptionController.text.isEmpty || _rating == 0) {
if (_rating == 0) {
context.showToast(
Toast.levelToast(
message: "Bitte fülle alle Felder aus!",
Expand Down

0 comments on commit c671702

Please sign in to comment.