-
-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added feedback form links (#3487)
* added feedback form links * formated code * localization * feedback form link function * removed unwanted imports * new class file for userfeedbacklink * fix: Imports Co-authored-by: Marvin Möltgen <39344769+M123-dev@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
34 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import 'package:openfoodfacts/openfoodfacts.dart'; | ||
import 'package:smooth_app/query/product_query.dart'; | ||
|
||
// ignore: avoid_classes_with_only_static_members | ||
class UserFeedbackHelper { | ||
static String getFeedbackFormLink() { | ||
final String languageCode = ProductQuery.getLanguage().code; | ||
if (languageCode == 'en') { | ||
return 'https://forms.gle/AuNZG6fXyAPqN5tL7'; | ||
} else if (languageCode == 'de') { | ||
return 'https://forms.gle/vCurhD2Y3ewS1YPv5'; | ||
} else if (languageCode == 'es') { | ||
return 'https://forms.gle/CSMmuzR8i4LJBjbM9'; | ||
} else if (languageCode == 'fr') { | ||
return 'https://forms.gle/cTR4wqGmW7pGUiaBA'; | ||
} else if (languageCode == 'it') { | ||
return 'https://forms.gle/9HcCLFznym1ByQgB6'; | ||
} else { | ||
return 'https://forms.gle/AuNZG6fXyAPqN5tL7'; | ||
} | ||
} | ||
} |
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