From 341ebb59b41f3eddf3dcb5187e716b7254fcf843 Mon Sep 17 00:00:00 2001 From: maxxkim Date: Tue, 19 Dec 2023 10:23:26 +0300 Subject: [PATCH] Added locales and fixed app icon --- .dhiwise/config | 2 +- .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 2650 -> 2650 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 1877 -> 1877 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 3341 -> 3341 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 4926 -> 4926 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 6542 -> 6542 bytes android/build.gradle | 2 +- .../Icon-App-1024x1024@1x.png | Bin 37901 -> 37901 bytes .../AppIcon.appiconset/Icon-App-20x20@1x.png | Bin 1552 -> 1552 bytes .../AppIcon.appiconset/Icon-App-20x20@2x.png | Bin 1663 -> 1663 bytes .../AppIcon.appiconset/Icon-App-20x20@3x.png | Bin 2392 -> 2392 bytes .../AppIcon.appiconset/Icon-App-29x29@1x.png | Bin 1282 -> 1282 bytes .../AppIcon.appiconset/Icon-App-29x29@2x.png | Bin 2319 -> 2319 bytes .../AppIcon.appiconset/Icon-App-29x29@3x.png | Bin 3442 -> 3442 bytes .../AppIcon.appiconset/Icon-App-40x40@1x.png | Bin 1663 -> 1663 bytes .../AppIcon.appiconset/Icon-App-40x40@2x.png | Bin 3163 -> 3163 bytes .../AppIcon.appiconset/Icon-App-40x40@3x.png | Bin 4665 -> 4665 bytes .../AppIcon.appiconset/Icon-App-60x60@2x.png | Bin 4665 -> 4665 bytes .../AppIcon.appiconset/Icon-App-60x60@3x.png | Bin 7057 -> 7057 bytes .../AppIcon.appiconset/Icon-App-76x76@1x.png | Bin 3025 -> 3025 bytes .../AppIcon.appiconset/Icon-App-76x76@2x.png | Bin 5986 -> 5986 bytes .../Icon-App-83.5x83.5@2x.png | Bin 6647 -> 6647 bytes .../en_us/en_us_translations.dart | 59 ++++++++++-------- .../additional_information_screen.dart | 11 ++-- .../allergies_screen/allergies_screen.dart | 12 ++-- .../blood_pressure_screen.dart | 18 +++--- .../body_circumferences_screen.dart | 22 ++++--- .../bloc/city_of_living_bloc.dart | 39 +++++++++--- .../city_of_living_screen.dart | 14 ++--- .../date_of_birth_screen.dart | 17 +++-- .../favorite_foods_screen.dart | 14 ++--- .../favorite_sports_screen.dart | 12 ++-- .../gender_screen/gender_screen.dart | 7 ++- .../language_select_screen.dart | 12 ++-- .../medicine_intake_screen.dart | 11 ++-- .../schedule_screen/schedule_screen.dart | 11 ++-- .../weight_screen/weight_screen.dart | 8 +-- 37 files changed, 155 insertions(+), 116 deletions(-) diff --git a/.dhiwise/config b/.dhiwise/config index 6f3a9c14..5a034960 100644 --- a/.dhiwise/config +++ b/.dhiwise/config @@ -1,3 +1,3 @@ TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNjU3ZmYzZmVjMzBjMTkwMDFjZTZiNTM4IiwiX2lkIjoiNjU3ZmYzZmVjMzBjMTkwMDFjZTZiNTM4In0sImNvbXBhbnlJZCI6IjY1N2ZmM2ZlYzMwYzE5MDAxY2U2YjUzYSIsImFwcGxpY2F0aW9uSWQiOiI2NTdmZmI0NGE1ZDdiNDAwMjIzMGEwZWMiLCJpYXQiOjE3MDI4ODYyMTJ9.24JeUo8jgiAwKQkeKhwu49qjWT2CnXAoQrDmduDL0d0 SEMANTIC_VERSION = 1.0 -VERSION_NUMBER = 7 \ No newline at end of file +VERSION_NUMBER = 9 \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png index c203d7a8cc6ef754ebf8741b6bbb67ae40debfce..772bd460b33a3eefe662303f43de488e284d11ad 100644 GIT binary patch delta 69 zcmca5a!X`FKZh_I7rVmwsf8P-hj5Bmh8UPx85&p_m}?sVNrPKzyxf!jbIM{!tgha= JeX;?U768e?6Y&55 delta 69 zcmca5a!X`FKZg*X5~oh90^`Q%A)F!>A%-Sa#wJz3JXA@TEv K(BH}0>{Xn+%&mqjl#jbFEYT?G|>^!cPAqHkvh6Yv!=Gq28(%_aFFE;}NgKCLuL`h0w iNvc(DeoAIqC4-THk+H6!k**=ShSk+uw@-e|qXht*(i!pq delta 93 zcmeB`>Xn+%&mqL8#HrJ&z_@WbJCCbHh@pv! iC8<`q`6-!cl?+A(M#j2^M!JUR8dg_t-9A}FSPKBwff?HX delta 93 zcmdm|woh$BKZg*X5~oh90^`Q%7DBETA%-Sa#wJzsekrd2W+85kMs8XD;uqHFm1L+I~h5n(L=!kHRV diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png index 402489a4f0e3d730168b66e0457cdb2a23f50d7e..4f5949b7b0c0c50cae5aeda33375e0b164af6517 100644 GIT binary patch delta 93 zcmeA(?lYdy&mqjl#jbFEYT?G|9TKjVAqHkvh6Yv!=Gq28(%_aFFE;}NgKCLuL`h0w iNvc(DeoAIqC4-THk+H6!k**=ShSk+uw@*%y)B*t4y&6FP delta 93 zcmeA(?lYdy&mqL8#HrJ&z_@XGhlHy|h@pv$sRc?MtW?ChK Yk%5u1uAz~xA-aau)myhuemq$V0RN2`*#H0l delta 83 zcmeBO!PL8gX~Vq9t`;GNCRWBKRtA>Z1_o9J1|3URIWjOXsFt`!l%ync8S5Gv=^CPI`1wQV@8rjmwE#Pg8dCrO diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png index 3e89b5190cb9de6f0e9ab8a0ca8b4e8b1022dae4..689f142a7b097413376d08efcb74f7a06ad508be 100644 GIT binary patch delta 95 zcmbQhGl6Hr8)gn+HZFFB^HU2qe_>wB=xP~aU}j}#U}a#gZ2%+lzyA8lr1hUA=Yt|%7nphc|SQ%Jq8yHv_7<4RM<;cLmpjzS@ mQIe8al4_NkpOTqY$zWt)WUOmwq-%(-;pY#bzmuP_Y5@QNOdHJr diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png index 9f5585ea00cdd3690cd01d8e083631f6eac7be5d..6ce701e81babe23c4903478895a376e1523af0fd 100644 GIT binary patch delta 93 zcmey*^PguzKZh_I7rVmwsf8P-SF*ZVh8UPx85&p_m}?sVNrPKzyxa^745}rr5hW>! iC8<`q`6-!cl?+A(M#j2^M!JUR8dg_t-99;#O$z`5@*0r< delta 93 zcmey*^PguzKZg*X5~oh90^`Q%m8`B7A%-Sa#wJzsekrd2W+85kMs8XD;uqHFm1L+J11P&O?9?)w`F diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png index 453f8a4d0836351e5a5aaa27b8b8c9e2e91ab8c2..e29edf5465bb14def765de59afd6c64c037330b6 100644 GIT binary patch delta 69 zcmca1bVF!DKZh_I7rVmwsf8P-2XTm4h8UPx85&p_m}?sVNrPKzyxf!ja>!yxtgha= JeX<^>768Vt6W{;< delta 69 zcmca1bVF!DKZg*X5~oh90^`Q%K^!6$A%-Sa#wJzveYA@TEv K(BH{=oLT^~XB1cf diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png index f35b7ecf6614a4023ef6771bfadacecd88ee8267..3a97ce9b7f2fa5e0a6f338c6245333e1a8302216 100644 GIT binary patch delta 69 zcmZqTYT}yE&mqjl#jbFEYT?G|f0#uqLk!HU3=OOd%(V@Gq`@sUUhc`uS!6LJR#$J` JKKTZV767hz6chje delta 69 zcmZqTYT}yE&mqL8#HrJ&z_@YxA7&AY5JM9yV-qU_OKk%KD+7a$rK=n#FK3a(kofsS K=KB^O&mqjl#jbFEYT?G|oE)x}AqHkvh6Yv!=Gq28(%_aFFE;}NgKCLuL`h0w iNvc(DeoAIqC4-THk+H6!k**=ShSk+uw@-e`p#=b!{2Af^ delta 93 zcmeAd>KB^O&mqL8#HrJ&z_@WbCx@#=h@pv! iC8<`q`6-!cl?+A(M#j2^M!JUR8dg_t-99;#O$z`5@*0r< delta 93 zcmey*^PguzKZg*X5~oh90^`Q%m8`B7A%-Sa#wJzsekrd2W+85kMs8XD;uqHFm1L+J11P&O?9?)w`F diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png index 3c4c0d4bc93edd09628d5bd17cf7009c460511c0..0aadc97690c251a8b0f04bf5d73c43032bb7809d 100644 GIT binary patch delta 68 zcmcaDaa&?SKZh_I7rVmwsf8P-hjNQph8UPx85&p_m}?sVNrPKzyxfy`WHH27S8v@u I*^oyI0Htda1ONa4 delta 68 zcmcaDaa&?SKZg*X5~oh90^`Q%q1+-CA%-Sa#wJz! iC8<`q`6-!cl?+A(M#j2^M!JUR8dg_t-99;8S_=T)L>gHD delta 93 zcmbPeKGA$aKZg*X5~oh90^`Q%-BPX=A%-Sa#wJzsekrd2W+85kMs8XD;uqHFm1L+J11bZIRB%3K=J diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png index 24c1cc5de23ebebc199c59eefd7cd31d5e693bdf..b7219df721f3e31906eaf0f64b1d560f673f5a43 100644 GIT binary patch delta 93 zcmca8eo=fvKZh_I7rVmwsf8P-pXPG43^6dXGBmI+jdTssHLR}Qx_$C;ZY=-=gBtk& delta 93 zcmca8eo=fvKZg*X5~oh90^`Q%r@34$LJUo;j7_WzEVT^`tPBh~macMSU|>)!ag8WR jNi0dV%FR#7OsixtGB7gMH8j#SMAz{1htS{2%el1x@QfRA diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png index 6dbba6782f38806b3857ff8cf53960d9ed6a9912..e5998a8ecf1fb68e476a9c2a5cefb62e7b2fa5e9 100644 GIT binary patch delta 69 zcmaE)_egI-KZh_I7rVmwsf8P-$B2noh8UPx85&p_m}?sVNrPKzyxf!7#bq%hR#$J` JKG{NC3joGo6LkOp delta 69 zcmaE)_egI-KZg*X5~oh90^`Q%F=8SXA%-Sa#wJzb0k delta 69 zcmexv{M~p$KZg*X5~oh90^`Q%A0 enUs = { // date_of_birth Screen - "lbl": "Дата Рождения", "lbl_01_01_2000": "01.01.2000", + "date_of_birth": "Дата Рождения", // city_of_living Screen - "lbl4": "Страна", "lbl5": "Россия", "lbl6": "Город", "lbl7": "Москва", - "msg": "Место проживания", + "country": "Страна", "Russia": "Россия", "city": "Город", "Moscow": "Москва", + "place_of_living": "Место проживания", // body_circumferences Screen - "lbl10": "Обхват бедр", "lbl8": "Обхват груди", "lbl9": "Обхват талии", - "msg2": "Первичные замеры", + "hip_circumference": "Обхват бедр", "chest_circumference": "Обхват груди", + "waist_circumference": "Обхват талии", + "initial_measurements": "Первичные замеры", // weight Screen - "lbl11": "Замер Веса", "lbl12": "Ваш вес:", "lbl_70": "70", + "weight_measurements": "Замер Веса", "your_weight": "Ваш вес:", + "lbl_70": "70", // allergies Screen - "msg3": "Наличие аллергии", + "allergies_presence": "Наличие аллергии", // medicine_intake Screen - "msg6": "Принимаете ли вы лекарства или бады?", + "do_you_take_pills": "Принимаете ли вы лекарства или бады?", // gender Screen - "lbl13": "Ваш пол?", + "your_gender": "Ваш пол?", // blood_pressure Screen - "lbl14": "Нет", - "msg10": "Есть ли у вас склонность к гипертании?", - "msg7": "Ваше артериальное давление?", - "msg8": "Средние показатели давления:", - "msg9": "Есть ли у вас склонность к гипо?", + "no": "Нет", + "do_you_have_hypertension_tendency": "Есть ли у вас склонность к гипертонии?", + "your_blood_pressure": "Ваше артериальное давление?", + "average_pressure": "Средние показатели давления:", + "do_you_have_hypotension_tendency": "Есть ли у вас склонность к гипотонии?", // favorite_sports Screen - "msg11": "Ваши спортивные увлечения?", + "your_favorite_sports": "Ваши спортивные увлечения?", // favorite_foods Screen - "lbl15": "Люблю продукты:", - "msg12": "Ваши любимые/нелюбимые продукты питания?", - "msg13": "Нелюбимые продукты:", + "favorite_foods": "Люблю продукты:", + "favorite_unfavorite_foods": "Ваши любимые/нелюбимые продукты питания?", + "unfavorite_foods": "Нелюбимые продукты:", // schedule Screen - "lbl16": "Ваш режим дня?", - "msg14": + "your_schedule": "Ваш режим дня?", + "tell_your_schedule": "Расскажите в свободной форме о том как просыпаетесь, когда едите, когда ложитесь спать:", // additional_information Screen - "msg15": "Дополнительная информация:", - "msg16": "Введите любую дополнительную информацию на своё усмотрение:", + "additional_information": "Дополнительная информация:", + "enter_additional_information": + "Введите любую дополнительную информацию на своё усмотрение:", // language_select Screen - "lbl_english": "English", "msg17": "Предпочетаемый язык общения?", + "lbl_english": "English", + "preferred_language": "Предпочетаемый язык общения?", // Common String - "lbl2": "Продолжить", "lbl3": "Пропустить", "lbl_60": "60", "lbl_90": "90", - "msg4": "Заполните информацию:", "msg5": "Введите информацию...", + "continue": "Продолжить", "skip": "Пропустить", + "fill_in_information": "Заполните информацию:", + "enter_information": "Введите информацию...", // Network Error String - "msg_network_err": "Network Error", - "msg_something_went_wrong": "Something Went Wrong!", + "msg_network_err": "Сетевая ошибка!", + "msg_something_went_wrong": "Что то пошло не так!", }; diff --git a/lib/presentation/additional_information_screen/additional_information_screen.dart b/lib/presentation/additional_information_screen/additional_information_screen.dart index c1cc425f..aae3756a 100644 --- a/lib/presentation/additional_information_screen/additional_information_screen.dart +++ b/lib/presentation/additional_information_screen/additional_information_screen.dart @@ -36,7 +36,7 @@ class AdditionalInformationScreen extends StatelessWidget { SizedBox(height: 20.v), SizedBox( width: 192.h, - child: Text("msg15".tr, + child: Text("additional_information".tr, maxLines: 2, overflow: TextOverflow.ellipsis, textAlign: TextAlign.center, @@ -45,13 +45,13 @@ class AdditionalInformationScreen extends StatelessWidget { _buildNinetyThree(context), Spacer(), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { showSuccessMessage(context); }), SizedBox(height: 17.v), - Text("lbl3".tr, style: theme.textTheme.bodyLarge) + Text("skip".tr, style: theme.textTheme.bodyLarge) ])))); } @@ -95,14 +95,15 @@ class AdditionalInformationScreen extends StatelessWidget { alignment: Alignment.topLeft, child: Padding( padding: EdgeInsets.only(left: 10.h, top: 69.v), - child: Text("msg5".tr, style: theme.textTheme.bodyLarge))), + child: Text("enter_information".tr, + style: theme.textTheme.bodyLarge))), Align( alignment: Alignment.center, child: Column(mainAxisSize: MainAxisSize.min, children: [ Container( width: 294.h, margin: EdgeInsets.only(left: 24.h, right: 23.h), - child: Text("msg16".tr, + child: Text("enter_additional_information".tr, maxLines: 2, overflow: TextOverflow.ellipsis, textAlign: TextAlign.center, diff --git a/lib/presentation/allergies_screen/allergies_screen.dart b/lib/presentation/allergies_screen/allergies_screen.dart index 6b79520c..7e7cc7a4 100644 --- a/lib/presentation/allergies_screen/allergies_screen.dart +++ b/lib/presentation/allergies_screen/allergies_screen.dart @@ -47,18 +47,19 @@ class AllergiesScreen extends StatelessWidget { valueColor: AlwaysStoppedAnimation( appTheme.blueA400)))), SizedBox(height: 22.v), - Text("msg3".tr, style: CustomTextStyles.headlineSmallMulish), + Text("allergies_presence".tr, + style: CustomTextStyles.headlineSmallMulish), Spacer(flex: 36), _buildNinetyThree(context), Spacer(flex: 63), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { navigateToMedicine(context); }), SizedBox(height: 17.v), - Text("lbl3".tr, style: theme.textTheme.bodyLarge) + Text("skip".tr, style: theme.textTheme.bodyLarge) ])))); } @@ -79,14 +80,15 @@ class AllergiesScreen extends StatelessWidget { /// Section Widget Widget _buildNinetyThree(BuildContext context) { return Column(children: [ - Text("msg4".tr, style: CustomTextStyles.titleMediumSegoeUI), + Text("fill_in_information".tr, + style: CustomTextStyles.titleMediumSegoeUI), SizedBox(height: 2.v), BlocSelector( selector: (state) => state.enterInformationController, builder: (context, enterInformationController) { return CustomTextFormField( controller: enterInformationController, - hintText: "msg5".tr, + hintText: "enter_information".tr, textInputAction: TextInputAction.done, maxLines: 8); }) diff --git a/lib/presentation/blood_pressure_screen/blood_pressure_screen.dart b/lib/presentation/blood_pressure_screen/blood_pressure_screen.dart index 1af6b72b..ebd28a9f 100644 --- a/lib/presentation/blood_pressure_screen/blood_pressure_screen.dart +++ b/lib/presentation/blood_pressure_screen/blood_pressure_screen.dart @@ -53,7 +53,7 @@ class BloodPressureScreen extends StatelessWidget { SizedBox(height: 21.v), SizedBox( width: 224.h, - child: Text("msg7".tr, + child: Text("your_blood_pressure".tr, maxLines: 2, overflow: TextOverflow.ellipsis, textAlign: TextAlign.center, @@ -61,7 +61,8 @@ class BloodPressureScreen extends StatelessWidget { SizedBox(height: 77.v), _buildThirtyThree(context), SizedBox(height: 22.v), - Text("msg9".tr, style: theme.textTheme.bodyLarge), + Text("do_you_have_hypotension_tendency".tr, + style: theme.textTheme.bodyLarge), SizedBox(height: 2.v), Padding( padding: EdgeInsets.symmetric(horizontal: 4.h), @@ -75,7 +76,8 @@ class BloodPressureScreen extends StatelessWidget { textInputAction: TextInputAction.done); })), SizedBox(height: 22.v), - Text("msg10".tr, style: theme.textTheme.bodyLarge), + Text("do_you_have_hypertension_tendency".tr, + style: theme.textTheme.bodyLarge), SizedBox(height: 2.v), Padding( padding: EdgeInsets.symmetric(horizontal: 4.h), @@ -94,7 +96,7 @@ class BloodPressureScreen extends StatelessWidget { imagePath: ImageConstant.imgFavorite, height: 12.adaptSize, width: 12.adaptSize)), - hintText: "lbl14".tr, + hintText: "no".tr, items: bloodPressureModelObj?.dropdownItemList ?? [], @@ -106,14 +108,14 @@ class BloodPressureScreen extends StatelessWidget { })), Spacer(), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), margin: EdgeInsets.symmetric(horizontal: 4.h), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { navigateToSports(context); }), SizedBox(height: 17.v), - Text("lbl3".tr, style: theme.textTheme.bodyLarge) + Text("skip".tr, style: theme.textTheme.bodyLarge) ])))); } @@ -137,14 +139,14 @@ class BloodPressureScreen extends StatelessWidget { margin: EdgeInsets.only(right: 1.h), padding: EdgeInsets.symmetric(horizontal: 3.h), child: Column(children: [ - Text("msg8".tr, style: theme.textTheme.bodyLarge), + Text("average_pressure".tr, style: theme.textTheme.bodyLarge), SizedBox(height: 2.v), BlocSelector( selector: (state) => state.valueController, builder: (context, valueController) { return CustomTextFormField( - controller: valueController, hintText: "lbl_90".tr); + controller: valueController, hintText: "90".tr); }) ])); } diff --git a/lib/presentation/body_circumferences_screen/body_circumferences_screen.dart b/lib/presentation/body_circumferences_screen/body_circumferences_screen.dart index 5dc43036..dfc414e1 100644 --- a/lib/presentation/body_circumferences_screen/body_circumferences_screen.dart +++ b/lib/presentation/body_circumferences_screen/body_circumferences_screen.dart @@ -47,22 +47,24 @@ class BodyCircumferencesScreen extends StatelessWidget { valueColor: AlwaysStoppedAnimation( appTheme.blueA400)))), SizedBox(height: 39.v), - Text("msg2".tr, style: theme.textTheme.headlineSmall), + Text("initial_measurements".tr, + style: theme.textTheme.headlineSmall), SizedBox(height: 93.v), _buildTwentySeven(context), SizedBox(height: 19.v), - Text("lbl9".tr, style: theme.textTheme.bodyLarge), + Text("waist_circumference".tr, + style: theme.textTheme.bodyLarge), SizedBox(height: 5.v), BlocSelector( selector: (state) => state.valueController1, builder: (context, valueController1) { return CustomTextFormField( - controller: valueController1, - hintText: "lbl_60".tr); + controller: valueController1, hintText: "60".tr); }), SizedBox(height: 21.v), - Text("lbl10".tr, style: theme.textTheme.bodyLarge), + Text("hip_circumference".tr, + style: theme.textTheme.bodyLarge), SizedBox(height: 3.v), BlocSelector( @@ -70,18 +72,18 @@ class BodyCircumferencesScreen extends StatelessWidget { builder: (context, valueController2) { return CustomTextFormField( controller: valueController2, - hintText: "lbl_90".tr, + hintText: "90".tr, textInputAction: TextInputAction.done); }), Spacer(), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { navigateToWeight(context); }), SizedBox(height: 17.v), - Text("lbl3".tr, style: theme.textTheme.bodyLarge) + Text("skip".tr, style: theme.textTheme.bodyLarge) ])))); } @@ -102,14 +104,14 @@ class BodyCircumferencesScreen extends StatelessWidget { /// Section Widget Widget _buildTwentySeven(BuildContext context) { return Column(children: [ - Text("lbl8".tr, style: theme.textTheme.bodyLarge), + Text("chest_circumference".tr, style: theme.textTheme.bodyLarge), SizedBox(height: 3.v), BlocSelector( selector: (state) => state.valueController, builder: (context, valueController) { return CustomTextFormField( - controller: valueController, hintText: "lbl_90".tr); + controller: valueController, hintText: "90".tr); }) ]); } diff --git a/lib/presentation/city_of_living_screen/bloc/city_of_living_bloc.dart b/lib/presentation/city_of_living_screen/bloc/city_of_living_bloc.dart index 75ebb7de..c7cf389f 100644 --- a/lib/presentation/city_of_living_screen/bloc/city_of_living_bloc.dart +++ b/lib/presentation/city_of_living_screen/bloc/city_of_living_bloc.dart @@ -38,18 +38,41 @@ class CityOfLivingBloc extends Bloc { } List fillDropdownItemList() { - return [ - SelectionPopupModel(id: 1, title: "Item One", isSelected: true), - SelectionPopupModel(id: 2, title: "Item Two"), - SelectionPopupModel(id: 3, title: "Item Three") - ]; + return [SelectionPopupModel(id: 1, title: "Россия", isSelected: true)]; } List fillDropdownItemList1() { return [ - SelectionPopupModel(id: 1, title: "Item One", isSelected: true), - SelectionPopupModel(id: 2, title: "Item Two"), - SelectionPopupModel(id: 3, title: "Item Three") + SelectionPopupModel(id: 1, title: "Москва", isSelected: true), + SelectionPopupModel(id: 2, title: "Санкт-Петербург"), + SelectionPopupModel(id: 3, title: "Новосибирск"), + SelectionPopupModel(id: 4, title: "Екатеринбург"), + SelectionPopupModel(id: 5, title: "Нижний Новгород"), + SelectionPopupModel(id: 6, title: "Казань"), + SelectionPopupModel(id: 7, title: "Самара"), + SelectionPopupModel(id: 8, title: "Омск"), + SelectionPopupModel(id: 9, title: "Челябинск"), + SelectionPopupModel(id: 10, title: "Ростов-на-Дону"), + SelectionPopupModel(id: 11, title: "Уфа"), + SelectionPopupModel(id: 12, title: "Волгоград"), + SelectionPopupModel(id: 13, title: "Пермь"), + SelectionPopupModel(id: 14, title: "Красноярск"), + SelectionPopupModel(id: 15, title: "Воронеж"), + SelectionPopupModel(id: 16, title: "Саратов"), + SelectionPopupModel(id: 17, title: "Краснодар"), + SelectionPopupModel(id: 18, title: "Тольятти"), + SelectionPopupModel(id: 19, title: "Барнаул"), + SelectionPopupModel(id: 20, title: "Ижевск"), + SelectionPopupModel(id: 21, title: "Ульяновск"), + SelectionPopupModel(id: 22, title: "Тюмень"), + SelectionPopupModel(id: 23, title: "Иркутск"), + SelectionPopupModel(id: 24, title: "Хабаровск"), + SelectionPopupModel(id: 25, title: "Ярославль"), + SelectionPopupModel(id: 26, title: "Кемерово"), + SelectionPopupModel(id: 27, title: "Магнитогорск"), + SelectionPopupModel(id: 28, title: "Новокузнецк"), + SelectionPopupModel(id: 29, title: "Томск"), + SelectionPopupModel(id: 30, title: "Астрахань") ]; } } diff --git a/lib/presentation/city_of_living_screen/city_of_living_screen.dart b/lib/presentation/city_of_living_screen/city_of_living_screen.dart index e0f509e6..92099dd9 100644 --- a/lib/presentation/city_of_living_screen/city_of_living_screen.dart +++ b/lib/presentation/city_of_living_screen/city_of_living_screen.dart @@ -46,9 +46,9 @@ class CityOfLivingScreen extends StatelessWidget { valueColor: AlwaysStoppedAnimation( appTheme.blueA400)))), SizedBox(height: 39.v), - Text("msg".tr, style: theme.textTheme.headlineSmall), + Text("Moscow".tr, style: theme.textTheme.headlineSmall), Spacer(flex: 34), - Text("lbl4".tr, style: theme.textTheme.bodyLarge), + Text("country".tr, style: theme.textTheme.bodyLarge), SizedBox(height: 2.v), BlocSelector( @@ -64,7 +64,7 @@ class CityOfLivingScreen extends StatelessWidget { imagePath: ImageConstant.imgFavorite, height: 12.adaptSize, width: 12.adaptSize)), - hintText: "lbl5".tr, + hintText: "Russia".tr, items: cityOfLivingModelObj?.dropdownItemList ?? [], onChanged: (value) { context @@ -73,7 +73,7 @@ class CityOfLivingScreen extends StatelessWidget { }); }), SizedBox(height: 22.v), - Text("lbl6".tr, style: theme.textTheme.bodyLarge), + Text("city".tr, style: theme.textTheme.bodyLarge), SizedBox(height: 2.v), BlocSelector( @@ -89,7 +89,7 @@ class CityOfLivingScreen extends StatelessWidget { imagePath: ImageConstant.imgFavorite, height: 12.adaptSize, width: 12.adaptSize)), - hintText: "lbl7".tr, + hintText: "Moscow".tr, items: cityOfLivingModelObj?.dropdownItemList1 ?? [], onChanged: (value) { @@ -100,13 +100,13 @@ class CityOfLivingScreen extends StatelessWidget { }), Spacer(flex: 65), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { navigateToCircumferences(context); }), SizedBox(height: 17.v), - Text("lbl3".tr, style: theme.textTheme.bodyLarge) + Text("skip".tr, style: theme.textTheme.bodyLarge) ])))); } diff --git a/lib/presentation/date_of_birth_screen/date_of_birth_screen.dart b/lib/presentation/date_of_birth_screen/date_of_birth_screen.dart index d21f1ad7..1b40a850 100644 --- a/lib/presentation/date_of_birth_screen/date_of_birth_screen.dart +++ b/lib/presentation/date_of_birth_screen/date_of_birth_screen.dart @@ -34,23 +34,22 @@ class DateOfBirthScreen extends StatelessWidget { SizedBox(height: 7.v), _buildProgressIndicator(context), SizedBox(height: 38.v), - Text("lbl".tr, style: theme.textTheme.headlineSmall), + Text("date_of_birth".tr, + style: theme.textTheme.headlineSmall), Spacer(flex: 39), _buildDateInput(context), Spacer(flex: 60), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { navigateToCity(context); }), SizedBox(height: 17.v), - Align( - alignment: Alignment.centerLeft, - child: Padding( - padding: EdgeInsets.only(left: 8.h), - child: Text("lbl3".tr, - style: theme.textTheme.bodyLarge))) + Padding( + padding: EdgeInsets.only(left: 8.h), + child: + Text("skip".tr, style: theme.textTheme.bodyLarge)) ])))); }); } @@ -112,7 +111,7 @@ class DateOfBirthScreen extends StatelessWidget { }, child: Text("lbl_01_01_2000".tr, style: theme.textTheme.titleMedium))), - SizedBox(height: 4.v) + SizedBox(height: 6.v) ])); } diff --git a/lib/presentation/favorite_foods_screen/favorite_foods_screen.dart b/lib/presentation/favorite_foods_screen/favorite_foods_screen.dart index c90f3c92..37572c5e 100644 --- a/lib/presentation/favorite_foods_screen/favorite_foods_screen.dart +++ b/lib/presentation/favorite_foods_screen/favorite_foods_screen.dart @@ -36,7 +36,7 @@ class FavoriteFoodsScreen extends StatelessWidget { Container( width: 327.h, margin: EdgeInsets.only(left: 8.h, right: 7.h), - child: Text("msg12".tr, + child: Text("favorite_unfavorite_foods".tr, maxLines: 2, overflow: TextOverflow.ellipsis, textAlign: TextAlign.center, @@ -47,13 +47,13 @@ class FavoriteFoodsScreen extends StatelessWidget { _buildNinetyThree1(context), SizedBox(height: 27.v), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { navigateToSchedule(context); }), SizedBox(height: 17.v), - Text("lbl3".tr, style: theme.textTheme.bodyLarge) + Text("skip".tr, style: theme.textTheme.bodyLarge) ])))); } @@ -91,7 +91,7 @@ class FavoriteFoodsScreen extends StatelessWidget { /// Section Widget Widget _buildNinetyThree(BuildContext context) { return Column(children: [ - Text("lbl15".tr, style: CustomTextStyles.titleMediumSegoeUI), + Text("favorite_foods".tr, style: CustomTextStyles.titleMediumSegoeUI), SizedBox(height: 2.v), BlocSelector( @@ -99,7 +99,7 @@ class FavoriteFoodsScreen extends StatelessWidget { builder: (context, enterinformationController) { return CustomTextFormField( controller: enterinformationController, - hintText: "msg5".tr, + hintText: "enter_information".tr, maxLines: 8); }) ]); @@ -108,7 +108,7 @@ class FavoriteFoodsScreen extends StatelessWidget { /// Section Widget Widget _buildNinetyThree1(BuildContext context) { return Column(children: [ - Text("msg13".tr, style: CustomTextStyles.titleMediumSegoeUI), + Text("unfavorite_foods".tr, style: CustomTextStyles.titleMediumSegoeUI), SizedBox(height: 2.v), BlocSelector( @@ -116,7 +116,7 @@ class FavoriteFoodsScreen extends StatelessWidget { builder: (context, enterinformationController1) { return CustomTextFormField( controller: enterinformationController1, - hintText: "msg5".tr, + hintText: "enter_information".tr, textInputAction: TextInputAction.done, maxLines: 8); }) diff --git a/lib/presentation/favorite_sports_screen/favorite_sports_screen.dart b/lib/presentation/favorite_sports_screen/favorite_sports_screen.dart index bacdd269..83acf87e 100644 --- a/lib/presentation/favorite_sports_screen/favorite_sports_screen.dart +++ b/lib/presentation/favorite_sports_screen/favorite_sports_screen.dart @@ -35,18 +35,19 @@ class FavoriteSportsScreen extends StatelessWidget { SizedBox(height: 20.v), _buildProgressIndicatorSection(context), SizedBox(height: 38.v), - Text("msg11".tr, style: theme.textTheme.headlineSmall), + Text("your_favorite_sports".tr, + style: theme.textTheme.headlineSmall), Spacer(flex: 32), _buildNinetyThreeSection(context), Spacer(flex: 67), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { navigateToFoods(context); }), SizedBox(height: 17.v), - Text("lbl3".tr, style: theme.textTheme.bodyLarge), + Text("skip".tr, style: theme.textTheme.bodyLarge), SizedBox(height: 4.v) ])))); } @@ -71,7 +72,8 @@ class FavoriteSportsScreen extends StatelessWidget { /// Section Widget Widget _buildNinetyThreeSection(BuildContext context) { return Column(children: [ - Text("msg4".tr, style: CustomTextStyles.titleMediumSegoeUI), + Text("fill_in_information".tr, + style: CustomTextStyles.titleMediumSegoeUI), SizedBox(height: 2.v), BlocSelector( @@ -79,7 +81,7 @@ class FavoriteSportsScreen extends StatelessWidget { builder: (context, enterinformationController) { return CustomTextFormField( controller: enterinformationController, - hintText: "msg5".tr, + hintText: "enter_information".tr, textInputAction: TextInputAction.done, maxLines: 8); }) diff --git a/lib/presentation/gender_screen/gender_screen.dart b/lib/presentation/gender_screen/gender_screen.dart index 3ccfaa79..31b0596a 100644 --- a/lib/presentation/gender_screen/gender_screen.dart +++ b/lib/presentation/gender_screen/gender_screen.dart @@ -33,20 +33,21 @@ class GenderScreen extends StatelessWidget { SizedBox(height: 7.v), _buildProgressIndicator(context), SizedBox(height: 36.v), - Text("lbl13".tr, style: theme.textTheme.headlineSmall), + Text("your_gender".tr, + style: theme.textTheme.headlineSmall), Spacer(flex: 33), Text(""), SizedBox(height: 20.v), Text(""), Spacer(flex: 66), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { navigateToDate(context); }), SizedBox(height: 17.v), - Text("lbl3".tr, style: theme.textTheme.bodyLarge) + Text("skip".tr, style: theme.textTheme.bodyLarge) ])))); }); } diff --git a/lib/presentation/language_select_screen/language_select_screen.dart b/lib/presentation/language_select_screen/language_select_screen.dart index 0218e18a..91641fdc 100644 --- a/lib/presentation/language_select_screen/language_select_screen.dart +++ b/lib/presentation/language_select_screen/language_select_screen.dart @@ -30,12 +30,12 @@ class LanguageSelectScreen extends StatelessWidget { height: 50.adaptSize, width: 50.adaptSize), SizedBox(height: 20.v), - _buildProgressIndicator(context), + _buildProgressIndicatorSection(context), SizedBox(height: 20.v), Container( width: 262.h, margin: EdgeInsets.only(left: 41.h, right: 39.h), - child: Text("msg17".tr, + child: Text("preferred_language".tr, maxLines: 2, overflow: TextOverflow.ellipsis, textAlign: TextAlign.center, @@ -66,11 +66,11 @@ class LanguageSelectScreen extends StatelessWidget { }), Spacer(flex: 63) ])), - bottomNavigationBar: _buildContinueButton(context))); + bottomNavigationBar: _buildContinueButtonSection(context))); } /// Section Widget - Widget _buildProgressIndicator(BuildContext context) { + Widget _buildProgressIndicatorSection(BuildContext context) { return Container( width: 343.h, padding: EdgeInsets.symmetric(horizontal: 4.h, vertical: 3.v), @@ -87,9 +87,9 @@ class LanguageSelectScreen extends StatelessWidget { } /// Section Widget - Widget _buildContinueButton(BuildContext context) { + Widget _buildContinueButtonSection(BuildContext context) { return CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), margin: EdgeInsets.only(left: 16.h, right: 16.h, bottom: 50.v), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { diff --git a/lib/presentation/medicine_intake_screen/medicine_intake_screen.dart b/lib/presentation/medicine_intake_screen/medicine_intake_screen.dart index 05de8a3b..25825422 100644 --- a/lib/presentation/medicine_intake_screen/medicine_intake_screen.dart +++ b/lib/presentation/medicine_intake_screen/medicine_intake_screen.dart @@ -50,7 +50,7 @@ class MedicineIntakeScreen extends StatelessWidget { Container( width: 271.h, margin: EdgeInsets.only(left: 35.h, right: 36.h), - child: Text("msg6".tr, + child: Text("do_you_take_pills".tr, maxLines: 2, overflow: TextOverflow.ellipsis, textAlign: TextAlign.center, @@ -59,13 +59,13 @@ class MedicineIntakeScreen extends StatelessWidget { _buildNinetyThree(context), Spacer(), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { navigateToPressure(context); }), SizedBox(height: 17.v), - Text("lbl3".tr, style: theme.textTheme.bodyLarge) + Text("skip".tr, style: theme.textTheme.bodyLarge) ])))); } @@ -86,7 +86,8 @@ class MedicineIntakeScreen extends StatelessWidget { /// Section Widget Widget _buildNinetyThree(BuildContext context) { return Column(children: [ - Text("msg4".tr, style: CustomTextStyles.titleMediumSegoeUI), + Text("fill_in_information".tr, + style: CustomTextStyles.titleMediumSegoeUI), SizedBox(height: 2.v), BlocSelector( @@ -94,7 +95,7 @@ class MedicineIntakeScreen extends StatelessWidget { builder: (context, enterInformationController) { return CustomTextFormField( controller: enterInformationController, - hintText: "msg5".tr, + hintText: "enter_information".tr, textInputAction: TextInputAction.done, maxLines: 8); }) diff --git a/lib/presentation/schedule_screen/schedule_screen.dart b/lib/presentation/schedule_screen/schedule_screen.dart index 1b20601a..179f4705 100644 --- a/lib/presentation/schedule_screen/schedule_screen.dart +++ b/lib/presentation/schedule_screen/schedule_screen.dart @@ -33,18 +33,19 @@ class ScheduleScreen extends StatelessWidget { SizedBox(height: 7.v), _buildProgressIndicator(context), SizedBox(height: 38.v), - Text("lbl16".tr, style: theme.textTheme.headlineSmall), + Text("your_schedule".tr, + style: theme.textTheme.headlineSmall), SizedBox(height: 67.v), _buildNinetyThree(context), Spacer(), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { navigateToAdditional(context); }), SizedBox(height: 17.v), - Text("lbl3".tr, style: theme.textTheme.bodyLarge) + Text("skip".tr, style: theme.textTheme.bodyLarge) ])))); } @@ -85,7 +86,7 @@ class ScheduleScreen extends StatelessWidget { Container( width: 324.h, margin: EdgeInsets.symmetric(horizontal: 9.h), - child: Text("msg14".tr, + child: Text("tell_your_schedule".tr, maxLines: 3, overflow: TextOverflow.ellipsis, textAlign: TextAlign.center, @@ -96,7 +97,7 @@ class ScheduleScreen extends StatelessWidget { builder: (context, inputPlaceholderController) { return CustomTextFormField( controller: inputPlaceholderController, - hintText: "msg5".tr, + hintText: "enter_information".tr, textInputAction: TextInputAction.done, maxLines: 8); }) diff --git a/lib/presentation/weight_screen/weight_screen.dart b/lib/presentation/weight_screen/weight_screen.dart index 78db840a..01f84f06 100644 --- a/lib/presentation/weight_screen/weight_screen.dart +++ b/lib/presentation/weight_screen/weight_screen.dart @@ -49,13 +49,13 @@ class WeightScreen extends StatelessWidget { _buildTwentySix(context), Spacer(), CustomOutlinedButton( - text: "lbl2".tr.toUpperCase(), + text: "continue".tr.toUpperCase(), buttonStyle: CustomButtonStyles.outlinePrimaryTL15, onPressed: () { navigateToAllergies(context); }), SizedBox(height: 17.v), - Text("lbl3".tr, style: theme.textTheme.bodyLarge) + Text("skip".tr, style: theme.textTheme.bodyLarge) ])))); } @@ -76,7 +76,7 @@ class WeightScreen extends StatelessWidget { /// Section Widget Widget _buildTwentySixWidget(BuildContext context) { return Column(children: [ - Text("lbl12".tr, style: theme.textTheme.bodyLarge), + Text("your_weight".tr, style: theme.textTheme.bodyLarge), SizedBox(height: 4.v), BlocSelector( selector: (state) => state.weightModelObj, @@ -104,7 +104,7 @@ class WeightScreen extends StatelessWidget { /// Section Widget Widget _buildTwentySix(BuildContext context) { return Column(children: [ - Text("lbl11".tr, style: theme.textTheme.headlineSmall), + Text("weight_measurements".tr, style: theme.textTheme.headlineSmall), SizedBox(height: 174.v), _buildTwentySixWidget(context) ]);