-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #282 from mdgspace/casper/feedback
feat: integrates feedback with the backend
- Loading branch information
Showing
10 changed files
with
275 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
part of 'feedback_page_bloc.dart'; | ||
|
||
// ignore: must_be_immutable | ||
class FeedbackPageState extends Equatable { | ||
const FeedbackPageState({ | ||
FeedbackPageState({ | ||
required this.rating, | ||
required this.description, | ||
required this.mealId, | ||
required this.submitted, | ||
required this.error, | ||
}); | ||
|
||
const FeedbackPageState.initial() | ||
: rating = const [0, 0, 0, 0, 0], | ||
FeedbackPageState.initial() | ||
: rating = 0, | ||
description = '', | ||
mealId = 0, | ||
submitted = false, | ||
error = false; | ||
|
||
final List<int> rating; | ||
int rating; | ||
final String description; | ||
final int mealId; | ||
final bool submitted; | ||
final bool error; | ||
|
||
@override | ||
List<Object> get props => [rating, description, error]; | ||
List<Object> get props => [rating, description, mealId, error]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.