Skip to content

Instantly share code, notes, and snippets.

@vousmeevoyez
Created July 18, 2023 11:17
Show Gist options
  • Save vousmeevoyez/597ecbeb4f0ea313b035d2ce05dc8bf4 to your computer and use it in GitHub Desktop.
Save vousmeevoyez/597ecbeb4f0ea313b035d2ce05dc8bf4 to your computer and use it in GitHub Desktop.
initial config
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- "**.mocks.dart"
- "lib/core/interfaces/source_enum.dart"
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
rules:
- always_declare_return_types
- always_put_control_body_on_new_line
- always_put_required_named_parameters_first
- always_require_non_null_named_parameters
- always_specify_types
- always_use_package_imports
- annotate_overrides
- avoid_annotating_with_dynamic
- avoid_bool_literals_in_conditional_expressions
- avoid_catches_without_on_clauses
- avoid_catching_errors
- avoid_classes_with_only_static_members
- avoid_double_and_int_checks
- avoid_dynamic_calls
- avoid_empty_else
- avoid_equals_and_hash_code_on_mutable_classes
- avoid_escaping_inner_quotes
- avoid_field_initializers_in_const_classes
- avoid_final_parameters
- avoid_function_literals_in_foreach_calls
- avoid_implementing_value_types
- avoid_init_to_null
- avoid_js_rounded_ints
- avoid_multiple_declarations_per_line
- avoid_null_checks_in_equality_operators
- avoid_positional_boolean_parameters
- avoid_print
- avoid_private_typedef_functions
- avoid_redundant_argument_values
- avoid_relative_lib_imports
- avoid_renaming_method_parameters
- avoid_return_types_on_setters
- avoid_returning_null
- avoid_returning_null_for_future
- avoid_returning_null_for_void
- avoid_returning_this
- avoid_setters_without_getters
- avoid_shadowing_type_parameters
- avoid_single_cascade_in_expression_statements
- avoid_slow_async_io
- avoid_type_to_string
- avoid_types_as_parameter_names
- avoid_types_on_closure_parameters
- avoid_unnecessary_containers
- avoid_unused_constructor_parameters
- avoid_void_async
- avoid_web_libraries_in_flutter
- await_only_futures
- camel_case_extensions
- camel_case_types
- cancel_subscriptions
- cascade_invocations
- cast_nullable_to_non_nullable
- close_sinks
- combinators_ordering
- comment_references
- conditional_uri_does_not_exist
- constant_identifier_names
- control_flow_in_finally
- curly_braces_in_flow_control_structures
- depend_on_referenced_packages
- deprecated_consistency
- diagnostic_describe_all_properties
- directives_ordering
- discarded_futures
- do_not_use_environment
- empty_catches
- empty_constructor_bodies
- empty_statements
- eol_at_end_of_file
- exhaustive_cases
- file_names
- flutter_style_todos
- hash_and_equals
- implementation_imports
- iterable_contains_unrelated_type
- join_return_with_assignment
- leading_newlines_in_multiline_strings
- library_names
- library_prefixes
- library_private_types_in_public_api
- lines_longer_than_80_chars
- list_remove_unrelated_type
- literal_only_boolean_expressions
- missing_whitespace_between_adjacent_strings
- no_adjacent_strings_in_list
- no_default_cases
- no_duplicate_case_values
- no_leading_underscores_for_library_prefixes
- no_leading_underscores_for_local_identifiers
- no_logic_in_create_state
- no_runtimeType_toString
- non_constant_identifier_names
- noop_primitive_operations
- null_check_on_nullable_type_parameter
- null_closures
- omit_local_variable_types
- one_member_abstracts
- only_throw_errors
- overridden_fields
- package_api_docs
- package_names
- package_prefixed_library_names
- parameter_assignments
- prefer_adjacent_string_concatenation
- prefer_asserts_in_initializer_lists
- prefer_asserts_with_message
- prefer_collection_literals
- prefer_conditional_assignment
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- prefer_constructors_over_static_methods
- prefer_contains
- prefer_double_quotes
- prefer_equal_for_default_values
- prefer_expression_function_bodies
- prefer_final_fields
- prefer_final_in_for_each
- prefer_final_locals
- prefer_final_parameters
- prefer_for_elements_to_map_fromIterable
- prefer_foreach
- prefer_function_declarations_over_variables
- prefer_generic_function_type_aliases
- prefer_if_elements_to_conditional_expressions
- prefer_if_null_operators
- prefer_initializing_formals
- prefer_inlined_adds
- prefer_int_literals
- prefer_interpolation_to_compose_strings
- prefer_is_empty
- prefer_is_not_empty
- prefer_is_not_operator
- prefer_iterable_whereType
- prefer_mixin
- prefer_null_aware_method_calls
- prefer_null_aware_operators
- prefer_relative_imports
- prefer_single_quotes
- prefer_spread_collections
- prefer_typing_uninitialized_variables
- prefer_void_to_null
- provide_deprecation_message
- public_member_api_docs
- recursive_getters
- require_trailing_commas
- secure_pubspec_urls
- sized_box_for_whitespace
- sized_box_shrink_expand
- slash_for_doc_comments
- sort_child_properties_last
- sort_constructors_first
- sort_pub_dependencies
- sort_unnamed_constructors_first
- test_types_in_equals
- throw_in_finally
- tighten_type_of_initializing_formals
- type_annotate_public_apis: false
- type_init_formals
- unawaited_futures
- unnecessary_await_in_return
- unnecessary_brace_in_string_interps
- unnecessary_const
- unnecessary_constructor_name
- unnecessary_final
- unnecessary_getters_setters
- unnecessary_lambdas
- unnecessary_late
- unnecessary_new
- unnecessary_null_aware_assignments
- unnecessary_null_aware_operator_on_extension_on_nullable
- unnecessary_null_checks
- unnecessary_null_in_if_null_operators
- unnecessary_nullable_for_final_variable_declarations
- unnecessary_overrides
- unnecessary_parenthesis
- unnecessary_raw_strings
- unnecessary_statements
- unnecessary_string_escapes
- unnecessary_string_interpolations
- unnecessary_this
- unnecessary_to_list_in_spreads
- unreachable_from_main
- unrelated_type_equality_checks
- unsafe_html
- use_build_context_synchronously
- use_colored_box
- use_decorated_box
- use_enums
- use_full_hex_values_for_flutter_colors
- use_function_type_syntax_for_parameters
- use_if_null_to_convert_nulls_to_bools
- use_is_even_rather_than_modulo
- use_key_in_widget_constructors
- use_late_for_private_fields_and_variables
- use_named_constants
- use_raw_strings
- use_rethrow_when_possible
- use_setters_to_change_properties
- use_string_buffers
- use_string_in_part_of_directives
- use_super_parameters
- use_test_throws_matchers
- use_to_and_as_if_applicable
- valid_regexps
- void_checks
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
dart_code_metrics:
extends:
- package:dart_code_metrics_presets/all.yaml
metrics-exclude:
- test/**
- lib/router/**
rules-exclude:
- lib/router/**
@vousmeevoyez
Copy link
Author

Scanned folders: 77
Scanned files: 339
style issues: 2609, warning issues: 1230, perf issues: 171

@vousmeevoyez
Copy link
Author

After running

dcm fix lib

The number is reduced up to 50%

Scanned folders: 77
Scanned files: 339
style issues: 1057, warning issues: 851, perf issues: 40

However when I tried run the project again I get bunch of runtime error

lib/core/presentation/widgets/shimmer_item.dart:14:19: Error: A value of type 'int' can't be assigned to a variable of type 'double?'.
    this.height = shimmerItemHeight,
                  ^
lib/core/presentation/widgets/shimmer_item.dart:32:18: Error: A value of type 'int' can't be assigned to a variable of type 'double?'.
    this.width = shimmerItemWidthShort,
                 ^
lib/core/presentation/widgets/shimmer_item.dart:33:19: Error: A value of type 'int' can't be assigned to a variable of type 'double?'.
    this.height = shimmerItemHeight,
                  ^
lib/main.dart:16:12: Error: This expression has type 'void' and can't be used.
  await di.init();
           ^
lib/app.dart:57:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildBloc(context, widget);
                    ^
lib/app.dart:131:17: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
      maxWidth: width,
                ^
lib/router/auth_guard.dart:13:42: Error: The method 'call' isn't defined for the class 'IsAuthenticated'.
 - 'IsAuthenticated' is from 'package:yeahnah/modules/auth/domain/usecases/is_authenticated.dart' ('lib/modules/auth/domain/usecases/is_authenticated.dart').
Try correcting the name to the name of an existing method, or defining a method named 'call'.
    final isAuthenticated = await usecase();
                                         ^
lib/core/presentation/bloc/search_unsplash_photo_bloc.dart:25:72: Error: 'searchUnsplashPhotos' isn't a function or method and can't be invoked.
      final failureOrSuccessGetSearchPhoto = await searchUnsplashPhotos(
                                                                       ^^...
lib/core/presentation/bloc/search_unsplash_photo_bloc.dart:45:74: Error: 'searchUnsplashPhotos' isn't a function or method and can't be invoked.
        final failureOrSuccessGetSearchPhoto = await searchUnsplashPhotos(
                                                                         ^^...
lib/core/presentation/bloc/authentication_bloc.dart:36:22: Error: 'saveToken' isn't a function or method and can't be invoked.
      await saveToken(parameter);
                     ^^^^^^^^^
lib/core/presentation/bloc/authentication_bloc.dart:37:43: Error: 'isAuthenticated' isn't a function or method and can't be invoked.
      final result = await isAuthenticated();
                                          ^^^^...
lib/core/presentation/bloc/authentication_bloc.dart:40:26: Error: 'getUser' isn't a function or method and can't be invoked.
            await getUser(IGetUser(token: event.token));
                         ^^^^^^^
lib/core/presentation/bloc/authentication_bloc.dart:56:43: Error: 'isAuthenticated' isn't a function or method and can't be invoked.
      final result = await isAuthenticated();
                                          ^^^^...
lib/core/presentation/bloc/authentication_bloc.dart:58:37: Error: 'getToken' isn't a function or method and can't be invoked.
        final token = await getToken(IGetToken());
                                    ^^^^^^^^
lib/core/presentation/bloc/authentication_bloc.dart:59:54: Error: 'getUser' isn't a function or method and can't be invoked.
        final failureOrSuccessGetUser = await getUser(IGetUser(token: token));
                                                     ^^^^^^^
lib/core/presentation/bloc/authentication_bloc.dart:75:13: Error: 'logout' isn't a function or method and can't be invoked.
      logout(ILogout());
            ^^^^^^
lib/modules/answer/presentation/bloc/answer_bloc.dart:21:30: Error: 'createAnswers' isn't a function or method and can't be invoked.
          await createAnswers(event.parameter);
                             ^^^^^^^^^^^^^
lib/modules/answer/presentation/bloc/answer_bloc.dart:32:58: Error: 'getAnswers' isn't a function or method and can't be invoked.
      final failureOrSuccessGetAnswers = await getAnswers(event.parameter);
                                                         ^^^^^^^^^^
lib/modules/survey/presentation/bloc/survey_bloc.dart:21:26: Error: 'getSurvey' isn't a function or method and can't be invoked.
          await getSurvey(IGetSurvey(surveyId: event.surveyId));
                         ^^^^^^^^^
lib/modules/survey/presentation/bloc/survey_bloc.dart:35:70: Error: 'getSurveyByJoinCode' isn't a function or method and can't be invoked.
      final failureOrSuccessGetJoinSurvey = await getSurveyByJoinCode(
                                                                     ^^...
lib/modules/survey/presentation/bloc/create_survey_bloc.dart:84:42: Error: 'createSurveyWithQuestions' isn't a function or method and can't be invoked.
          await createSurveyWithQuestions(event.create);
                                         ^^^^^^^^^^^^^^^^...
lib/modules/survey/presentation/bloc/survey_category_bloc.dart:24:36: Error: 'getSurveyCategories' isn't a function or method and can't be invoked.
          await getSurveyCategories(IGetSurveyCategories());
                                   ^^^^^^^^^^^^^^^^^^^
lib/modules/survey/presentation/bloc/user_survey_bloc.dart:20:61: Error: 'getUserSurveys' isn't a function or method and can't be invoked.
      final failureOrSuccessGetSurvey = await getUserSurveys(IGetUserSurveys());
                                                            ^^^^^^^^^^^^^^
lib/modules/survey/presentation/bloc/survey_draft_bloc.dart:24:62: Error: 'getSurveyDrafts' isn't a function or method and can't be invoked.
      final failureOrSuccessGetSurvey = await getSurveyDrafts(IGetSurveyDrafts(
                                                             ^^^^^^^^^^^^^^^
lib/modules/survey/presentation/bloc/survey_draft_bloc.dart:41:32: Error: 'saveSurveyDraft' isn't a function or method and can't be invoked.
          await saveSurveyDraft(ISaveSurveyDraft(draft: event.draft));
                               ^^^^^^^^^^^^^^^
lib/modules/survey/presentation/bloc/survey_draft_bloc.dart:58:34: Error: 'deleteSurveyDraft' isn't a function or method and can't be invoked.
          await deleteSurveyDraft(IDeleteSurveyDraft(draft: event.draft));
                                 ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/bloc/user_bloc.dart:22:52: Error: 'getUser' isn't a function or method and can't be invoked.
      final failureOrSuccessGetUser = await getUser(IGetUser(token: token));
                                                   ^^^^^^^
lib/modules/user/presentation/bloc/edit_user_bloc.dart:49:56: Error: 'updateUser' isn't a function or method and can't be invoked.
      final failureOrSuccessEditUser = await updateUser(event.edit);
                                                       ^^^^^^^^^^
lib/modules/auth/presentation/bloc/social_login_bloc.dart:27:55: Error: 'getLoginUrl' isn't a function or method and can't be invoked.
      final failureOrSuccessSignIn = await getLoginUrl(signInParameter);
                                                      ^^^^^^^^^^^
lib/modules/auth/presentation/bloc/social_login_bloc.dart:36:55: Error: 'getLoginUrl' isn't a function or method and can't be invoked.
      final failureOrSuccessSignUp = await getLoginUrl(signUpParameter);
                                                      ^^^^^^^^^^^
lib/modules/auth/presentation/bloc/login_bloc.dart:37:48: Error: 'login' isn't a function or method and can't be invoked.
      final failureOrSuccessLogin = await login(event.login);
                                               ^^^^^
lib/modules/auth/presentation/bloc/sign_up_bloc.dart:34:52: Error: 'register' isn't a function or method and can't be invoked.
      final failureOrSuccessSignUp = await register(event.register);
                                                   ^^^^^^^^
lib/modules/auth/presentation/bloc/forgot_password_bloc.dart:30:31: Error: 'forgotPassword' isn't a function or method and can't be invoked.
          await forgotPassword(event.forgotPassword);
                              ^^^^^^^^^^^^^^
lib/modules/auth/presentation/bloc/reset_password_bloc.dart:32:30: Error: 'resetPassword' isn't a function or method and can't be invoked.
          await resetPassword(event.resetPassword);
                             ^^^^^^^^^^^^^
lib/modules/question/presentation/bloc/question_bloc.dart:20:28: Error: 'getQuestion' isn't a function or method and can't be invoked.
          await getQuestion(IGetQuestion(id: event.id));
                           ^^^^^^^^^^^
lib/modules/question/presentation/bloc/split_text_bloc.dart:20:72: Error: 'splitTextIntoQuestions' isn't a function or method and can't be invoked.
      final failureOrSuccessGetSplitText = await splitTextIntoQuestions(
                                                                       ^^...
lib/core/presentation/pages/main_page.dart:37:29: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildListenerBloc(context, scaffold);
                            ^
lib/modules/question/presentation/pages/swipe_page.dart:28:51: Error: 'firstTimeSeen' isn't an instance field of this class.
  SwipePage({Key? key, required this.survey, this.firstTimeSeen})
                                                  ^^^^^^^^^^^^^
lib/modules/question/presentation/pages/swipe_page.dart:30:5: Error: The setter 'firstTimeSeen' isn't defined for the class 'SwipePage'.
 - 'SwipePage' is from 'package:yeahnah/modules/question/presentation/pages/swipe_page.dart' ('lib/modules/question/presentation/pages/swipe_page.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'firstTimeSeen'.
    firstTimeSeen = DateTime.now().millisecondsSinceEpoch;
    ^^^^^^^^^^^^^
lib/modules/question/presentation/pages/swipe_page.dart:69:25: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildListener(context, scaffold);
                        ^
lib/modules/question/presentation/pages/swipe_page.dart:188:24: Error: The getter 'firstTimeSeen' isn't defined for the class 'SwipePage'.
 - 'SwipePage' is from 'package:yeahnah/modules/question/presentation/pages/swipe_page.dart' ('lib/modules/question/presentation/pages/swipe_page.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'firstTimeSeen'.
      timeSeen: widget.firstTimeSeen!,
                       ^^^^^^^^^^^^^
lib/modules/survey/presentation/pages/survey_page.dart:33:20: Error: The method 'buildBody' isn't defined for the class 'SurveyPage'.
 - 'SurveyPage' is from 'package:yeahnah/modules/survey/presentation/pages/survey_page.dart' ('lib/modules/survey/presentation/pages/survey_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildBody'.
    final widget = buildBody(context);
                   ^^^^^^^^^
lib/modules/survey/presentation/pages/survey_page.dart:34:22: Error: The method 'buildListenerBloc' isn't defined for the class 'SurveyPage'.
 - 'SurveyPage' is from 'package:yeahnah/modules/survey/presentation/pages/survey_page.dart' ('lib/modules/survey/presentation/pages/survey_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildListenerBloc'.
    final listener = buildListenerBloc(context, widget);
                     ^^^^^^^^^^^^^^^^^
lib/modules/survey/presentation/pages/survey_page.dart:36:12: Error: The method 'buildBloc' isn't defined for the class 'SurveyPage'.
 - 'SurveyPage' is from 'package:yeahnah/modules/survey/presentation/pages/survey_page.dart' ('lib/modules/survey/presentation/pages/survey_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildBloc'.
    return buildBloc(context, listener);
           ^^^^^^^^^
lib/modules/survey/presentation/pages/join_survey_page.dart:48:7: Error: No named parameter with the name 'context'.
      context: context,
      ^^^^^^^
lib/modules/survey/presentation/pages/join_survey_page.dart:55:7: Error: No named parameter with the name 'context'.
      context: context,
      ^^^^^^^
lib/modules/survey/presentation/pages/join_survey_page.dart:87:35: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    final listener = buildListener(context, scaffold);
                                  ^
lib/modules/survey/presentation/pages/join_survey_page.dart:89:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildBloc(context, listener);
                    ^
lib/modules/survey/presentation/pages/join_survey_with_code_page.dart:24:35: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
    final listener = buildListener(context);
                                  ^
lib/modules/survey/presentation/pages/join_survey_with_code_page.dart:26:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildBloc(context, listener);
                    ^
lib/modules/survey/presentation/pages/create_survey_page.dart:54:18: Error: Undefined name 'widget'.
  String title = widget.draft?.title ?? "";
                 ^^^^^^
lib/modules/survey/presentation/pages/create_survey_page.dart:55:21: Error: Undefined name 'widget'.
  String joinCode = widget.draft?.joinCode ?? "";
                    ^^^^^^
lib/modules/survey/presentation/pages/create_survey_page.dart:56:21: Error: Undefined name 'widget'.
  String category = widget.draft?.category ?? "";
                    ^^^^^^
lib/modules/survey/presentation/pages/create_survey_page.dart:61:26: Error: Undefined name 'widget'.
  String surveyContext = widget.draft?.surveyContext ?? "";
                         ^^^^^^
lib/modules/survey/presentation/pages/create_survey_page.dart:62:25: Error: Undefined name 'widget'.
  String joinPassword = widget.draft?.joinPassword ?? "";
                        ^^^^^^
lib/modules/survey/presentation/pages/create_survey_page.dart:63:21: Error: Undefined name 'widget'.
  String poolSize = widget.draft?.poolSize ?? "";
                    ^^^^^^
lib/modules/survey/presentation/pages/create_survey_page.dart:64:19: Error: Undefined name 'widget'.
  bool isPublic = widget.draft?.isPublic ?? true;
                  ^^^^^^
lib/modules/survey/presentation/pages/create_survey_page.dart:65:20: Error: Undefined name 'widget'.
  int inputCount = widget.draft?.questions.length ?? 2;
                   ^^^^^^
lib/modules/survey/presentation/pages/create_survey_page.dart:67:21: Error: Undefined name 'widget'.
  String? draftId = widget.draft?.id;
                    ^^^^^^
lib/modules/survey/presentation/pages/create_survey_page.dart:137:25: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildListener(context, scaffold);
                        ^
lib/modules/survey/presentation/pages/create_survey_page.dart:345:11: Error: This expression has type 'void' and can't be used.
    await showImageSelectionOptions(SurveyImageType.title);
          ^
lib/modules/survey/presentation/pages/create_survey_page.dart:394:11: Error: This expression has type 'void' and can't be used.
    await showImageSelectionOptions(SurveyImageType.question, index);
          ^
lib/modules/survey/presentation/pages/survey_stats_page.dart:40:42: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
    final scaffoldBuilder = buildScaffold(context);
                                         ^
lib/modules/survey/presentation/pages/survey_stats_page.dart:41:35: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    final listener = buildListener(context, scaffoldBuilder);
                                  ^
lib/modules/survey/presentation/pages/survey_stats_page.dart:43:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildBloc(context, listener);
                    ^
lib/modules/survey/presentation/pages/survey_stats_page.dart:315:19: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
            size: smallIconSize,
                  ^
lib/modules/survey/presentation/pages/survey_stats_page.dart:320:19: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
            size: smallIconSize,
                  ^
lib/modules/survey/presentation/pages/create_page.dart:49:29: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildListenerBloc(context, scaffold);
                            ^
lib/modules/survey/presentation/pages/create_page.dart:76:47: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
    final createdSurveys = buildCreatedSurveys(context);
                                              ^
lib/modules/survey/presentation/pages/create_page.dart:141:38: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    final responsesLabel = buildLabel(context, manageText);
                                     ^
lib/modules/survey/presentation/pages/survey_drafts_page.dart:38:42: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
    final scaffoldBuilder = buildScaffold(context);
                                         ^
lib/modules/survey/presentation/pages/survey_drafts_page.dart:39:25: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildListener(context, scaffoldBuilder);
                        ^
lib/modules/survey/presentation/pages/survey_drafts_page.dart:164:13: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
      size: xSmallIconSize,
            ^
lib/modules/survey/presentation/pages/qr_code_page.dart:77:35: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    final listener = buildListener(context, scaffold);
                                  ^
lib/modules/survey/presentation/pages/qr_code_page.dart:79:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildBloc(context, listener);
                    ^
lib/modules/survey/presentation/pages/qr_code_page.dart:179:19: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
            size: smallIconSize,
                  ^
lib/modules/survey/presentation/pages/qr_code_page.dart:301:19: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
            size: largeIconSize,
                  ^
lib/modules/survey/presentation/pages/qr_code_page.dart:347:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/modules/survey/presentation/pages/creator_survey_stats_page.dart:38:35: Error: Too many positional arguments: 0 allowed, but 1 found.
Try removing the extra positional arguments.
    final scaffold = buildScaffold(context);
                                  ^
lib/modules/survey/presentation/pages/creator_survey_stats_page.dart:39:35: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    final listener = buildListener(context, scaffold);
                                  ^
lib/modules/survey/presentation/pages/creator_survey_stats_page.dart:41:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildBloc(context, listener);
                    ^
lib/modules/survey/presentation/pages/creator_survey_stats_page.dart:256:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: xSmallIconSize,
              ^
lib/modules/survey/presentation/pages/creator_survey_stats_page.dart:264:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: xSmallIconSize,
              ^
lib/modules/survey/presentation/pages/creator_survey_stats_page.dart:272:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: xSmallIconSize,
              ^
lib/modules/survey/presentation/pages/creator_survey_stats_page.dart:317:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/modules/survey/presentation/pages/survey_list_page.dart:54:39: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    final listener = buildListenerBloc(context, scaffold);
                                      ^
lib/modules/survey/presentation/pages/survey_list_page.dart:56:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildBloc(context, listener);
                    ^
lib/modules/survey/presentation/pages/survey_list_page.dart:159:23: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
      prefixIconSize: smallIconSize,
                      ^
lib/modules/user/presentation/pages/profile_page.dart:44:5: Error: The method 'dispatchFetchUser' isn't defined for the class '_ProfilePageState'.
 - '_ProfilePageState' is from 'package:yeahnah/modules/user/presentation/pages/profile_page.dart' ('lib/modules/user/presentation/pages/profile_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'dispatchFetchUser'.
    dispatchFetchUser(context);
    ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/profile_page.dart:50:5: Error: The method 'dispatchFetchUser' isn't defined for the class '_ProfilePageState'.
 - '_ProfilePageState' is from 'package:yeahnah/modules/user/presentation/pages/profile_page.dart' ('lib/modules/user/presentation/pages/profile_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'dispatchFetchUser'.
    dispatchFetchUser(context);
    ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/profile_page.dart:70:22: Error: The getter 'redirectToSettings' isn't defined for the class '_ProfilePageState'.
 - '_ProfilePageState' is from 'package:yeahnah/modules/user/presentation/pages/profile_page.dart' ('lib/modules/user/presentation/pages/profile_page.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'redirectToSettings'.
          onPressed: redirectToSettings,
                     ^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/profile_page.dart:76:21: Error: The method 'buildProfileInfo' isn't defined for the class '_ProfilePageState'.
 - '_ProfilePageState' is from 'package:yeahnah/modules/user/presentation/pages/profile_page.dart' ('lib/modules/user/presentation/pages/profile_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildProfileInfo'.
    final profile = buildProfileInfo(context);
                    ^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/profile_page.dart:86:24: Error: The method 'buildStats' isn't defined for the class '_ProfilePageState'.
 - '_ProfilePageState' is from 'package:yeahnah/modules/user/presentation/pages/profile_page.dart' ('lib/modules/user/presentation/pages/profile_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildStats'.
    final statistics = buildStats(context);
                       ^^^^^^^^^^
lib/modules/user/presentation/pages/profile_page.dart:146:22: Error: The method 'buildListenerBloc' isn't defined for the class '_ProfilePageState'.
 - '_ProfilePageState' is from 'package:yeahnah/modules/user/presentation/pages/profile_page.dart' ('lib/modules/user/presentation/pages/profile_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildListenerBloc'.
    final listener = buildListenerBloc(context, scaffold);
                     ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/profile_page.dart:148:12: Error: The method 'buildBloc' isn't defined for the class '_ProfilePageState'.
 - '_ProfilePageState' is from 'package:yeahnah/modules/user/presentation/pages/profile_page.dart' ('lib/modules/user/presentation/pages/profile_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildBloc'.
    return buildBloc(context, listener);
           ^^^^^^^^^
lib/modules/user/presentation/pages/settings_page.dart:40:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/modules/user/presentation/pages/settings_page.dart:54:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/modules/user/presentation/pages/settings_page.dart:67:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/modules/user/presentation/pages/settings_page.dart:80:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/modules/user/presentation/pages/settings_page.dart:93:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/modules/user/presentation/pages/settings_page.dart:178:11: Error: The method 'call' isn't defined for the class 'Logout'.
 - 'Logout' is from 'package:yeahnah/modules/auth/domain/usecases/logout.dart' ('lib/modules/auth/domain/usecases/logout.dart').
Try correcting the name to the name of an existing method, or defining a method named 'call'.
    logout(ILogout());
          ^
lib/router/modal_sheets.dart:65:29: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
                      size: smallIconSize,
                            ^
lib/router/modal_sheets.dart:124:29: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
                      size: smallIconSize,
                            ^
lib/modules/user/presentation/widgets/statistics_info.dart:50:19: Error: The method 'buildTile' isn't defined for the class 'StatisticsInfo'.
 - 'StatisticsInfo' is from 'package:yeahnah/modules/user/presentation/widgets/statistics_info.dart' ('lib/modules/user/presentation/widgets/statistics_info.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildTile'.
                  buildTile(
                  ^^^^^^^^^
lib/modules/user/presentation/widgets/statistics_info.dart:63:19: Error: The method 'buildTileWithoutKeyPair' isn't defined for the class 'StatisticsInfo'.
 - 'StatisticsInfo' is from 'package:yeahnah/modules/user/presentation/widgets/statistics_info.dart' ('lib/modules/user/presentation/widgets/statistics_info.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildTileWithoutKeyPair'.
                  buildTileWithoutKeyPair(
                  ^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:36:5: Error: The method 'dispatchFetchUser' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'dispatchFetchUser'.
    dispatchFetchUser(context);
    ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:41:5: Error: The method 'dispatchFetchUser' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'dispatchFetchUser'.
    dispatchFetchUser(context);
    ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:46:5: Error: The method 'dispatchFetchUser' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'dispatchFetchUser'.
    dispatchFetchUser(context);
    ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:51:5: Error: The method 'dispatchFetchUser' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'dispatchFetchUser'.
    dispatchFetchUser(context);
    ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:67:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:72:22: Error: The method 'buildEditableField' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildEditableField'.
    final editName = buildEditableField(
                     ^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:75:39: Error: The method 'handleEmptyOrExistName' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleEmptyOrExistName'.
      setValue: (UserLoaded state) => handleEmptyOrExistName(state),
                                      ^^^^^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:76:37: Error: The method 'redirectToEditUserFirstLastName' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'redirectToEditUserFirstLastName'.
      action: (UserLoaded state) => redirectToEditUserFirstLastName(
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:78:9: Error: The method 'handleEmptyOrExistFirstName' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleEmptyOrExistFirstName'.
        handleEmptyOrExistFirstName(state),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:79:9: Error: The method 'handleEmptyOrExistLastName' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleEmptyOrExistLastName'.
        handleEmptyOrExistLastName(state),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:83:26: Error: The method 'buildEditableField' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildEditableField'.
    final editLocation = buildEditableField(
                         ^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:86:39: Error: The method 'handleEmptyOrExistLocation' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleEmptyOrExistLocation'.
      setValue: (UserLoaded state) => handleEmptyOrExistLocation(state),
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:87:37: Error: The method 'redirectToEditUserLocation' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'redirectToEditUserLocation'.
      action: (UserLoaded state) => redirectToEditUserLocation(
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:89:9: Error: The method 'handleEmptyOrExistLocationValue' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleEmptyOrExistLocationValue'.
        handleEmptyOrExistLocationValue(state),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:93:21: Error: The method 'buildEditableField' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildEditableField'.
    final editBio = buildEditableField(
                    ^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:96:39: Error: The method 'handleEmptyOrExistBio' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleEmptyOrExistBio'.
      setValue: (UserLoaded state) => handleEmptyOrExistBio(state),
                                      ^^^^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:98:11: Error: The method 'redirectToEditUserBio' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'redirectToEditUserBio'.
          redirectToEditUserBio(context, handleEmptyOrExistBioValue(state)),
          ^^^^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:98:42: Error: The method 'handleEmptyOrExistBioValue' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleEmptyOrExistBioValue'.
          redirectToEditUserBio(context, handleEmptyOrExistBioValue(state)),
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:123:22: Error: The method 'buildListenerBloc' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildListenerBloc'.
    final listener = buildListenerBloc(context, scaffold);
                     ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/info_setting_page.dart:125:12: Error: The method 'buildBloc' isn't defined for the class '_InfoSettingPageState'.
 - '_InfoSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/info_setting_page.dart' ('lib/modules/user/presentation/pages/settings/info_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildBloc'.
    return buildBloc(context, listener);
           ^^^^^^^^^
lib/modules/user/presentation/pages/settings/edit_user_page.dart:51:35: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    final listener = buildListener(context, scaffold);
                                  ^
lib/modules/user/presentation/pages/settings/edit_user_page.dart:53:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildBloc(context, listener);
                    ^
lib/modules/user/presentation/pages/settings/account_setting_page.dart:34:5: Error: The method 'dispatchFetchUser' isn't defined for the class '_AccountSettingPageState'.
 - '_AccountSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/account_setting_page.dart' ('lib/modules/user/presentation/pages/settings/account_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'dispatchFetchUser'.
    dispatchFetchUser(context);
    ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/account_setting_page.dart:39:5: Error: The method 'dispatchFetchUser' isn't defined for the class '_AccountSettingPageState'.
 - '_AccountSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/account_setting_page.dart' ('lib/modules/user/presentation/pages/settings/account_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'dispatchFetchUser'.
    dispatchFetchUser(context);
    ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/account_setting_page.dart:44:5: Error: The method 'dispatchFetchUser' isn't defined for the class '_AccountSettingPageState'.
 - '_AccountSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/account_setting_page.dart' ('lib/modules/user/presentation/pages/settings/account_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'dispatchFetchUser'.
    dispatchFetchUser(context);
    ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/account_setting_page.dart:49:5: Error: The method 'dispatchFetchUser' isn't defined for the class '_AccountSettingPageState'.
 - '_AccountSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/account_setting_page.dart' ('lib/modules/user/presentation/pages/settings/account_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'dispatchFetchUser'.
    dispatchFetchUser(context);
    ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/account_setting_page.dart:61:19: Error: The method 'buildEmail' isn't defined for the class '_AccountSettingPageState'.
 - '_AccountSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/account_setting_page.dart' ('lib/modules/user/presentation/pages/settings/account_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildEmail'.
    final email = buildEmail(
                  ^^^^^^^^^^
lib/modules/user/presentation/pages/settings/account_setting_page.dart:102:22: Error: The method 'buildListenerBloc' isn't defined for the class '_AccountSettingPageState'.
 - '_AccountSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/account_setting_page.dart' ('lib/modules/user/presentation/pages/settings/account_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildListenerBloc'.
    final listener = buildListenerBloc(context, scaffold);
                     ^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/pages/settings/account_setting_page.dart:104:12: Error: The method 'buildBloc' isn't defined for the class '_AccountSettingPageState'.
 - '_AccountSettingPageState' is from 'package:yeahnah/modules/user/presentation/pages/settings/account_setting_page.dart' ('lib/modules/user/presentation/pages/settings/account_setting_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildBloc'.
    return buildBloc(context, listener);
           ^^^^^^^^^
lib/modules/user/presentation/pages/settings/help_setting_page.dart:50:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/modules/user/presentation/pages/settings/help_setting_page.dart:62:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/modules/user/presentation/pages/settings/about_setting_page.dart:53:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/core/presentation/widgets/custom_search_bar.dart:61:36: Error: The argument type 'num' can't be assigned to the parameter type 'double?'.
              size: prefixIconSize ?? smallIconSize,
                                   ^
lib/core/presentation/widgets/custom_search_bar.dart:67:29: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
                      size: smallIconSize,
                            ^
lib/core/presentation/widgets/dialogs.dart:45:21: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
              size: smallIconSize,
                    ^
lib/core/presentation/widgets/empty_content_message.dart:32:23: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
                size: xxLargeIconSize,
                      ^
lib/core/presentation/widgets/sort_button.dart:33:47: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
      icon: Icon(FontAwesomeIcons.sort, size: defaultIconSize),
                                              ^
lib/core/presentation/widgets/text_input_with_paste_button.dart:74:23: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
                size: smallIconSize,
                      ^
lib/modules/auth/presentation/mixins/social_mixin_page.dart:49:11: Error: The setter 'signIn' isn't defined for the class 'SocialMixinPage'.
 - 'SocialMixinPage' is from 'package:yeahnah/modules/auth/presentation/mixins/social_mixin_page.dart' ('lib/modules/auth/presentation/mixins/social_mixin_page.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'signIn'.
          signIn = state.signIn;
          ^^^^^^
lib/modules/auth/presentation/mixins/social_mixin_page.dart:50:11: Error: The setter 'signUp' isn't defined for the class 'SocialMixinPage'.
 - 'SocialMixinPage' is from 'package:yeahnah/modules/auth/presentation/mixins/social_mixin_page.dart' ('lib/modules/auth/presentation/mixins/social_mixin_page.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'signUp'.
          signUp = state.signUp;
          ^^^^^^
lib/modules/question/presentation/widgets/question_card.dart:61:11: Error: The method 'buildTappableTextSpan' isn't defined for the class 'QuestionCard'.
 - 'QuestionCard' is from 'package:yeahnah/modules/question/presentation/widgets/question_card.dart' ('lib/modules/question/presentation/widgets/question_card.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildTappableTextSpan'.
          buildTappableTextSpan(unsplashPhoto!.user.name, authorProfileUrl),
          ^^^^^^^^^^^^^^^^^^^^^
lib/modules/question/presentation/widgets/question_card.dart:63:11: Error: The method 'buildTappableTextSpan' isn't defined for the class 'QuestionCard'.
 - 'QuestionCard' is from 'package:yeahnah/modules/question/presentation/widgets/question_card.dart' ('lib/modules/question/presentation/widgets/question_card.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildTappableTextSpan'.
          buildTappableTextSpan('Unsplash', unsplashSiteUrl),
          ^^^^^^^^^^^^^^^^^^^^^
lib/modules/question/presentation/widgets/question_card.dart:110:33: Error: The method 'buildSplash' isn't defined for the class 'QuestionCard'.
 - 'QuestionCard' is from 'package:yeahnah/modules/question/presentation/widgets/question_card.dart' ('lib/modules/question/presentation/widgets/question_card.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildSplash'.
    final splash = showSplash ? buildSplash() : null;
                                ^^^^^^^^^^^
lib/modules/question/presentation/widgets/question_card.dart:155:26: Error: The method 'buildTextOnBlackGradientBg' isn't defined for the class 'QuestionCard'.
 - 'QuestionCard' is from 'package:yeahnah/modules/question/presentation/widgets/question_card.dart' ('lib/modules/question/presentation/widgets/question_card.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildTextOnBlackGradientBg'.
                  child: buildTextOnBlackGradientBg(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/question/presentation/widgets/yeahnah_button.dart:36:17: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
          size: largeIconSize,
                ^
lib/modules/survey/presentation/widgets/answer_response_card.dart:79:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: smallIconSize,
              ^
lib/modules/survey/presentation/widgets/available_yeahnah_card.dart:82:9: Error: The method 'redirectToPreSurveyPage' isn't defined for the class 'AvailableYeahNahCard'.
 - 'AvailableYeahNahCard' is from 'package:yeahnah/modules/survey/presentation/widgets/available_yeahnah_card.dart' ('lib/modules/survey/presentation/widgets/available_yeahnah_card.dart').
Try correcting the name to the name of an existing method, or defining a method named 'redirectToPreSurveyPage'.
        redirectToPreSurveyPage(title);
        ^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/category_dropdown.dart:69:37: Error: Not a constant expression.
                  BorderSide(color: borderColor ?? mindhiveGrey2),
                                    ^^^^^^^^^^^
lib/modules/survey/presentation/widgets/question_inputs.dart:21:19: Error: 'questionImages' isn't an instance field of this class.
    required this.questionImages,
                  ^^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/question_inputs.dart:23:19: Error: 'inputCount' isn't an instance field of this class.
    required this.inputCount,
                  ^^^^^^^^^^
lib/modules/survey/presentation/widgets/question_inputs.dart:44:14: Error: The getter 'inputCount' isn't defined for the class 'QuestionInputs'.
 - 'QuestionInputs' is from 'package:yeahnah/modules/survey/presentation/widgets/question_inputs.dart' ('lib/modules/survey/presentation/widgets/question_inputs.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'inputCount'.
      widget.inputCount += numToAdd;
             ^^^^^^^^^^
lib/modules/survey/presentation/widgets/question_inputs.dart:44:14: Error: The setter 'inputCount' isn't defined for the class 'QuestionInputs'.
 - 'QuestionInputs' is from 'package:yeahnah/modules/survey/presentation/widgets/question_inputs.dart' ('lib/modules/survey/presentation/widgets/question_inputs.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'inputCount'.
      widget.inputCount += numToAdd;
             ^^^^^^^^^^
lib/modules/survey/presentation/widgets/question_inputs.dart:57:34: Error: The getter 'inputCount' isn't defined for the class 'QuestionInputs'.
 - 'QuestionInputs' is from 'package:yeahnah/modules/survey/presentation/widgets/question_inputs.dart' ('lib/modules/survey/presentation/widgets/question_inputs.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'inputCount'.
        initialItemCount: widget.inputCount,
                                 ^^^^^^^^^^
lib/modules/survey/presentation/widgets/question_inputs.dart:67:35: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    final slidable = buildSlidable(context, index);
                                  ^
lib/modules/survey/presentation/widgets/question_inputs.dart:106:37: Error: The getter 'questionImages' isn't defined for the class 'QuestionInputs'.
 - 'QuestionInputs' is from 'package:yeahnah/modules/survey/presentation/widgets/question_inputs.dart' ('lib/modules/survey/presentation/widgets/question_inputs.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'questionImages'.
                  imageFile: widget.questionImages[index],
                                    ^^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/add_questions_button.dart:22:11: Error: The method 'buildButton' isn't defined for the class 'AddQuestionsButton'.
 - 'AddQuestionsButton' is from 'package:yeahnah/modules/survey/presentation/widgets/add_questions_button.dart' ('lib/modules/survey/presentation/widgets/add_questions_button.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildButton'.
          buildButton(context: context, numToAdd: 1),
          ^^^^^^^^^^^
lib/modules/survey/presentation/widgets/add_questions_button.dart:24:11: Error: The method 'buildButton' isn't defined for the class 'AddQuestionsButton'.
 - 'AddQuestionsButton' is from 'package:yeahnah/modules/survey/presentation/widgets/add_questions_button.dart' ('lib/modules/survey/presentation/widgets/add_questions_button.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildButton'.
          buildButton(context: context, numToAdd: 2),
          ^^^^^^^^^^^
lib/modules/survey/presentation/widgets/add_questions_button.dart:26:11: Error: The method 'buildButton' isn't defined for the class 'AddQuestionsButton'.
 - 'AddQuestionsButton' is from 'package:yeahnah/modules/survey/presentation/widgets/add_questions_button.dart' ('lib/modules/survey/presentation/widgets/add_questions_button.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildButton'.
          buildButton(context: context, numToAdd: 3),
          ^^^^^^^^^^^
lib/modules/survey/presentation/widgets/add_questions_button.dart:28:11: Error: The method 'buildButton' isn't defined for the class 'AddQuestionsButton'.
 - 'AddQuestionsButton' is from 'package:yeahnah/modules/survey/presentation/widgets/add_questions_button.dart' ('lib/modules/survey/presentation/widgets/add_questions_button.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildButton'.
          buildButton(context: context, numToAdd: 5),
          ^^^^^^^^^^^
lib/modules/survey/presentation/widgets/add_questions_button.dart:30:11: Error: The method 'buildButton' isn't defined for the class 'AddQuestionsButton'.
 - 'AddQuestionsButton' is from 'package:yeahnah/modules/survey/presentation/widgets/add_questions_button.dart' ('lib/modules/survey/presentation/widgets/add_questions_button.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildButton'.
          buildButton(context: context, numToAdd: 10),
          ^^^^^^^^^^^
lib/modules/survey/presentation/widgets/create_survey_form.dart:114:5: Error: The method 'initControllers' isn't defined for the class 'CreateSurveyFormState'.
 - 'CreateSurveyFormState' is from 'package:yeahnah/modules/survey/presentation/widgets/create_survey_form.dart' ('lib/modules/survey/presentation/widgets/create_survey_form.dart').
Try correcting the name to the name of an existing method, or defining a method named 'initControllers'.
    initControllers();
    ^^^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/create_survey_form.dart:125:30: Error: The method 'buildSurveyTitleInput' isn't defined for the class 'CreateSurveyFormState'.
 - 'CreateSurveyFormState' is from 'package:yeahnah/modules/survey/presentation/widgets/create_survey_form.dart' ('lib/modules/survey/presentation/widgets/create_survey_form.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildSurveyTitleInput'.
    final surveyTitleInput = buildSurveyTitleInput(context);
                             ^^^^^^^^^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/create_survey_form.dart:126:27: Error: The method 'buildJoinCodeInput' isn't defined for the class 'CreateSurveyFormState'.
 - 'CreateSurveyFormState' is from 'package:yeahnah/modules/survey/presentation/widgets/create_survey_form.dart' ('lib/modules/survey/presentation/widgets/create_survey_form.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildJoinCodeInput'.
    final joinCodeInput = buildJoinCodeInput(context);
                          ^^^^^^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/create_survey_form.dart:127:27: Error: The method 'buildCategory' isn't defined for the class 'CreateSurveyFormState'.
 - 'CreateSurveyFormState' is from 'package:yeahnah/modules/survey/presentation/widgets/create_survey_form.dart' ('lib/modules/survey/presentation/widgets/create_survey_form.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildCategory'.
    final categoryInput = buildCategory(context);
                          ^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/create_survey_form.dart:128:28: Error: The method 'buildQuestions' isn't defined for the class 'CreateSurveyFormState'.
 - 'CreateSurveyFormState' is from 'package:yeahnah/modules/survey/presentation/widgets/create_survey_form.dart' ('lib/modules/survey/presentation/widgets/create_survey_form.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildQuestions'.
    final questionsInput = buildQuestions(context);
                           ^^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/create_survey_form.dart:129:32: Error: The method 'buildSurveyContext' isn't defined for the class 'CreateSurveyFormState'.
 - 'CreateSurveyFormState' is from 'package:yeahnah/modules/survey/presentation/widgets/create_survey_form.dart' ('lib/modules/survey/presentation/widgets/create_survey_form.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildSurveyContext'.
    final surveyContextInput = buildSurveyContext(context);
                               ^^^^^^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/create_survey_form.dart:130:31: Error: The method 'buildJoinPassword' isn't defined for the class 'CreateSurveyFormState'.
 - 'CreateSurveyFormState' is from 'package:yeahnah/modules/survey/presentation/widgets/create_survey_form.dart' ('lib/modules/survey/presentation/widgets/create_survey_form.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildJoinPassword'.
    final joinPasswordInput = buildJoinPassword(context);
                              ^^^^^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/create_survey_form.dart:131:27: Error: The method 'buildPoolSize' isn't defined for the class 'CreateSurveyFormState'.
 - 'CreateSurveyFormState' is from 'package:yeahnah/modules/survey/presentation/widgets/create_survey_form.dart' ('lib/modules/survey/presentation/widgets/create_survey_form.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildPoolSize'.
    final poolSizeInput = buildPoolSize(context);
                          ^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/create_survey_form.dart:156:12: Error: The method 'buildBloc' isn't defined for the class 'CreateSurveyFormState'.
 - 'CreateSurveyFormState' is from 'package:yeahnah/modules/survey/presentation/widgets/create_survey_form.dart' ('lib/modules/survey/presentation/widgets/create_survey_form.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildBloc'.
    return buildBloc(context, form);
           ^^^^^^^^^
lib/modules/survey/presentation/widgets/join_code_scanner.dart:31:5: Error: The setter 'mobileScannerController' isn't defined for the class '_JoinCodeScannerState'.
 - '_JoinCodeScannerState' is from 'package:yeahnah/modules/survey/presentation/widgets/join_code_scanner.dart' ('lib/modules/survey/presentation/widgets/join_code_scanner.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'mobileScannerController'.
    mobileScannerController = widget.controller ??
    ^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/survey_item_button.dart:78:25: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
        buildDateTimeAgo(context, userSurvey.createdAt),
                        ^
lib/modules/survey/presentation/widgets/survey_item_button.dart:174:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: xSmallIconSize,
              ^
lib/modules/survey/presentation/widgets/survey_item_button.dart:183:13: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
      size: xSmallIconSize,
            ^
lib/modules/survey/presentation/widgets/survey_item_button.dart:193:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: xSmallIconSize,
              ^
lib/core/presentation/mixins/loading_mixin.dart:89:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: xLargeIconSize,
              ^
lib/core/presentation/mixins/loading_mixin.dart:94:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: xLargeIconSize,
              ^
lib/core/presentation/mixins/loading_mixin.dart:99:15: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
        size: xLargeIconSize,
              ^
lib/modules/user/presentation/widgets/profile_info.dart:41:11: Error: The method 'buildAddNameWidget' isn't defined for the class 'ProfileInfo'.
 - 'ProfileInfo' is from 'package:yeahnah/modules/user/presentation/widgets/profile_info.dart' ('lib/modules/user/presentation/widgets/profile_info.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildAddNameWidget'.
        : buildAddNameWidget(context: context, action: () => print('hello'));
          ^^^^^^^^^^^^^^^^^^
lib/modules/user/presentation/widgets/profile_info.dart:51:11: Error: The method 'buildFillData' isn't defined for the class 'ProfileInfo'.
 - 'ProfileInfo' is from 'package:yeahnah/modules/user/presentation/widgets/profile_info.dart' ('lib/modules/user/presentation/widgets/profile_info.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildFillData'.
        : buildFillData(
          ^^^^^^^^^^^^^
lib/modules/user/presentation/widgets/profile_info.dart:65:11: Error: The method 'buildFillData' isn't defined for the class 'ProfileInfo'.
 - 'ProfileInfo' is from 'package:yeahnah/modules/user/presentation/widgets/profile_info.dart' ('lib/modules/user/presentation/widgets/profile_info.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildFillData'.
        : buildFillData(
          ^^^^^^^^^^^^^
lib/core/presentation/widgets/charts/stacked_bar_100_double.dart:168:17: Error: The argument type 'int' can't be assigned to the parameter type 'double?'.
          size: smallIconSize,
                ^
lib/modules/auth/presentation/pages/sign_in_page.dart:34:7: Error: No named parameter with the name 'context'.
      context: context,
      ^^^^^^^
lib/modules/auth/presentation/pages/sign_in_page.dart:42:51: Error: No named parameter with the name 'context'.
    final dontHaveAnAccountText = buildSignUpText(context: context);
                                                  ^^^^^^^
lib/modules/auth/presentation/pages/sign_in_page.dart:68:12: Error: The method 'handleAnimateTitle' isn't defined for the class 'SignInPage'.
 - 'SignInPage' is from 'package:yeahnah/modules/auth/presentation/pages/sign_in_page.dart' ('lib/modules/auth/presentation/pages/sign_in_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'handleAnimateTitle'.
        ...handleAnimateTitle(context),
           ^^^^^^^^^^^^^^^^^^
lib/modules/auth/presentation/pages/sign_in_page.dart:100:29: Error: The method 'buildBuilderBloc' isn't defined for the class 'SignInPage'.
 - 'SignInPage' is from 'package:yeahnah/modules/auth/presentation/pages/sign_in_page.dart' ('lib/modules/auth/presentation/pages/sign_in_page.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildBuilderBloc'.
    final scaffoldBuilder = buildBuilderBloc(context, scaffold);
                            ^^^^^^^^^^^^^^^^
lib/modules/auth/presentation/pages/sign_in_page.dart:101:47: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    final scaffoldListener = buildListenerBloc(context, scaffoldBuilder);
                                              ^
lib/modules/auth/presentation/pages/sign_in_page.dart:103:21: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
    return buildBloc(context, scaffoldListener);
                    ^
lib/modules/auth/presentation/widgets/sign_in_button.dart:40:25: Error: The method 'generateSocialTheme' isn't defined for the class 'SignInButton'.
 - 'SignInButton' is from 'package:yeahnah/modules/auth/presentation/widgets/sign_in_button.dart' ('lib/modules/auth/presentation/widgets/sign_in_button.dart').
Try correcting the name to the name of an existing method, or defining a method named 'generateSocialTheme'.
    final socialTheme = generateSocialTheme(context, social);
                        ^^^^^^^^^^^^^^^^^^^
lib/modules/auth/presentation/widgets/sign_in_button.dart:59:14: Error: The method 'buildOutlinedButton' isn't defined for the class 'SignInButton'.
 - 'SignInButton' is from 'package:yeahnah/modules/auth/presentation/widgets/sign_in_button.dart' ('lib/modules/auth/presentation/widgets/sign_in_button.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildOutlinedButton'.
      return buildOutlinedButton(child);
             ^^^^^^^^^^^^^^^^^^^
lib/modules/auth/presentation/widgets/sign_in_button.dart:67:12: Error: The method 'buildElevatedButton' isn't defined for the class 'SignInButton'.
 - 'SignInButton' is from 'package:yeahnah/modules/auth/presentation/widgets/sign_in_button.dart' ('lib/modules/auth/presentation/widgets/sign_in_button.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildElevatedButton'.
    return buildElevatedButton(child, socialTheme.backgroundColor);
           ^^^^^^^^^^^^^^^^^^^
lib/modules/auth/presentation/widgets/tos_privacy_policy.dart:36:29: Error: The method 'openUrl' isn't defined for the class 'TosAndPrivacyPolicy'.
 - 'TosAndPrivacyPolicy' is from 'package:yeahnah/modules/auth/presentation/widgets/tos_privacy_policy.dart' ('lib/modules/auth/presentation/widgets/tos_privacy_policy.dart').
Try correcting the name to the name of an existing method, or defining a method named 'openUrl'.
            ..onTap = () => openUrl(termsOfServiceUrl),
                            ^^^^^^^
lib/modules/auth/presentation/widgets/tos_privacy_policy.dart:49:29: Error: The method 'openUrl' isn't defined for the class 'TosAndPrivacyPolicy'.
 - 'TosAndPrivacyPolicy' is from 'package:yeahnah/modules/auth/presentation/widgets/tos_privacy_policy.dart' ('lib/modules/auth/presentation/widgets/tos_privacy_policy.dart').
Try correcting the name to the name of an existing method, or defining a method named 'openUrl'.
            ..onTap = () => openUrl(privacyPolicyUrl),
                            ^^^^^^^
lib/modules/survey/presentation/pages/create_survey_page.dart:69:21: Error: Field 'currentDraft' should be initialized because its type 'SurveyDraftEntity' doesn't allow null.
 - 'SurveyDraftEntity' is from 'package:yeahnah/modules/survey/domain/entities/survey_draft_entity.dart' ('lib/modules/survey/domain/entities/survey_draft_entity.dart').
  SurveyDraftEntity currentDraft;
                    ^^^^^^^^^^^^
lib/modules/survey/presentation/pages/qr_code_page.dart:55:10: Error: Field 'brandingLogo' should be initialized because its type 'Widget' doesn't allow null.
 - 'Widget' is from 'package:flutter/src/widgets/framework.dart' ('../../../fvm/versions/3.7.9/packages/flutter/lib/src/widgets/framework.dart').
  Widget brandingLogo;
         ^^^^^^^^^^^^
lib/modules/survey/presentation/pages/qr_code_page.dart:57:16: Error: Field '_survey' should be initialized because its type 'SurveyEntity' doesn't allow null.
 - 'SurveyEntity' is from 'package:yeahnah/modules/survey/domain/entities/survey_entity.dart' ('lib/modules/survey/domain/entities/survey_entity.dart').
  SurveyEntity _survey;
               ^^^^^^^
lib/modules/survey/presentation/pages/qr_code_page.dart:58:10: Error: Field '_joinLink' should be initialized because its type 'String' doesn't allow null.
  String _joinLink;
         ^^^^^^^^^
lib/modules/survey/presentation/pages/qr_code_page.dart:59:10: Error: Field '_joinCode' should be initialized because its type 'String' doesn't allow null.
  String _joinCode;
         ^^^^^^^^^
lib/modules/survey/presentation/pages/survey_list_page.dart:40:26: Error: Field '_userSurveys' should be initialized because its type 'List<UserSurveyEntity>' doesn't allow null.
 - 'List' is from 'dart:core'.
 - 'UserSurveyEntity' is from 'package:yeahnah/modules/survey/domain/entities/survey_entity.dart' ('lib/modules/survey/domain/entities/survey_entity.dart').
  List<UserSurveyEntity> _userSurveys;
                         ^^^^^^^^^^^^
lib/modules/survey/presentation/pages/survey_list_page.dart:41:26: Error: Field '_userSurveysOriginal' should be initialized because its type 'List<UserSurveyEntity>' doesn't allow null.
 - 'List' is from 'dart:core'.
 - 'UserSurveyEntity' is from 'package:yeahnah/modules/survey/domain/entities/survey_entity.dart' ('lib/modules/survey/domain/entities/survey_entity.dart').
  List<UserSurveyEntity> _userSurveysOriginal;
                         ^^^^^^^^^^^^^^^^^^^^
lib/modules/auth/presentation/mixins/social_mixin_page.dart:20:28: Error: Final field 'signIn' is not initialized.
Try to initialize the field in the declaration or in every constructor.
  final GetLoginUrlEntity? signIn;
                           ^^^^^^
lib/modules/auth/presentation/mixins/social_mixin_page.dart:21:28: Error: Final field 'signUp' is not initialized.
Try to initialize the field in the declaration or in every constructor.
  final GetLoginUrlEntity? signUp;
                           ^^^^^^
lib/modules/survey/presentation/widgets/join_code_scanner.dart:26:9: Error: Final field 'mobileScannerController' is not initialized.
Try to initialize the field in the declaration or in every constructor.
  final mobileScannerController;
        ^^^^^^^^^^^^^^^^^^^^^^^
lib/modules/survey/presentation/widgets/category_dropdown.dart:68:31: Error: Constant evaluation error:
                border: const Border.fromBorderSide(
                              ^
lib/modules/survey/presentation/widgets/category_dropdown.dart:69:37: Context: Not a constant expression.
                  BorderSide(color: borderColor ?? mindhiveGrey2),
                                    ^

@vousmeevoyez
Copy link
Author

Our latest config looks like this.

# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
analyzer:
  exclude: 
    - "**.mocks.dart"
    - "lib/core/interfaces/source_enum.dart"

linter:
  # The lint rules applied to this project can be customized in the
  # section below to disable rules from the `package:flutter_lints/flutter.yaml`
  # included above or to enable additional rules. A list of all available lints
  # and their documentation is published at
  # https://dart-lang.github.io/linter/lints/index.html.
  #
  # Instead of disabling a lint rule for the entire project in the
  # section below, it can also be suppressed for a single line of code
  # or a specific dart file by using the `// ignore: name_of_lint` and
  # `// ignore_for_file: name_of_lint` syntax on the line or in the file
  # producing the lint.
  rules:
    rules:
    - always_declare_return_types
    - always_put_control_body_on_new_line
    - always_put_required_named_parameters_first
    - always_require_non_null_named_parameters
    - always_specify_types
    - always_use_package_imports
    - annotate_overrides
    - avoid_annotating_with_dynamic
    - avoid_bool_literals_in_conditional_expressions
    - avoid_catches_without_on_clauses
    - avoid_catching_errors
    - avoid_classes_with_only_static_members
    - avoid_double_and_int_checks
    - avoid_dynamic_calls
    - avoid_empty_else
    - avoid_equals_and_hash_code_on_mutable_classes
    - avoid_escaping_inner_quotes
    - avoid_field_initializers_in_const_classes
    - avoid_final_parameters
    - avoid_function_literals_in_foreach_calls
    - avoid_implementing_value_types
    - avoid_init_to_null
    - avoid_js_rounded_ints
    - avoid_multiple_declarations_per_line
    - avoid_null_checks_in_equality_operators
    - avoid_positional_boolean_parameters
    - avoid_print
    - avoid_private_typedef_functions
    - avoid_redundant_argument_values
    - avoid_relative_lib_imports
    - avoid_renaming_method_parameters
    - avoid_return_types_on_setters
    - avoid_returning_null
    - avoid_returning_null_for_future
    - avoid_returning_null_for_void
    - avoid_returning_this
    - avoid_setters_without_getters
    - avoid_shadowing_type_parameters
    - avoid_single_cascade_in_expression_statements
    - avoid_slow_async_io
    - avoid_type_to_string
    - avoid_types_as_parameter_names
    - avoid_types_on_closure_parameters
    - avoid_unnecessary_containers
    - avoid_unused_constructor_parameters
    - avoid_void_async
    - avoid_web_libraries_in_flutter
    - await_only_futures
    - camel_case_extensions
    - camel_case_types
    - cancel_subscriptions
    - cascade_invocations
    - cast_nullable_to_non_nullable
    - close_sinks
    - combinators_ordering
    - comment_references
    - conditional_uri_does_not_exist
    - constant_identifier_names
    - control_flow_in_finally
    - curly_braces_in_flow_control_structures
    - depend_on_referenced_packages
    - deprecated_consistency
    - diagnostic_describe_all_properties
    - directives_ordering
    - discarded_futures
    - do_not_use_environment
    - empty_catches
    - empty_constructor_bodies
    - empty_statements
    - eol_at_end_of_file
    - exhaustive_cases
    - file_names
    - flutter_style_todos
    - hash_and_equals
    - implementation_imports
    - iterable_contains_unrelated_type
    - join_return_with_assignment
    - leading_newlines_in_multiline_strings
    - library_names
    - library_prefixes
    - library_private_types_in_public_api
    - lines_longer_than_80_chars
    - list_remove_unrelated_type
    - literal_only_boolean_expressions
    - missing_whitespace_between_adjacent_strings
    - no_adjacent_strings_in_list
    - no_default_cases
    - no_duplicate_case_values
    - no_leading_underscores_for_library_prefixes
    - no_leading_underscores_for_local_identifiers
    - no_logic_in_create_state
    - no_runtimeType_toString
    - non_constant_identifier_names
    - noop_primitive_operations
    - null_check_on_nullable_type_parameter
    - null_closures
    - omit_local_variable_types
    - one_member_abstracts
    - only_throw_errors
    - overridden_fields
    - package_api_docs
    - package_names
    - package_prefixed_library_names
    - parameter_assignments
    - prefer_adjacent_string_concatenation
    - prefer_asserts_in_initializer_lists
    - prefer_asserts_with_message
    - prefer_collection_literals
    - prefer_conditional_assignment
    - prefer_const_constructors
    - prefer_const_constructors_in_immutables
    - prefer_const_declarations
    - prefer_const_literals_to_create_immutables
    - prefer_constructors_over_static_methods
    - prefer_contains
    - prefer_double_quotes
    - prefer_equal_for_default_values
    - prefer_expression_function_bodies
    - prefer_final_fields
    - prefer_final_in_for_each
    - prefer_final_locals
    - prefer_final_parameters
    - prefer_for_elements_to_map_fromIterable
    - prefer_foreach
    - prefer_function_declarations_over_variables
    - prefer_generic_function_type_aliases
    - prefer_if_elements_to_conditional_expressions
    - prefer_if_null_operators
    - prefer_initializing_formals
    - prefer_inlined_adds
    - prefer_int_literals
    - prefer_interpolation_to_compose_strings
    - prefer_is_empty
    - prefer_is_not_empty
    - prefer_is_not_operator
    - prefer_iterable_whereType
    - prefer_mixin
    - prefer_null_aware_method_calls
    - prefer_null_aware_operators
    - prefer_relative_imports
    - prefer_single_quotes
    - prefer_spread_collections
    - prefer_typing_uninitialized_variables
    - prefer_void_to_null
    - provide_deprecation_message
    - public_member_api_docs
    - recursive_getters
    - require_trailing_commas
    - secure_pubspec_urls
    - sized_box_for_whitespace
    - sized_box_shrink_expand
    - slash_for_doc_comments
    - sort_child_properties_last
    - sort_constructors_first
    - sort_pub_dependencies
    - sort_unnamed_constructors_first
    - test_types_in_equals
    - throw_in_finally
    - tighten_type_of_initializing_formals
    - type_annotate_public_apis: false
    - type_init_formals
    - unawaited_futures
    - unnecessary_await_in_return
    - unnecessary_brace_in_string_interps
    - unnecessary_const
    - unnecessary_constructor_name
    - unnecessary_final
    - unnecessary_getters_setters
    - unnecessary_lambdas
    - unnecessary_late
    - unnecessary_new
    - unnecessary_null_aware_assignments
    - unnecessary_null_aware_operator_on_extension_on_nullable
    - unnecessary_null_checks
    - unnecessary_null_in_if_null_operators
    - unnecessary_nullable_for_final_variable_declarations
    - unnecessary_overrides
    - unnecessary_parenthesis
    - unnecessary_raw_strings
    - unnecessary_statements
    - unnecessary_string_escapes
    - unnecessary_string_interpolations
    - unnecessary_this
    - unnecessary_to_list_in_spreads
    - unreachable_from_main
    - unrelated_type_equality_checks
    - unsafe_html
    - use_build_context_synchronously
    - use_colored_box
    - use_decorated_box
    - use_enums
    - use_full_hex_values_for_flutter_colors
    - use_function_type_syntax_for_parameters
    - use_if_null_to_convert_nulls_to_bools
    - use_is_even_rather_than_modulo
    - use_key_in_widget_constructors
    - use_late_for_private_fields_and_variables
    - use_named_constants
    - use_raw_strings
    - use_rethrow_when_possible
    - use_setters_to_change_properties
    - use_string_buffers
    - use_string_in_part_of_directives
    - use_super_parameters
    - use_test_throws_matchers
    - use_to_and_as_if_applicable
    - valid_regexps
    - void_checks

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

dart_code_metrics:
  extends:
    - package:dart_code_metrics_presets/all.yaml
  rules:
      - arguments-ordering: false
      - avoid-border-all: false
      - avoid-collapsible-if: false
      - avoid-declaring-call-method: false
      - avoid-dynamic: false
      - avoid-explicit-type-declaration: false
      - avoid-generics-shadowing: false
      - avoid-global-state: false
      - avoid-ignoring-return-values: false
      - avoid-incomplete-copy-with: false
      - avoid-inherited-widget-in-initstate: false
      - avoid-late-keyword: false
      - avoid-missing-enum-constant-in-map: false
      - avoid-missing-image-alt: false
      - avoid-mutating-parameters: false
      - avoid-negated-conditions: false
      - avoid-nested-conditional-expressions: false
      - avoid-non-ascii-symbols: false
      - avoid-non-null-assertion: false
      - avoid-passing-async-when-sync-expected: false
      - avoid-redundant-async: false
      - avoid-redundant-else: false
      - avoid-returning-widgets: false
      - avoid-shadowing: false
      - avoid-similar-names: false
      - avoid-stateless-widget-initialized-fields: false
      - avoid-throw-in-catch-block: false
      - avoid-throw-objects-without-tostring: false
      - avoid-unnecessary-futures: false
      - avoid-unnecessary-overrides-in-state: false
      - avoid-unnecessary-stateful-widgets: false
      - avoid-unsafe-collection-methods: false
      - avoid-unassigned-late-fields-keyword: false
      - avoid-unused-parameters: false
      - avoid-wrapping-in-padding: false
      - dispose-fields: false
      - format-comment: false
      - map-keys-ordering: false
      - member-ordering: false
      - newline-before-return: false
      - no-equal-arguments: false
      - no-magic-number: false
      - no-object-declaration: false
      - no-empty-block: false
      - prefer-async-await: false
      - prefer-commenting-analyzer-ignores: false
      - prefer-conditional-expressions: false
      - prefer-const-border-radius: false
      - prefer-correct-error-name: false
      - prefer-correct-identifier-length: false
      - prefer-correct-type-name: false
      - prefer-dedicated-media-query-methods: false
      - prefer-declaring-const-constructor: false
      - prefer-early-return: false
      - prefer-extracting-callbacks: false
      - prefer-explicit-parameter-names: false
      - prefer-first: false
      - prefer-immediate-return: false
      - prefer-match-file-name: false
      - prefer-moving-to-variable: false
      - prefer-static-class: false
      - prefer-single-widget-per-file: false
      - prefer-returning-conditional-expressions: false
      - prefer-trailing-comma: false
      - prefer-type-over-var: false
      - prefer-widget-private-members: false
      - unnecessary-trailing-comma: false
      - use-setstate-synchronously: false
      - avoid-long-functions:
          exclude:
            - lib/modules/auth/presentation/widgets/reset_password_form.dart
            - lib/modules/answer/presentation/pages/join_survey_page.dart
            - lib/injection_container.dart
            - lib/modules/answer/presentation/pages/swipe_page.dart
            - lib/modules/survey/presentation/bloc/create_survey_bloc.dart
            - lib/core/presentation/widgets/content_placeholder.dart
            - lib/core/presentation/widgets/dialogs.dart
            - lib/core/presentation/widgets/sort_button.dart
            - lib/modules/survey/presentation/pages/create_survey_page.dart
            - test/**

      - avoid-long-parameter-list:
          exclude:
            - lib/core/data/datasources/rest_datasource.dart
              # this is a bit questionable since the previous dev extend default text form filemd widget 
              # this file can be removed in the future!
            - lib/core/presentation/widgets/text_form_field_decoration.dart
            - lib/core/presentation/mixins/form_mixin.dart
            - lib/modules/auth/presentation/widgets/sign_up_form.dart
            - lib/modules/user/presentation/widgets/statistics_info.dart
            - lib/core/presentation/widgets/dialogs.dart

  metrics:
    cyclomatic-complexity: 21
    maximum-nesting-level: 5
    number-of-parameters: 4
    source-lines-of-code: 50

  metrics-exclude:
    - test/**
    - lib/router/**

  rules-exclude:
    - lib/router/**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment