diff --git a/frontend/.dart_tool/package_config_subset b/frontend/.dart_tool/package_config_subset index 4f328fa..321a3cb 100644 --- a/frontend/.dart_tool/package_config_subset +++ b/frontend/.dart_tool/package_config_subset @@ -1,201 +1,201 @@ -inno_test -3.6 -file:///C:/Dev/projects/Autotester/frontend/ -file:///C:/Dev/projects/Autotester/frontend/lib/ -sky_engine -3.7 -file:///C:/FlutterSDK/flutter/bin/cache/pkg/sky_engine/ -file:///C:/FlutterSDK/flutter/bin/cache/pkg/sky_engine/lib/ -flutter -3.7 -file:///C:/FlutterSDK/flutter/packages/flutter/ -file:///C:/FlutterSDK/flutter/packages/flutter/lib/ -flutter_test -3.7 -file:///C:/FlutterSDK/flutter/packages/flutter_test/ -file:///C:/FlutterSDK/flutter/packages/flutter_test/lib/ -flutter_web_plugins -3.7 -file:///C:/FlutterSDK/flutter/packages/flutter_web_plugins/ -file:///C:/FlutterSDK/flutter/packages/flutter_web_plugins/lib/ async 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/async-2.13.0/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/async-2.13.0/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/async-2.13.0/ +file:///Users/danila/.pub-cache/hosted/pub.dev/async-2.13.0/lib/ boolean_selector 3.1 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/boolean_selector-2.1.2/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/boolean_selector-2.1.2/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/boolean_selector-2.1.2/ +file:///Users/danila/.pub-cache/hosted/pub.dev/boolean_selector-2.1.2/lib/ characters 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/characters-1.4.0/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/characters-1.4.0/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/characters-1.4.0/ +file:///Users/danila/.pub-cache/hosted/pub.dev/characters-1.4.0/lib/ clock 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/clock-1.1.2/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/clock-1.1.2/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/clock-1.1.2/ +file:///Users/danila/.pub-cache/hosted/pub.dev/clock-1.1.2/lib/ collection 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/collection-1.19.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/collection-1.19.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/collection-1.19.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/collection-1.19.1/lib/ cupertino_icons 3.1 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/cupertino_icons-1.0.8/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/cupertino_icons-1.0.8/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/ +file:///Users/danila/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/lib/ fake_async 3.3 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/fake_async-1.3.3/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/fake_async-1.3.3/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/fake_async-1.3.3/ +file:///Users/danila/.pub-cache/hosted/pub.dev/fake_async-1.3.3/lib/ ffi 3.3 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/ffi-2.1.3/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/ffi-2.1.3/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/ffi-2.1.3/ +file:///Users/danila/.pub-cache/hosted/pub.dev/ffi-2.1.3/lib/ file 3.0 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/file-7.0.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/file-7.0.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/file-7.0.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/file-7.0.1/lib/ flutter_lints 3.5 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_lints-5.0.0/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_lints-5.0.0/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/flutter_lints-5.0.0/ +file:///Users/danila/.pub-cache/hosted/pub.dev/flutter_lints-5.0.0/lib/ http 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/http-1.4.0/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/http-1.4.0/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/http-1.4.0/ +file:///Users/danila/.pub-cache/hosted/pub.dev/http-1.4.0/lib/ http_parser 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/http_parser-4.1.2/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/http_parser-4.1.2/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/http_parser-4.1.2/ +file:///Users/danila/.pub-cache/hosted/pub.dev/http_parser-4.1.2/lib/ leak_tracker 3.2 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-10.0.9/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker-10.0.9/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker-10.0.9/ +file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker-10.0.9/lib/ leak_tracker_flutter_testing 3.2 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/ +file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker_flutter_testing-3.0.9/lib/ leak_tracker_testing 3.2 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_testing-3.0.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/leak_tracker_testing-3.0.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/leak_tracker_testing-3.0.1/lib/ lints 3.6 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/lints-5.1.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/lints-5.1.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/lints-5.1.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/lints-5.1.1/lib/ matcher 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.17/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/matcher-0.12.17/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/matcher-0.12.17/ +file:///Users/danila/.pub-cache/hosted/pub.dev/matcher-0.12.17/lib/ material_color_utilities 2.17 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.11.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/material_color_utilities-0.11.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/material_color_utilities-0.11.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/material_color_utilities-0.11.1/lib/ meta 2.12 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.16.0/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/meta-1.16.0/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/meta-1.16.0/ +file:///Users/danila/.pub-cache/hosted/pub.dev/meta-1.16.0/lib/ nested 2.12 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/nested-1.0.0/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/nested-1.0.0/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/nested-1.0.0/ +file:///Users/danila/.pub-cache/hosted/pub.dev/nested-1.0.0/lib/ path 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.9.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path-1.9.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/path-1.9.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/path-1.9.1/lib/ path_provider_linux 2.19 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_linux-2.2.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_linux-2.2.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/lib/ path_provider_platform_interface 3.0 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/ +file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_platform_interface-2.1.2/lib/ path_provider_windows 3.2 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_windows-2.3.0/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_windows-2.3.0/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/ +file:///Users/danila/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/lib/ platform 3.2 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/platform-3.1.6/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/platform-3.1.6/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/platform-3.1.6/ +file:///Users/danila/.pub-cache/hosted/pub.dev/platform-3.1.6/lib/ plugin_platform_interface 3.0 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/plugin_platform_interface-2.1.8/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/plugin_platform_interface-2.1.8/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/ +file:///Users/danila/.pub-cache/hosted/pub.dev/plugin_platform_interface-2.1.8/lib/ provider 2.12 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/provider-6.1.5/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/provider-6.1.5/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/provider-6.1.5/ +file:///Users/danila/.pub-cache/hosted/pub.dev/provider-6.1.5/lib/ shared_preferences 3.5 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences-2.5.3/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences-2.5.3/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences-2.5.3/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences-2.5.3/lib/ shared_preferences_android 3.6 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_android-2.4.10/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_android-2.4.10/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.10/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.10/lib/ shared_preferences_foundation 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/lib/ shared_preferences_linux 3.3 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_linux-2.4.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_linux-2.4.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/lib/ shared_preferences_platform_interface 3.2 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_platform_interface-2.4.1/lib/ shared_preferences_web 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_web-2.4.3/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_web-2.4.3/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/lib/ shared_preferences_windows 3.3 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_windows-2.4.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/shared_preferences_windows-2.4.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/lib/ source_span 3.1 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/source_span-1.10.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/source_span-1.10.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/source_span-1.10.1/lib/ stack_trace 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/stack_trace-1.12.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/stack_trace-1.12.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/stack_trace-1.12.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/stack_trace-1.12.1/lib/ stream_channel 3.3 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/stream_channel-2.1.4/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/stream_channel-2.1.4/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/stream_channel-2.1.4/ +file:///Users/danila/.pub-cache/hosted/pub.dev/stream_channel-2.1.4/lib/ string_scanner 3.1 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/string_scanner-1.4.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/string_scanner-1.4.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/string_scanner-1.4.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/string_scanner-1.4.1/lib/ term_glyph 3.1 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/term_glyph-1.2.2/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/term_glyph-1.2.2/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/term_glyph-1.2.2/ +file:///Users/danila/.pub-cache/hosted/pub.dev/term_glyph-1.2.2/lib/ test_api 3.5 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.7.4/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/test_api-0.7.4/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/test_api-0.7.4/ +file:///Users/danila/.pub-cache/hosted/pub.dev/test_api-0.7.4/lib/ typed_data 3.5 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/typed_data-1.4.0/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/typed_data-1.4.0/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/typed_data-1.4.0/ +file:///Users/danila/.pub-cache/hosted/pub.dev/typed_data-1.4.0/lib/ vector_math 2.14 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/vector_math-2.1.4/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/vector_math-2.1.4/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/vector_math-2.1.4/ +file:///Users/danila/.pub-cache/hosted/pub.dev/vector_math-2.1.4/lib/ vm_service 3.3 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-15.0.0/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/vm_service-15.0.0/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/vm_service-15.0.0/ +file:///Users/danila/.pub-cache/hosted/pub.dev/vm_service-15.0.0/lib/ web 3.4 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/web-1.1.1/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/web-1.1.1/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/web-1.1.1/ +file:///Users/danila/.pub-cache/hosted/pub.dev/web-1.1.1/lib/ xdg_directories 3.3 -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/xdg_directories-1.1.0/ -file:///C:/Users/nilov/AppData/Local/Pub/Cache/hosted/pub.dev/xdg_directories-1.1.0/lib/ +file:///Users/danila/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0/ +file:///Users/danila/.pub-cache/hosted/pub.dev/xdg_directories-1.1.0/lib/ +inno_test +3.6 +file:///Users/danila/Documents/Projects/Flutter_Projects/Autotester/frontend/ +file:///Users/danila/Documents/Projects/Flutter_Projects/Autotester/frontend/lib/ +sky_engine +3.7 +file:///Users/danila/development/flutter/bin/cache/pkg/sky_engine/ +file:///Users/danila/development/flutter/bin/cache/pkg/sky_engine/lib/ +flutter +3.7 +file:///Users/danila/development/flutter/packages/flutter/ +file:///Users/danila/development/flutter/packages/flutter/lib/ +flutter_test +3.7 +file:///Users/danila/development/flutter/packages/flutter_test/ +file:///Users/danila/development/flutter/packages/flutter_test/lib/ +flutter_web_plugins +3.7 +file:///Users/danila/development/flutter/packages/flutter_web_plugins/ +file:///Users/danila/development/flutter/packages/flutter_web_plugins/lib/ 2 diff --git a/frontend/lib/data/repositories/in_memory_test_repository.dart b/frontend/lib/data/repositories/in_memory_test_repository.dart index 11e2b43..691ea4a 100644 --- a/frontend/lib/data/repositories/in_memory_test_repository.dart +++ b/frontend/lib/data/repositories/in_memory_test_repository.dart @@ -8,17 +8,14 @@ class InMemoryTestRepository extends TestRepository { final List _tests = []; @override - Future> sendUrlForScan({ - required String url, - required List tests, - }) async { + Future> sendUrlForScan( + {required String url, + required List tests, + required bool designTest}) async { final response = await http.post( Uri.parse('https://innotest.tech/api/tests'), headers: {'Content-Type': 'application/json'}, - body: jsonEncode({ - 'url': url, - 'tests': tests, - }), + body: jsonEncode({'url': url, 'tests': tests, 'needUIUX': designTest}), ); if (response.statusCode == 200) { diff --git a/frontend/lib/data/repositories/test_repository.dart b/frontend/lib/data/repositories/test_repository.dart index 087b019..7b2d1cb 100644 --- a/frontend/lib/data/repositories/test_repository.dart +++ b/frontend/lib/data/repositories/test_repository.dart @@ -6,8 +6,8 @@ abstract class TestRepository { void removeTest(String id); void removeAllTests(); - Future> sendUrlForScan({ - required String url, - required List tests, - }); + Future> sendUrlForScan( + {required String url, + required List tests, + required bool designTest}); } diff --git a/frontend/lib/presentation/pages/design_page.dart b/frontend/lib/presentation/pages/design_page.dart index 52726a3..c25174f 100644 --- a/frontend/lib/presentation/pages/design_page.dart +++ b/frontend/lib/presentation/pages/design_page.dart @@ -9,11 +9,12 @@ class DesignPage extends StatelessWidget { const DesignPage({super.key, required this.url, required this.tests}); - void redirectLoadingPage(BuildContext context) { + void redirectLoadingPage(BuildContext context, bool designTest) { Navigator.of(context).push(MaterialPageRoute( builder: (_) => LoadingPage( url: url, tests: tests, + designTest: designTest, ), )); } @@ -70,7 +71,7 @@ class DesignPage extends StatelessWidget { children: [ GestureDetector( onTap: () { - redirectLoadingPage(context); + redirectLoadingPage(context, false); }, child: MouseRegion( cursor: SystemMouseCursors.click, @@ -120,7 +121,7 @@ class DesignPage extends StatelessWidget { ), GestureDetector( onTap: () { - redirectLoadingPage(context); + redirectLoadingPage(context, true); }, child: MouseRegion( cursor: SystemMouseCursors.click, @@ -170,25 +171,6 @@ class DesignPage extends StatelessWidget { ], ), ), - SizedBox( - height: 30, - ), - Container( - alignment: Alignment.center, - width: 145, - height: 40, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(40), - color: Color(0xFFF5F5F5)), - child: Text( - "Never ask again", - style: TextStyle( - fontFamily: "Inter", - fontWeight: FontWeight.w500, - fontSize: 16, - color: Color(0xFF898989)), - ), - ) ], ), ), diff --git a/frontend/lib/presentation/pages/loading_page.dart b/frontend/lib/presentation/pages/loading_page.dart index b34a3c9..7afd42c 100644 --- a/frontend/lib/presentation/pages/loading_page.dart +++ b/frontend/lib/presentation/pages/loading_page.dart @@ -9,8 +9,13 @@ import '../providers/test_provider.dart'; class LoadingPage extends StatefulWidget { final String url; final List tests; + final bool designTest; - const LoadingPage({super.key, required this.tests, required this.url}); + const LoadingPage( + {super.key, + required this.tests, + required this.url, + required this.designTest}); @override State createState() => _LoadingPageState(); @@ -26,7 +31,7 @@ class _LoadingPageState extends State { Future _startTest() async { try { await Provider.of(context, listen: false) - .runTests(widget.url, widget.tests); + .runTests(widget.url, widget.tests, widget.designTest); if (mounted) { Navigator.of(context).pushReplacement( MaterialPageRoute(builder: (_) => const ResultPage()), diff --git a/frontend/lib/presentation/providers/test_provider.dart b/frontend/lib/presentation/providers/test_provider.dart index ce10ee8..8c464b5 100644 --- a/frontend/lib/presentation/providers/test_provider.dart +++ b/frontend/lib/presentation/providers/test_provider.dart @@ -15,8 +15,9 @@ class TestProvider extends ChangeNotifier { TestProvider(this.testRepository); - Future runTests(String url, List tests) async { - _results = await testRepository.sendUrlForScan(url: url, tests: tests); + Future runTests(String url, List tests, bool designTest) async { + _results = await testRepository.sendUrlForScan( + url: url, tests: tests, designTest: designTest); notifyListeners(); }