Skip to content

Commit

Permalink
feat: Sign up request with the country and the language of the user (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed Jul 17, 2023
1 parent b8b0a8f commit 8051788
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import 'package:smooth_app/generic_lib/loading_dialog.dart';
import 'package:smooth_app/generic_lib/widgets/smooth_text_form_field.dart';
import 'package:smooth_app/helpers/analytics_helper.dart';
import 'package:smooth_app/helpers/user_management_helper.dart';
import 'package:smooth_app/query/product_query.dart';
import 'package:smooth_app/widgets/smooth_app_bar.dart';
import 'package:smooth_app/widgets/smooth_scaffold.dart';
import 'package:url_launcher/url_launcher.dart';
Expand Down Expand Up @@ -334,6 +335,8 @@ class _SignUpPageState extends State<SignUpPage> with TraceableClientMixin {
email: _emailController.trimmedText,
newsletter: _subscribe,
orgName: _foodProducer ? _brandController.trimmedText : null,
country: ProductQuery.getCountry(),
language: ProductQuery.getLanguage(),
),
title: appLocalisations.sign_up_page_action_doing_it,
);
Expand Down
4 changes: 2 additions & 2 deletions packages/smooth_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1003,10 +1003,10 @@ packages:
dependency: "direct main"
description:
name: openfoodfacts
sha256: "3573e7024423dbce1823d70ae0ba56363bd7f26ed89200d4cdc502d3990f695b"
sha256: a39131388148839f08fe4772cfd5dd77f2393bd7995edb9712e70742201d41fb
url: "https://pub.dev"
source: hosted
version: "2.6.0"
version: "2.7.1"
openfoodfacts_flutter_lints:
dependency: "direct dev"
description:
Expand Down
2 changes: 1 addition & 1 deletion packages/smooth_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ dependencies:



openfoodfacts: 2.6.0
openfoodfacts: 2.7.1
# openfoodfacts:
# path: ../../../openfoodfacts-dart

Expand Down

0 comments on commit 8051788

Please sign in to comment.