Skip to content

Commit

Permalink
Use the same layout between the country and language picker (in the s…
Browse files Browse the repository at this point in the history
…ettings)
  • Loading branch information
g123k committed Jan 18, 2025
1 parent 277eea2 commit 5785c06
Show file tree
Hide file tree
Showing 16 changed files with 1,098 additions and 567 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import 'package:smooth_app/pages/preferences/user_preferences_languages_list.dar
import 'package:smooth_app/query/product_query.dart';
import 'package:smooth_app/widgets/smooth_text.dart';

class LanguageSelector extends StatelessWidget {
const LanguageSelector({
class LanguagesSelector extends StatelessWidget {
const LanguagesSelector({
required this.setLanguage,
this.selectedLanguages,
this.displayedLanguage,
Expand Down
8 changes: 8 additions & 0 deletions packages/smooth_app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2681,6 +2681,14 @@
"@language_picker_label": {
"description": "Choose Application Language"
},
"country_picker_label": "Your country",
"@country_picker_label": {
"description": "Choose Application Country"
},
"currency_picker_label": "Your currency",
"@currency_picker_label": {
"description": "Choose Application Country"
},
"help_with_openfoodfacts": "Help with OpenFoodFacts",
"@help_with_openfoodfacts": {
"description": "Label for the email title"
Expand Down
8 changes: 8 additions & 0 deletions packages/smooth_app/lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2681,6 +2681,14 @@
"@language_picker_label": {
"description": "Choose Application Language"
},
"country_picker_label": "Votre pays",
"@country_picker_label": {
"description": "Choose Application Country"
},
"currency_picker_label": "Votre devise",
"@currency_picker_label": {
"description": "Choose Application Country"
},
"help_with_openfoodfacts": "Bienvenue sur OpenFoodFacts",
"@help_with_openfoodfacts": {
"description": "Label for the email title"
Expand Down
18 changes: 16 additions & 2 deletions packages/smooth_app/lib/pages/onboarding/welcome_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,24 @@ class WelcomePage extends StatelessWidget {
padding: const EdgeInsetsDirectional.only(
start: SMALL_SPACE,
end: LARGE_SPACE,
top: SMALL_SPACE,
bottom: SMALL_SPACE,
),
inkWellBorderRadius: ANGULAR_BORDER_RADIUS,
icon: const icons.Arrow.right(
size: 15.0,
icon: const DecoratedBox(
decoration: BoxDecoration(
color: Colors.black,
shape: BoxShape.circle,
),
child: Padding(
padding: EdgeInsetsDirectional.all(
SMALL_SPACE,
),
child: icons.Arrow.right(
size: 15.0,
color: Colors.white,
),
),
),
textStyle:
TextStyle(color: theme.primaryColor),
Expand Down
Loading

0 comments on commit 5785c06

Please sign in to comment.