From e3a134b73abd663eb5d02dc1875506ede614a432 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Thu, 11 Jul 2024 18:36:17 +0300 Subject: [PATCH] feature(registration): fix tests --- .../additional_information_screen.dart | 1 - test/add_info_test.dart | 2 +- test/allergies_test.dart | 2 +- test/blood_pressure_test.dart | 2 +- test/body_circumferences_test.dart | 2 +- test/city_of_living_test.dart | 2 +- test/credentials_test.dart | 2 +- test/date_of_birth_test.dart | 2 +- test/favorite_foods_test.dart | 2 +- test/favorite_sports_test.dart | 2 +- test/gender_test.dart | 2 +- test/height_test.dart | 2 +- test/language_select_test.dart | 2 +- test/medicine_intake_test.dart | 2 +- test/name_test.dart | 2 +- test/settings_test.dart | 2 +- test/weight_test.dart | 2 +- 17 files changed, 16 insertions(+), 17 deletions(-) diff --git a/lib/presentation/registration/additional_information_screen/additional_information_screen.dart b/lib/presentation/registration/additional_information_screen/additional_information_screen.dart index d1c18d0..b39743e 100644 --- a/lib/presentation/registration/additional_information_screen/additional_information_screen.dart +++ b/lib/presentation/registration/additional_information_screen/additional_information_screen.dart @@ -82,7 +82,6 @@ class AdditionalInformationScreen extends StatelessWidget { /// Section Widget _buildTextFormField(BuildContext context) { return SizedBox( - height: 315.v, width: 343.h, child: Stack( alignment: Alignment.center, diff --git a/test/add_info_test.dart b/test/add_info_test.dart index 86379dd..9fa83f8 100644 --- a/test/add_info_test.dart +++ b/test/add_info_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: AdditionalInformationScreen(), + child: Scaffold(body: AdditionalInformationScreen()), ), ), ); diff --git a/test/allergies_test.dart b/test/allergies_test.dart index d0a7832..ca8a2f2 100644 --- a/test/allergies_test.dart +++ b/test/allergies_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: AllergiesScreen(), + child: Scaffold(body: AllergiesScreen()), ), ), ); diff --git a/test/blood_pressure_test.dart b/test/blood_pressure_test.dart index a8c70db..30cbb03 100644 --- a/test/blood_pressure_test.dart +++ b/test/blood_pressure_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: BloodPressureScreen(), + child: Scaffold(body: BloodPressureScreen()), ), ), ); diff --git a/test/body_circumferences_test.dart b/test/body_circumferences_test.dart index 339c3b8..933c8e0 100644 --- a/test/body_circumferences_test.dart +++ b/test/body_circumferences_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: BodyCircumferencesScreen(), + child: Scaffold(body: BodyCircumferencesScreen()), ), ), ); diff --git a/test/city_of_living_test.dart b/test/city_of_living_test.dart index 1a6c18b..229c6f2 100644 --- a/test/city_of_living_test.dart +++ b/test/city_of_living_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: CityOfLivingScreen(), + child: Scaffold(body: CityOfLivingScreen()), ), ), ); diff --git a/test/credentials_test.dart b/test/credentials_test.dart index a82cd41..73995cc 100644 --- a/test/credentials_test.dart +++ b/test/credentials_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: CredentialsScreen(), + child: Scaffold(body: CredentialsScreen()), ), ), ); diff --git a/test/date_of_birth_test.dart b/test/date_of_birth_test.dart index 8ce0a1f..e2cac1e 100644 --- a/test/date_of_birth_test.dart +++ b/test/date_of_birth_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: DateOfBirthScreen(), + child: Scaffold(body: DateOfBirthScreen()), ), ), ); diff --git a/test/favorite_foods_test.dart b/test/favorite_foods_test.dart index 6364726..fa4553a 100644 --- a/test/favorite_foods_test.dart +++ b/test/favorite_foods_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: FavoriteFoodsScreen(), + child: Scaffold(body: FavoriteFoodsScreen()), ), ), ); diff --git a/test/favorite_sports_test.dart b/test/favorite_sports_test.dart index 1c7311e..4b6f672 100644 --- a/test/favorite_sports_test.dart +++ b/test/favorite_sports_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: FavoriteSportsScreen(), + child: Scaffold(body: FavoriteSportsScreen()), ), ), ); diff --git a/test/gender_test.dart b/test/gender_test.dart index 94ab621..45466f4 100644 --- a/test/gender_test.dart +++ b/test/gender_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: GenderScreen(), + child: Scaffold(body: GenderScreen()), ), ), ); diff --git a/test/height_test.dart b/test/height_test.dart index cd512ed..34eaec4 100644 --- a/test/height_test.dart +++ b/test/height_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: HeightScreen(), + child: Scaffold(body: HeightScreen()), ), ), ); diff --git a/test/language_select_test.dart b/test/language_select_test.dart index 15582cf..d667404 100644 --- a/test/language_select_test.dart +++ b/test/language_select_test.dart @@ -16,7 +16,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: LanguageSelectScreen(), + child: Scaffold(body: LanguageSelectScreen()), ), ), ); diff --git a/test/medicine_intake_test.dart b/test/medicine_intake_test.dart index eae83c1..510b7e8 100644 --- a/test/medicine_intake_test.dart +++ b/test/medicine_intake_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: MedicineIntakeScreen(), + child: Scaffold(body: MedicineIntakeScreen()), ), ), ); diff --git a/test/name_test.dart b/test/name_test.dart index 1e271cb..f2a2517 100644 --- a/test/name_test.dart +++ b/test/name_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: NameScreen(), + child: Scaffold(body: NameScreen()), ), ), ); diff --git a/test/settings_test.dart b/test/settings_test.dart index c605878..4e5021a 100644 --- a/test/settings_test.dart +++ b/test/settings_test.dart @@ -17,7 +17,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: MySettingsScreen(), + child: Scaffold(body: MySettingsScreen()), ), ), ); diff --git a/test/weight_test.dart b/test/weight_test.dart index e5f9fe0..fcd45c4 100644 --- a/test/weight_test.dart +++ b/test/weight_test.dart @@ -45,7 +45,7 @@ void main() { MaterialApp( home: BlocProvider.value( value: myProfileBloc, - child: WeightScreen(), + child: Scaffold(body: WeightScreen()), ), ), );