Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<user-permisiion android: name= "android.permission.INTERNET"/>
<application
android:label="receipe_app"
android:name="${applicationName}"
Expand Down Expand Up @@ -31,3 +32,4 @@
android:value="2" />
</application>
</manifest>
S
1 change: 0 additions & 1 deletion lib/ui/views/new_dish/new_dish_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class NewDishViewModel extends FormViewModel {
);

final response = await _dishService.createDish(info);

if (response != null) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, actually for this, you need to take care of the null, it's something that can happen and we need to let the user know that an unknown error has occurred. Using the negative first approach to building the success area in a try-and-catch block helps solve a lot in the mobile space.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡

DialogResponse<dynamic>? dialogResponse =
await _dialogService.showDialog(
Expand Down
1 change: 1 addition & 0 deletions lib/ui/views/signup/signup_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class SignupViewModel extends FormViewModel {
await _dialogService.showDialog(
description: "Account created successfully.",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we are using l10n for our texts?

);

}
} on RecipeException catch (e) {
_dialogService.showDialog(
Expand Down