diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 54bc5eb15c..7d6b4df60e 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -13,7 +13,7 @@ name: PR Workflow on: pull_request: branches-ignore: - - 'master' + - "master" env: CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }} @@ -33,12 +33,12 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/setup-java@v4 with: - distribution: 'zulu' # See 'Supported distributions' for available options - java-version: '17.0' + distribution: "zulu" # See 'Supported distributions' for available options + java-version: "17.0" - uses: subosito/flutter-action@v2 with: - flutter-version: '3.22.3' - channel: 'stable' # or: 'beta', 'dev' or 'master' + flutter-version: "3.27.3" + channel: "stable" # or: 'beta', 'dev' or 'master' - name: Set default branch. run: git remote set-head origin --auto shell: bash @@ -94,7 +94,6 @@ jobs: echo "Error: Close this PR and try again." exit 1 - Branch-check: if: ${{ github.actor != 'dependabot[bot]' && !contains(github.event.pull_request.labels.*.name, 'ignore-sensitive-files-pr') }} name: "Base branch check" @@ -185,7 +184,7 @@ jobs: java-version: "17.0" - uses: subosito/flutter-action@v2 with: - flutter-version: "3.22.3" + flutter-version: "3.27.3" channel: "stable" # or: 'beta', 'dev' or 'master' - name: Running pub get to fetch dependencies run: flutter pub get @@ -216,7 +215,7 @@ jobs: java-version: "17.0" - uses: subosito/flutter-action@v2 with: - flutter-version: "3.22.3" + flutter-version: "3.27.3" channel: "stable" # or: 'beta', 'dev' or 'master' - name: Running pub get to fetch dependencies run: flutter pub get @@ -231,7 +230,7 @@ jobs: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 with: - flutter-version: "3.22.3" + flutter-version: "3.27.3" channel: "stable" # or: 'beta', 'dev' or 'master' architecture: x64 - name: Building for ios @@ -241,7 +240,7 @@ jobs: name: Test Deployment to https://docs-mobile.talawa.io runs-on: ubuntu-latest needs: [iOS-Build, Android-Build] - # Run only if the develop-postgres branch and not dependabot + # Run only if the develop-postgres branch and not dependabot if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.base.ref == 'develop-postgres' }} steps: - uses: actions/checkout@v4 @@ -249,7 +248,7 @@ jobs: with: node-version: 22 cache: yarn - cache-dependency-path: 'docs/' + cache-dependency-path: "docs/" # Run Docusaurus in the ./docs directory - name: Install dependencies working-directory: ./docs diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 120e8a3bda..9c45945803 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -13,7 +13,7 @@ name: PUSH Workflow on: push: branches-ignore: - - 'master' + - "master" tags: - "*" @@ -22,7 +22,6 @@ env: CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }} jobs: - Flutter-Codebase-Check: if: ${{ github.actor != 'dependabot[bot]' }} name: Checking Codebase @@ -36,12 +35,12 @@ jobs: fetch-depth: 0 - uses: actions/setup-java@v4 with: - distribution: 'zulu' # See 'Supported distributions' for available options - java-version: '17.0' + distribution: "zulu" # See 'Supported distributions' for available options + java-version: "17.0" - uses: subosito/flutter-action@v2 with: - flutter-version: '3.22.3' - channel: 'stable' # or: 'beta', 'dev' or 'master' + flutter-version: "3.27.3" + channel: "stable" # or: 'beta', 'dev' or 'master' - name: Running pub get in talawa_lint run: cd talawa_lint && flutter pub get && cd .. - name: Running pub get to fetch dependencies @@ -70,7 +69,6 @@ jobs: # - name: Echo the GitHub context for troubleshooting # run: echo "${{ toJSON(github) }}" - Flutter-Testing: if: ${{ github.actor != 'dependabot[bot]' }} name: Testing codebase @@ -81,12 +79,12 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: - distribution: 'zulu' # See 'Supported distributions' for available options - java-version: '17.0' + distribution: "zulu" # See 'Supported distributions' for available options + java-version: "17.0" - uses: subosito/flutter-action@v2 with: - flutter-version: '3.22.3' - channel: 'stable' # or: 'beta', 'dev' or 'master' + flutter-version: "3.27.3" + channel: "stable" # or: 'beta', 'dev' or 'master' - name: Running pub get in talawa_lint run: cd talawa_lint && flutter pub get && cd .. - name: Running pub get to fetch dependencies @@ -99,7 +97,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} verbose: true fail_ci_if_error: false - name: '${{env.CODECOV_UNIQUE_NAME}}' + name: "${{env.CODECOV_UNIQUE_NAME}}" Android-Build-and-Release: if: ${{ github.actor != 'dependabot[bot]' }} @@ -113,12 +111,12 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: - distribution: 'zulu' # See 'Supported distributions' for available options - java-version: '17.0' + distribution: "zulu" # See 'Supported distributions' for available options + java-version: "17.0" - uses: subosito/flutter-action@v2 with: - flutter-version: '3.22.3' - channel: 'stable' # or: 'beta', 'dev' or 'master' + flutter-version: "3.27.3" + channel: "stable" # or: 'beta', 'dev' or 'master' - name: Running pub get in talawa_lint run: cd talawa_lint && flutter pub get && cd .. - name: Running pub get to fetch dependencies @@ -150,8 +148,8 @@ jobs: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 with: - flutter-version: '3.22.3' - channel: 'stable' # or: 'beta', 'dev' or 'master' + flutter-version: "3.27.3" + channel: "stable" # or: 'beta', 'dev' or 'master' architecture: x64 - name: Building for ios run: flutter build ios --release --no-codesign @@ -161,7 +159,6 @@ jobs: ######################################################## ## Package the app as an .ipa and create a release ## ######################################################## - - name: Releasing for iOS run: | mkdir Payload diff --git a/android/app/build.gradle b/android/app/build.gradle index d004e92ab4..976182e483 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -53,6 +53,7 @@ android { compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 + coreLibraryDesugaringEnabled true } kotlinOptions { @@ -75,4 +76,5 @@ flutter { dependencies { implementation 'com.android.support:multidex:1.0.3' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.10" + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3' } diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro new file mode 100644 index 0000000000..9bc66d450d --- /dev/null +++ b/android/app/proguard-rules.pro @@ -0,0 +1,4 @@ +# Please add these rules to your existing keep rules in order to suppress warnings. +# This is generated automatically by the Android Gradle plugin. +-dontwarn org.bouncycastle.jce.provider.BouncyCastleProvider +-dontwarn org.bouncycastle.pqc.jcajce.provider.BouncyCastlePQCProvider \ No newline at end of file diff --git a/android/build.gradle b/android/build.gradle index 3d4dae4895..c4de1404d6 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -8,6 +8,21 @@ allprojects { rootProject.buildDir = '../build' subprojects { + afterEvaluate { project -> + if (project.hasProperty('android')) { + project.android { + if (namespace == null) { + namespace project.group + } + } + } + if (project.plugins.hasPlugin("com.android.application") || + project.plugins.hasPlugin("com.android.library")) { + project.android { + compileSdkVersion 34 + } + } + } project.buildDir = "${rootProject.buildDir}/${project.name}" project.evaluationDependsOn(':app') } diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index cfe88f6904..2aaed3a1f7 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip diff --git a/android/settings.gradle b/android/settings.gradle index 7e3053f1cb..c2789e182a 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -19,7 +19,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.2" - id "com.android.application" version '7.3.0' apply false + id "com.android.application" version '8.7.1' apply false id "org.jetbrains.kotlin.android" version "1.8.10" apply false id("com.google.gms.google-services") version "4.4.1" apply false diff --git a/lib/custom_painters/language_icon.dart b/lib/custom_painters/language_icon.dart index dbc2d1d87e..54cd9ab730 100644 --- a/lib/custom_painters/language_icon.dart +++ b/lib/custom_painters/language_icon.dart @@ -1,9 +1,7 @@ -// ignore_for_file: talawa_api_doc -// ignore_for_file: talawa_good_doc_comments - import 'package:flutter/material.dart'; ///This class draws the language icon using custom paint. +/// ///CustomPaint is a widget from the Flutter SDK, which enables /// you to use a canvas to draw different shapes. class LanguageIcon extends CustomPainter { @@ -319,7 +317,7 @@ class LanguageIcon extends CustomPainter { path_0.close(); final Paint paint0fill = Paint()..style = PaintingStyle.fill; - paint0fill.color = const Color(0xff737373).withOpacity(1.0); + paint0fill.color = const Color(0xff737373).withAlpha((1.0 * 255).toInt()); canvas.drawPath(path_0, paint0fill); } diff --git a/lib/custom_painters/talawa_logo.dart b/lib/custom_painters/talawa_logo.dart index f10f32b7e2..4ecfa43073 100644 --- a/lib/custom_painters/talawa_logo.dart +++ b/lib/custom_painters/talawa_logo.dart @@ -1,9 +1,7 @@ -// ignore_for_file: talawa_api_doc -// ignore_for_file: talawa_good_doc_comments - import 'package:flutter/material.dart'; ///This class draws the app logo using custom paint. +/// ///CustomPaint is a widget from the Flutter SDK, which enables /// you to use a canvas to draw different shapes. class AppLogo extends CustomPainter { @@ -166,7 +164,7 @@ class AppLogo extends CustomPainter { path_0.close(); final Paint paint0fill = Paint()..style = PaintingStyle.fill; - paint0fill.color = const Color(0xff31BB6B).withOpacity(1.0); + paint0fill.color = const Color(0xff31BB6B).withAlpha((1.0 * 255).toInt()); canvas.drawPath(path_0, paint0fill); final Path path_1 = Path(); @@ -270,7 +268,7 @@ class AppLogo extends CustomPainter { path_1.close(); final Paint paint1fill = Paint()..style = PaintingStyle.fill; - paint1fill.color = const Color(0xffFEBC59).withOpacity(1.0); + paint1fill.color = const Color(0xffFEBC59).withAlpha((1.0 * 255).toInt()); canvas.drawPath(path_1, paint1fill); final Path path_2 = Path(); @@ -342,7 +340,7 @@ class AppLogo extends CustomPainter { path_2.close(); final Paint paint2fill = Paint()..style = PaintingStyle.fill; - paint2fill.color = const Color(0xff737373).withOpacity(1.0); + paint2fill.color = const Color(0xff737373).withAlpha((1.0 * 255).toInt()); canvas.drawPath(path_2, paint2fill); final Path path_3 = Path(); @@ -422,7 +420,7 @@ class AppLogo extends CustomPainter { path_3.close(); final Paint paint3fill = Paint()..style = PaintingStyle.fill; - paint3fill.color = const Color(0xff737373).withOpacity(1.0); + paint3fill.color = const Color(0xff737373).withAlpha((1.0 * 255).toInt()); canvas.drawPath(path_3, paint3fill); } diff --git a/lib/custom_painters/telegram_logo.dart b/lib/custom_painters/telegram_logo.dart index 7519d7bb41..fbde2d7c72 100644 --- a/lib/custom_painters/telegram_logo.dart +++ b/lib/custom_painters/telegram_logo.dart @@ -1,11 +1,9 @@ -// ignore_for_file: talawa_api_doc -// ignore_for_file: talawa_good_doc_comments - import 'dart:ui' as ui; import 'package:flutter/material.dart'; ///This class draws the telegram logo using custom paint. +/// ///CustomPaint is a widget from the Flutter SDK, which enables /// you to use a canvas to draw different shapes. @@ -17,8 +15,8 @@ class TelegramLogo extends CustomPainter { paint0Fill.shader = ui.Gradient.linear( Offset(size.width * 0.6670000, size.height * 0.1670000), Offset(size.width * 0.4170000, size.height * 0.7500000), [ - const Color(0xff37aee2).withOpacity(1), - const Color(0xff1e96c8).withOpacity(1), + const Color(0xff37aee2).withAlpha((1.0 * 255).toInt()), + const Color(0xff1e96c8).withAlpha((1.0 * 255).toInt()), ], [ 0, 1, @@ -43,7 +41,7 @@ class TelegramLogo extends CustomPainter { path_1.lineTo(size.width * 0.7083333, size.height * 0.3333333); final Paint paint1Fill = Paint()..style = PaintingStyle.fill; - paint1Fill.color = const Color(0xffc8daea).withOpacity(1.0); + paint1Fill.color = const Color(0xffc8daea).withAlpha((1.0 * 255).toInt()); canvas.drawPath(path_1, paint1Fill); final Path path_2 = Path(); @@ -60,7 +58,7 @@ class TelegramLogo extends CustomPainter { path_2.lineTo(size.width * 0.4168417, size.height * 0.6016958); final Paint paint2Fill = Paint()..style = PaintingStyle.fill; - paint2Fill.color = const Color(0xffa9c9dd).withOpacity(1.0); + paint2Fill.color = const Color(0xffa9c9dd).withAlpha((1.0 * 255).toInt()); canvas.drawPath(path_2, paint2Fill); final Path path_3 = Path(); @@ -107,8 +105,8 @@ class TelegramLogo extends CustomPainter { paint3Fill.shader = ui.Gradient.linear( Offset(size.width * 0.6600000, size.height * 0.4370000), Offset(size.width * 0.8510000, size.height * 0.8020000), [ - const Color(0xffeff7fc).withOpacity(1), - const Color(0xffffffff).withOpacity(1), + const Color(0xffeff7fc).withAlpha((1.0 * 255).toInt()), + const Color(0xffffffff).withAlpha((1.0 * 255).toInt()), ], [ 0, 1, diff --git a/lib/custom_painters/whatsapp_logo.dart b/lib/custom_painters/whatsapp_logo.dart index fb150dd35c..de20a141d8 100644 --- a/lib/custom_painters/whatsapp_logo.dart +++ b/lib/custom_painters/whatsapp_logo.dart @@ -1,9 +1,7 @@ -// ignore_for_file: talawa_api_doc -// ignore_for_file: talawa_good_doc_comments - import 'package:flutter/material.dart'; ///This class draws the whatsapp logo using custom paint. +/// ///CustomPaint is a widget from the Flutter SDK, which enables /// you to use a canvas to draw different shapes. class WhatsappLogo extends CustomPainter { @@ -103,7 +101,7 @@ class WhatsappLogo extends CustomPainter { ); final Paint paint0Fill = Paint()..style = PaintingStyle.fill; - paint0Fill.color = const Color(0xff40c351).withOpacity(1.0); + paint0Fill.color = const Color(0xff40c351).withAlpha((1.0 * 255).toInt()); canvas.drawPath(path_0, paint0Fill); final Path path_1 = Path(); @@ -422,7 +420,7 @@ class WhatsappLogo extends CustomPainter { path_1.close(); final Paint paint1fill = Paint()..style = PaintingStyle.fill; - paint1fill.color = const Color(0xfffcfcfc).withOpacity(1.0); + paint1fill.color = const Color(0xfffcfcfc).withAlpha((1.0 * 255).toInt()); canvas.drawPath(path_1, paint1fill); } diff --git a/lib/services/navigation_service.dart b/lib/services/navigation_service.dart index c82e033ff9..78863f4854 100644 --- a/lib/services/navigation_service.dart +++ b/lib/services/navigation_service.dart @@ -204,7 +204,7 @@ class NavigationService { Icons.error_outline, color: Colors.redAccent, ), - color: Colors.black.withOpacity(0.8), + color: Colors.black.withAlpha((1.0 * 255).toInt()), ); }, ).show(navigatorKey.currentContext!); diff --git a/lib/view_model/access_request_view_model.dart b/lib/view_model/access_request_view_model.dart index e630a709ae..0773c77a22 100644 --- a/lib/view_model/access_request_view_model.dart +++ b/lib/view_model/access_request_view_model.dart @@ -44,7 +44,7 @@ class AccessScreenViewModel extends BaseModel { ); if (result.data != null) { final OrgInfo membershipRequest = OrgInfo.fromJson( - ((result.data!)['sendMembershipRequest'] + (result.data!['sendMembershipRequest'] as Map)['organization'] as Map, ); userConfig.updateUserMemberRequestOrg([membershipRequest]); diff --git a/lib/view_model/main_screen_view_model.dart b/lib/view_model/main_screen_view_model.dart index 44830316f0..8d68f1d3b8 100644 --- a/lib/view_model/main_screen_view_model.dart +++ b/lib/view_model/main_screen_view_model.dart @@ -178,7 +178,7 @@ class MainScreenViewModel extends BaseModel { currentPageIndex = mainScreenIndex; showAppTour = fromSignUp || demoMode; context = ctx; - + final appTourDialogWidget = appTourDialog(ctx); print(ctx); print(context); pluginPrototypeData = { @@ -196,7 +196,7 @@ class MainScreenViewModel extends BaseModel { Future.delayed( const Duration(seconds: 1), () => navigationService.pushDialog( - appTourDialog(ctx), + appTourDialogWidget, ), ); } diff --git a/lib/view_model/pre_auth_view_models/select_organization_view_model.dart b/lib/view_model/pre_auth_view_models/select_organization_view_model.dart index e74f702cbe..5866e7ae45 100644 --- a/lib/view_model/pre_auth_view_models/select_organization_view_model.dart +++ b/lib/view_model/pre_auth_view_models/select_organization_view_model.dart @@ -2,7 +2,7 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:graphql_flutter/graphql_flutter.dart'; -import 'package:qr_code_scanner/qr_code_scanner.dart'; +import 'package:qr_code_scanner_plus/qr_code_scanner_plus.dart'; import 'package:talawa/constants/routing_constants.dart'; import 'package:talawa/enums/enums.dart'; import 'package:talawa/locator.dart'; diff --git a/lib/view_model/pre_auth_view_models/set_url_view_model.dart b/lib/view_model/pre_auth_view_models/set_url_view_model.dart index 8ed6dc7ace..7c83feec56 100644 --- a/lib/view_model/pre_auth_view_models/set_url_view_model.dart +++ b/lib/view_model/pre_auth_view_models/set_url_view_model.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:hive/hive.dart'; -import 'package:qr_code_scanner/qr_code_scanner.dart'; +import 'package:qr_code_scanner_plus/qr_code_scanner_plus.dart'; import 'package:qr_flutter/qr_flutter.dart'; import 'package:talawa/constants/app_strings.dart'; import 'package:talawa/enums/enums.dart'; @@ -286,7 +286,6 @@ class SetUrlViewModel extends BaseModel { orgId = queries[0].split('=')[1]; Vibration.vibrate(duration: 100); controller.stopCamera(); - controller.dispose(); final box = Hive.box('url'); box.put(urlKey, url.text); box.put(imageUrlKey, "${url.text}/talawa/"); diff --git a/lib/views/after_auth_screens/chat/widgets/chat_input_field.dart b/lib/views/after_auth_screens/chat/widgets/chat_input_field.dart index c9606800d3..0fa2cab6eb 100644 --- a/lib/views/after_auth_screens/chat/widgets/chat_input_field.dart +++ b/lib/views/after_auth_screens/chat/widgets/chat_input_field.dart @@ -51,7 +51,7 @@ class _ChatInputFieldState extends State { BoxShadow( offset: const Offset(0, 4), blurRadius: 32, - color: const Color(0xFF087949).withOpacity(0.08), + color: const Color(0xFF087949).withAlpha((0.08 * 255).toInt()), ), ], ), @@ -94,7 +94,7 @@ class _ChatInputFieldState extends State { .textTheme .bodyLarge! .color! - .withOpacity(0.64), + .withAlpha((0.64 * 255).toInt()), ), ), // Placeholder text for the text field diff --git a/lib/views/after_auth_screens/events/edit_agenda_item_page.dart b/lib/views/after_auth_screens/events/edit_agenda_item_page.dart index f620c3c63f..0fd7e63bdb 100644 --- a/lib/views/after_auth_screens/events/edit_agenda_item_page.dart +++ b/lib/views/after_auth_screens/events/edit_agenda_item_page.dart @@ -79,7 +79,7 @@ class _EditAgendaItemPageState extends State { Icons.error_outline, color: Colors.redAccent, ), - color: Colors.black.withOpacity(0.8), + color: Colors.black.withAlpha((0.8 * 255).toInt()), ); }, ).show(context); diff --git a/lib/views/after_auth_screens/events/manage_agenda_items_screen.dart b/lib/views/after_auth_screens/events/manage_agenda_items_screen.dart index 0c27135b00..ddd15137b4 100644 --- a/lib/views/after_auth_screens/events/manage_agenda_items_screen.dart +++ b/lib/views/after_auth_screens/events/manage_agenda_items_screen.dart @@ -77,7 +77,8 @@ class ManageAgendaScreen extends StatelessWidget { Icons.error_outline, color: Colors.redAccent, ), - color: Colors.black.withOpacity(0.8), + color: Colors.black + .withAlpha((0.8 * 255).toInt()), ); }, ).show(context); diff --git a/lib/views/after_auth_screens/feed/individual_post.dart b/lib/views/after_auth_screens/feed/individual_post.dart index 8718fe18c6..7919227cc3 100644 --- a/lib/views/after_auth_screens/feed/individual_post.dart +++ b/lib/views/after_auth_screens/feed/individual_post.dart @@ -242,7 +242,10 @@ class CommentTemplate extends StatelessWidget { Expanded( child: Container( decoration: BoxDecoration( - color: Theme.of(context).iconTheme.color!.withOpacity(0.2), + color: Theme.of(context) + .iconTheme + .color! + .withAlpha((0.2 * 255).toInt()), borderRadius: const BorderRadius.all(Radius.circular(8)), ), padding: const EdgeInsets.all(16.0), diff --git a/lib/views/after_auth_screens/join_org_after_auth/join_organisation_after_auth.dart b/lib/views/after_auth_screens/join_org_after_auth/join_organisation_after_auth.dart index fa519edbb8..9cb59ccc12 100644 --- a/lib/views/after_auth_screens/join_org_after_auth/join_organisation_after_auth.dart +++ b/lib/views/after_auth_screens/join_org_after_auth/join_organisation_after_auth.dart @@ -1,6 +1,6 @@ // ignore_for_file: talawa_api_doc, talawa_good_doc_comments import 'package:flutter/material.dart'; -import 'package:qr_code_scanner/qr_code_scanner.dart'; +import 'package:qr_code_scanner_plus/qr_code_scanner_plus.dart'; import 'package:talawa/enums/enums.dart'; import 'package:talawa/locator.dart'; import 'package:talawa/services/graphql_config.dart'; @@ -166,7 +166,6 @@ class JoinOrganisationAfterAuth extends StatelessWidget { final List queries = data[1].split('&'); model.orgId = queries[0].split('=')[1]; controller.stopCamera(); - controller.dispose(); Navigator.pop(navigationService.navigatorKey.currentContext!); model.initialise(model.orgId); } else { diff --git a/lib/views/after_auth_screens/org_info_screen.dart b/lib/views/after_auth_screens/org_info_screen.dart index bb34827fde..b5207b77ba 100644 --- a/lib/views/after_auth_screens/org_info_screen.dart +++ b/lib/views/after_auth_screens/org_info_screen.dart @@ -99,7 +99,7 @@ class OrganisationInfoScreen extends StatelessWidget { height: imageHeight, width: double.infinity, decoration: BoxDecoration( - color: Colors.black.withOpacity(0.55), + color: Colors.black.withAlpha((0.55 * 255).toInt()), borderRadius: const BorderRadius.only( bottomLeft: Radius.circular(20.0), bottomRight: Radius.circular(20.0), @@ -341,7 +341,7 @@ class OrganisationInfoScreen extends StatelessWidget { borderRadius: BorderRadius.circular(20), boxShadow: [ BoxShadow( - color: Colors.grey.withOpacity(0.5), + color: Colors.grey.withAlpha((0.5 * 255).toInt()), spreadRadius: 1, blurRadius: Theme.of(context).brightness == Brightness.dark diff --git a/lib/views/after_auth_screens/profile/edit_profile_page.dart b/lib/views/after_auth_screens/profile/edit_profile_page.dart index 8dcd77fdfd..27f0424ea3 100644 --- a/lib/views/after_auth_screens/profile/edit_profile_page.dart +++ b/lib/views/after_auth_screens/profile/edit_profile_page.dart @@ -57,7 +57,7 @@ class _EditProfilePageState extends State { : null, backgroundColor: model.imageFile == null && model.user.image == null - ? Colors.grey.withOpacity(0.2) + ? Colors.grey.withAlpha((0.2 * 255).toInt()) : null, child: model.imageFile == null ? model.user.image == null diff --git a/lib/views/pre_auth_screens/select_language.dart b/lib/views/pre_auth_screens/select_language.dart index ef71ca2b15..de26964e10 100644 --- a/lib/views/pre_auth_screens/select_language.dart +++ b/lib/views/pre_auth_screens/select_language.dart @@ -90,7 +90,8 @@ class _SelectLanguageState extends State { decoration: BoxDecoration( color: languages[index].langCode == appLang.appLocal.languageCode - ? const Color(0xFFC4C4C4).withOpacity(0.15) + ? const Color(0xFFC4C4C4) + .withAlpha((0.15 * 255).toInt()) : Colors.transparent, ), child: index == 0 diff --git a/lib/views/pre_auth_screens/set_url.dart b/lib/views/pre_auth_screens/set_url.dart index ebc451f37b..3314cde33a 100644 --- a/lib/views/pre_auth_screens/set_url.dart +++ b/lib/views/pre_auth_screens/set_url.dart @@ -216,7 +216,7 @@ class _SetUrlState extends State { color: Theme.of(context) .colorScheme .surface - .withOpacity(0.8), + .withAlpha((0.8 * 255).toInt()), ), ), ], diff --git a/lib/widgets/agenda_item_tile.dart b/lib/widgets/agenda_item_tile.dart index 991d6ac3c3..a4235c9a8d 100644 --- a/lib/widgets/agenda_item_tile.dart +++ b/lib/widgets/agenda_item_tile.dart @@ -181,7 +181,7 @@ class ExpandableAgendaItemTile extends StatelessWidget { return GestureDetector( onTap: () => Navigator.of(context).pop(), child: ColoredBox( - color: Colors.black.withOpacity(0.5), + color: Colors.black.withAlpha((0.5 * 255).toInt()), child: Center( child: InteractiveViewer( panEnabled: true, diff --git a/lib/widgets/create_recurring_event_helper_widgets.dart b/lib/widgets/create_recurring_event_helper_widgets.dart index df3d0240eb..b2f4fdaa70 100644 --- a/lib/widgets/create_recurring_event_helper_widgets.dart +++ b/lib/widgets/create_recurring_event_helper_widgets.dart @@ -235,7 +235,7 @@ class _EventEndOptionsState extends State { : TextStyle( color: Theme.of(context) .dividerColor - .withOpacity(0.4), + .withAlpha((0.4 * 255).toInt()), ), ), ), diff --git a/lib/widgets/custom_avatar.dart b/lib/widgets/custom_avatar.dart index 7d8ce43431..3acba43327 100644 --- a/lib/widgets/custom_avatar.dart +++ b/lib/widgets/custom_avatar.dart @@ -41,8 +41,10 @@ class CustomAvatar extends StatelessWidget { return isImageNull //creating the avatar with the icon-theme color when the image is null ? CircleAvatar( - backgroundColor: - Theme.of(context).iconTheme.color!.withOpacity(0.2), + backgroundColor: Theme.of(context) + .iconTheme + .color! + .withAlpha((0.2 * 255).toInt()), maxRadius: maxRadius, child: Center( child: Text( @@ -59,8 +61,10 @@ class CustomAvatar extends StatelessWidget { cacheManager: cacheManager, imageBuilder: (context, imageProvider) { return CircleAvatar( - backgroundColor: - Theme.of(context).iconTheme.color!.withOpacity(0.2), + backgroundColor: Theme.of(context) + .iconTheme + .color! + .withAlpha((0.2 * 255).toInt()), backgroundImage: imageProvider, ); }, diff --git a/lib/widgets/custom_list_tile.dart b/lib/widgets/custom_list_tile.dart index 9b0e9114ab..9c9e450610 100644 --- a/lib/widgets/custom_list_tile.dart +++ b/lib/widgets/custom_list_tile.dart @@ -87,7 +87,7 @@ class CustomListTile extends StatelessWidget { borderRadius: BorderRadius.circular(20), boxShadow: [ BoxShadow( - color: Colors.grey.withOpacity(0.5), + color: Colors.grey.withAlpha((0.5 * 255).toInt()), spreadRadius: 1, blurRadius: 6, offset: const Offset(0, 3), diff --git a/lib/widgets/custom_weekday_selector.dart b/lib/widgets/custom_weekday_selector.dart index f46ef92d11..150cde9c5b 100644 --- a/lib/widgets/custom_weekday_selector.dart +++ b/lib/widgets/custom_weekday_selector.dart @@ -38,7 +38,10 @@ class _CustomWeekDaySelectorState extends State { height: 30, decoration: BoxDecoration( color: weekdays.contains(weekday) - ? Theme.of(context).colorScheme.primary.withOpacity(0.5) + ? Theme.of(context) + .colorScheme + .primary + .withAlpha((0.5 * 255).toInt()) : Colors.transparent, border: Border.all( width: weekdays.contains(weekday) ? 2 : 1, diff --git a/lib/widgets/event_card.dart b/lib/widgets/event_card.dart index 52480d78bc..5e796478e5 100644 --- a/lib/widgets/event_card.dart +++ b/lib/widgets/event_card.dart @@ -56,7 +56,7 @@ class EventCard extends StatelessWidget { height: SizeConfig.screenHeight! * 0.11, width: double.infinity, decoration: BoxDecoration( - color: Colors.grey.withOpacity(0.3), + color: Colors.grey.withAlpha((0.3 * 255).toInt()), image: const DecorationImage( fit: BoxFit.fitWidth, alignment: FractionalOffset.topCenter, @@ -68,7 +68,7 @@ class EventCard extends StatelessWidget { filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5), child: Container( decoration: BoxDecoration( - color: Colors.white.withOpacity(0.0), + color: Colors.white.withAlpha((0.0 * 255).toInt()), ), ), ), diff --git a/lib/widgets/pinned_carousel_widget.dart b/lib/widgets/pinned_carousel_widget.dart index b4f5bcf580..bc37aacf1f 100644 --- a/lib/widgets/pinned_carousel_widget.dart +++ b/lib/widgets/pinned_carousel_widget.dart @@ -29,8 +29,10 @@ class PinnedPostCarousel extends StatelessWidget { children: [ Container( height: 220, - color: - Theme.of(context).colorScheme.primaryContainer.withOpacity(0.5), + color: Theme.of(context) + .colorScheme + .primaryContainer + .withAlpha((0.5 * 255).toInt()), child: CustomCarouselScroller( pinnedPosts: pinnedPosts, key: const Key('Carousel'), diff --git a/lib/widgets/signup_progress_indicator.dart b/lib/widgets/signup_progress_indicator.dart index 63322830e7..abacfa281c 100644 --- a/lib/widgets/signup_progress_indicator.dart +++ b/lib/widgets/signup_progress_indicator.dart @@ -1,18 +1,27 @@ -// ignore_for_file: talawa_api_doc -// ignore_for_file: talawa_good_doc_comments - import 'package:flutter/material.dart'; import 'package:talawa/services/size_config.dart'; import 'package:talawa/utils/app_localization.dart'; -import 'package:timelines/timelines.dart'; +import 'package:timelines_plus/timelines_plus.dart'; -/// This class returns a widget for showing the -/// progress indicator/flow while Signing Up/ Registration. +/// A widget that displays a progress indicator/flow for the Sign-Up or Registration process. +/// +/// The widget uses a horizontal timeline to represent the progress +/// through different stages of the Sign-Up process. +/// +/// **params**: +/// * `key`: The unique identifier for the widget. +/// * `currentPageIndex`: The index of the current step in the Sign-Up process. +/// +/// **returns**: +/// None class SignupProgressIndicator extends StatelessWidget { SignupProgressIndicator({required Key key, required this.currentPageIndex}) : super(key: key); + /// The index of the current step in the Sign-Up process. final int currentPageIndex; + + /// The list of labels for each step in the progress indicator. final List progressLabel = [ 'Select\nOrganization', 'Enter Details', @@ -32,8 +41,9 @@ class SignupProgressIndicator extends StatelessWidget { contentsBuilder: (_, index) => Text( AppLocalizations.of(context)!.strictTranslate(progressLabel[index]), style: Theme.of(context).textTheme.bodyMedium!.copyWith( - // If the flow index is greater than currentPageIndex then - // show green(visited) color else show fade(not visited) color. + /// Sets the color of the text. + /// If the step index is less than or equal to `currentPageIndex`, + /// the color is green (visited). Otherwise, show fade(not visited) color. color: index <= currentPageIndex ? const Color(0xFF008A37) : const Color(0xFF737373), @@ -43,8 +53,10 @@ class SignupProgressIndicator extends StatelessWidget { connectorBuilder: (_, index, __) { return SolidLineConnector( space: 30, - // If the flow index is greater than currentPageIndex then - // show green(visited) color else show fade(not visited) color. + + /// Sets the color of the connector line. + /// If the step index is less than `currentPageIndex`, + /// the color is green (visited). Otherwise, show fade(not visited) color. color: index < currentPageIndex ? const Color(0xFF008A37) : const Color(0xFF737373), diff --git a/lib/widgets/venue_card.dart b/lib/widgets/venue_card.dart index 7d2a1e6857..55c28be57d 100644 --- a/lib/widgets/venue_card.dart +++ b/lib/widgets/venue_card.dart @@ -36,7 +36,7 @@ class VenueCard extends StatelessWidget { ), elevation: 3, color: isSelected - ? Colors.blue.withOpacity(0.3) + ? Colors.blue.withAlpha((0.3 * 255).toInt()) : Theme.of(context).primaryColor, child: Column( children: [ @@ -47,7 +47,7 @@ class VenueCard extends StatelessWidget { height: SizeConfig.screenHeight! * 0.11, width: double.infinity, decoration: BoxDecoration( - color: Colors.grey.withOpacity(0.3), + color: Colors.grey.withAlpha((0.3 * 255).toInt()), image: DecorationImage( fit: BoxFit.fitWidth, alignment: FractionalOffset.topCenter, diff --git a/pubspec.lock b/pubspec.lock index a5f3d51144..026f17845a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -229,10 +229,10 @@ packages: dependency: transitive description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.0" connectivity_plus: dependency: "direct main" description: @@ -921,18 +921,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.7" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.8" leak_tracker_testing: dependency: transitive description: @@ -969,18 +969,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" mime: dependency: transitive description: @@ -1245,14 +1245,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.1" - qr_code_scanner: + qr_code_scanner_plus: dependency: "direct main" description: - name: qr_code_scanner - sha256: f23b68d893505a424f0bd2e324ebea71ed88465d572d26bb8d2e78a4749591fd + name: qr_code_scanner_plus + sha256: "656c3b00066816190bbf929fa0edbbb64dbf659d919eb78099b599b2b82cc287" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "2.0.9+1" qr_flutter: dependency: "direct main" description: @@ -1385,15 +1385,7 @@ packages: dependency: transitive description: flutter source: sdk - version: "0.0.99" - social_share: - dependency: "direct main" - description: - name: social_share - sha256: eb19a0f6f5a29c7bb71e5bb1991145eb52472184363b6e2da70695befd8be041 - url: "https://pub.dev" - source: hosted - version: "2.3.1" + version: "0.0.0" source_gen: dependency: transitive description: @@ -1446,10 +1438,10 @@ packages: dependency: "direct main" description: name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377" url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.12.0" stream_channel: dependency: transitive description: @@ -1470,10 +1462,10 @@ packages: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.3.0" syncfusion_flutter_calendar: dependency: "direct main" description: @@ -1525,18 +1517,18 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c" url: "https://pub.dev" source: hosted - version: "0.7.0" - timelines: + version: "0.7.3" + timelines_plus: dependency: "direct main" description: - name: timelines - sha256: "40214f5ab772ff45459cb8c15e5f60505a6828af0c0eb1eec6f29ed911a4c1c5" + name: timelines_plus + sha256: be31f493402dc24df7fe410dc5f82a605807bb4ca13183de6d4362886449b593 url: "https://pub.dev" source: hosted - version: "0.1.0" + version: "1.0.6" timezone: dependency: transitive description: @@ -1701,10 +1693,10 @@ packages: dependency: transitive description: name: video_player_android - sha256: e343701aa890b74a863fa460f5c0e628127ed06a975d7d9af6b697133fb25bdf + sha256: "7018dbcb395e2bca0b9a898e73989e67c0c4a5db269528e1b036ca38bcca0d0b" url: "https://pub.dev" source: hosted - version: "2.7.1" + version: "2.7.17" video_player_avfoundation: dependency: transitive description: @@ -1741,10 +1733,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.3.0" watcher: dependency: transitive description: @@ -1810,5 +1802,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.4.0 <=3.4.4" - flutter: ">=3.22.0" + dart: ">=3.6.0 <=3.6.1" + flutter: ">=3.27.0" diff --git a/pubspec.yaml b/pubspec.yaml index 8cf121a5d4..4e9e9cde17 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,7 +10,7 @@ homepage: https://github.com/PalisadoesFoundation/talawa repository: https://github.com/PalisadoesFoundation/talawa environment: - sdk: ">=2.17.0 <=3.4.4" + sdk: ">=2.17.0 <=3.6.1" dependencies: ############# Remove ########### @@ -64,16 +64,15 @@ dependencies: plugin_platform_interface: ^2.1.7 pointycastle: ^3.9.1 provider: ^6.1.2 - qr_code_scanner: ^1.0.0 + qr_code_scanner_plus: ^2.0.9+1 qr_flutter: 4.1.0 quick_actions: ^1.0.8 shared_preferences: ^2.3.3 shimmer: ^3.0.0 - social_share: ^2.2.1 stack_trace: ^1.11.1 syncfusion_flutter_calendar: ^27.2.5 syncfusion_flutter_datepicker: ^27.2.5 - timelines: ^0.1.0 + timelines_plus: ^1.0.6 tutorial_coach_mark: ^1.2.12 url_launcher: ^6.3.1 vibration: ^2.0.1 diff --git a/talawa_lint/lib/talawa_api_doc/talawa_api_doc_fixer.dart b/talawa_lint/lib/talawa_api_doc/talawa_api_doc_fixer.dart index 09f18c32e7..191bf95d06 100644 --- a/talawa_lint/lib/talawa_api_doc/talawa_api_doc_fixer.dart +++ b/talawa_lint/lib/talawa_api_doc/talawa_api_doc_fixer.dart @@ -82,7 +82,9 @@ class TalawaAPIDocFixer extends DartFix { node.offset, node.leftBracket.offset - node.offset, ), - )) return; + )) { + return; + } // The same issue exists for Functions and Methods. We can define functions // inside functions, and the same overlap of [SourceRange] occurs due to that @@ -95,7 +97,9 @@ class TalawaAPIDocFixer extends DartFix { node.name.length + node.name.offset) - node.offset, ), - )) return; + )) { + return; + } if (node is MethodDeclaration && !analysisError.sourceRange.intersects( @@ -104,7 +108,9 @@ class TalawaAPIDocFixer extends DartFix { (node.parameters?.offset ?? node.name.length + node.name.offset) - node.offset, ), - )) return; + )) { + return; + } final changeBuilder = reporter.createChangeBuilder( message: 'Insert Doc skeleton', diff --git a/test/helpers/test_helpers.dart b/test/helpers/test_helpers.dart index f8e453385f..a0f6eb3346 100644 --- a/test/helpers/test_helpers.dart +++ b/test/helpers/test_helpers.dart @@ -6,7 +6,7 @@ import 'package:image_cropper/image_cropper.dart'; import 'package:image_picker/image_picker.dart'; import 'package:mockito/annotations.dart'; import 'package:mockito/mockito.dart'; -import 'package:qr_code_scanner/qr_code_scanner.dart'; +import 'package:qr_code_scanner_plus/qr_code_scanner_plus.dart'; import 'package:talawa/enums/enums.dart'; import 'package:talawa/locator.dart'; import 'package:talawa/models/chats/chat_list_tile_data_model.dart'; @@ -61,7 +61,10 @@ import 'test_helpers.mocks.dart'; [], customMocks: [ MockSpec(onMissingStub: OnMissingStub.returnDefault), - MockSpec(onMissingStub: OnMissingStub.returnDefault), + MockSpec( + as: #MockGraphqlConfig, + onMissingStub: OnMissingStub.returnDefault, + ), MockSpec(onMissingStub: OnMissingStub.returnDefault), MockSpec(onMissingStub: OnMissingStub.returnDefault), MockSpec( @@ -302,13 +305,14 @@ GraphqlConfig getAndRegisterGraphqlConfig() { _removeRegistrationIfExists(); final service = MockGraphqlConfig(); - when(service.httpLink).thenReturn( - HttpLink( - 'https://talawa-graphql-api.herokuapp.com/graphql', - httpClient: MockHttpClient(), - ), + final mockLink = HttpLink( + 'https://talawa-graphql-api.herokuapp.com/graphql', + httpClient: MockHttpClient(), ); + // Use stub instead of when for better null safety handling + when(service.httpLink).thenReturn(mockLink); + when(service.clientToQuery()).thenAnswer((realInvocation) { // return GraphQLClient( // cache: GraphQLCache(partialDataPolicy: PartialDataCachePolicy.accept), diff --git a/test/helpers/test_helpers.mocks.dart b/test/helpers/test_helpers.mocks.dart index b1632b02e4..6598f81d54 100644 --- a/test/helpers/test_helpers.mocks.dart +++ b/test/helpers/test_helpers.mocks.dart @@ -1,57 +1,58 @@ -// Mocks generated by Mockito 5.4.4 from annotations +// Mocks generated by Mockito 5.4.5 from annotations // in talawa/test/helpers/test_helpers.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:io' as _i20; +import 'dart:async' as _i6; +import 'dart:io' as _i21; import 'dart:ui' as _i10; import 'package:flutter/material.dart' as _i1; +import 'package:flutter_secure_storage/flutter_secure_storage.dart' as _i11; import 'package:graphql_flutter/graphql_flutter.dart' as _i3; -import 'package:image_cropper/src/cropper.dart' as _i41; +import 'package:image_cropper/src/cropper.dart' as _i42; import 'package:image_cropper_platform_interface/image_cropper_platform_interface.dart' - as _i42; -import 'package:image_picker/image_picker.dart' as _i13; + as _i43; +import 'package:image_picker/image_picker.dart' as _i14; import 'package:mockito/mockito.dart' as _i2; -import 'package:mockito/src/dummies.dart' as _i18; -import 'package:qr_code_scanner/src/qr_code_scanner.dart' as _i33; -import 'package:qr_code_scanner/src/types/barcode.dart' as _i34; -import 'package:qr_code_scanner/src/types/camera.dart' as _i35; -import 'package:qr_code_scanner/src/types/features.dart' as _i12; -import 'package:talawa/enums/enums.dart' as _i14; -import 'package:talawa/models/chats/chat_list_tile_data_model.dart' as _i24; -import 'package:talawa/models/chats/chat_message.dart' as _i25; -import 'package:talawa/models/events/event_model.dart' as _i21; -import 'package:talawa/models/events/event_venue.dart' as _i39; -import 'package:talawa/models/events/event_volunteer_group.dart' as _i22; -import 'package:talawa/models/organization/org_info.dart' as _i6; -import 'package:talawa/models/post/post_model.dart' as _i17; +import 'package:mockito/src/dummies.dart' as _i19; +import 'package:qr_code_scanner_plus/src/qr_code_scanner.dart' as _i34; +import 'package:qr_code_scanner_plus/src/types/barcode.dart' as _i35; +import 'package:qr_code_scanner_plus/src/types/camera.dart' as _i36; +import 'package:qr_code_scanner_plus/src/types/features.dart' as _i13; +import 'package:talawa/enums/enums.dart' as _i15; +import 'package:talawa/models/chats/chat_list_tile_data_model.dart' as _i25; +import 'package:talawa/models/chats/chat_message.dart' as _i26; +import 'package:talawa/models/events/event_model.dart' as _i22; +import 'package:talawa/models/events/event_venue.dart' as _i40; +import 'package:talawa/models/events/event_volunteer_group.dart' as _i23; +import 'package:talawa/models/organization/org_info.dart' as _i5; +import 'package:talawa/models/post/post_model.dart' as _i18; import 'package:talawa/models/user/user_info.dart' as _i7; -import 'package:talawa/services/chat_service.dart' as _i23; -import 'package:talawa/services/comment_service.dart' as _i36; +import 'package:talawa/services/chat_service.dart' as _i24; +import 'package:talawa/services/comment_service.dart' as _i37; import 'package:talawa/services/database_mutation_functions.dart' as _i9; -import 'package:talawa/services/event_service.dart' as _i11; -import 'package:talawa/services/graphql_config.dart' as _i15; +import 'package:talawa/services/event_service.dart' as _i12; +import 'package:talawa/services/graphql_config.dart' as _i16; import 'package:talawa/services/navigation_service.dart' as _i8; -import 'package:talawa/services/org_service.dart' as _i29; -import 'package:talawa/services/post_service.dart' as _i16; +import 'package:talawa/services/org_service.dart' as _i30; +import 'package:talawa/services/post_service.dart' as _i17; import 'package:talawa/services/third_party_service/multi_media_pick_service.dart' - as _i19; -import 'package:talawa/services/user_config.dart' as _i26; -import 'package:talawa/utils/validators.dart' as _i32; + as _i20; +import 'package:talawa/services/user_config.dart' as _i27; +import 'package:talawa/utils/validators.dart' as _i33; import 'package:talawa/view_model/after_auth_view_models/chat_view_models/direct_chat_view_model.dart' - as _i40; + as _i41; import 'package:talawa/view_model/after_auth_view_models/event_view_models/create_event_view_model.dart' - as _i38; + as _i39; import 'package:talawa/view_model/after_auth_view_models/event_view_models/explore_events_view_model.dart' - as _i30; -import 'package:talawa/view_model/after_auth_view_models/feed_view_models/organization_feed_view_model.dart' as _i31; -import 'package:talawa/view_model/lang_view_model.dart' as _i27; +import 'package:talawa/view_model/after_auth_view_models/feed_view_models/organization_feed_view_model.dart' + as _i32; +import 'package:talawa/view_model/lang_view_model.dart' as _i28; import 'package:talawa/view_model/pre_auth_view_models/signup_details_view_model.dart' - as _i28; -import 'package:talawa/view_model/theme_view_model.dart' as _i37; + as _i29; +import 'package:talawa/view_model/theme_view_model.dart' as _i38; import 'package:talawa/widgets/custom_alert_dialog.dart' as _i4; // ignore_for_file: type=lint @@ -62,6 +63,7 @@ import 'package:talawa/widgets/custom_alert_dialog.dart' as _i4; // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types @@ -186,9 +188,8 @@ class _FakeCustomAlertDialog_10 extends _i2.SmartFake super.toString(); } -class _FakeStreamController_11 extends _i2.SmartFake - implements _i5.StreamController { - _FakeStreamController_11( +class _FakeOrgInfo_11 extends _i2.SmartFake implements _i5.OrgInfo { + _FakeOrgInfo_11( Object parent, Invocation parentInvocation, ) : super( @@ -197,8 +198,9 @@ class _FakeStreamController_11 extends _i2.SmartFake ); } -class _FakeOrgInfo_12 extends _i2.SmartFake implements _i6.OrgInfo { - _FakeOrgInfo_12( +class _FakeStreamController_12 extends _i2.SmartFake + implements _i6.StreamController { + _FakeStreamController_12( Object parent, Invocation parentInvocation, ) : super( @@ -249,9 +251,20 @@ class _FakeLocale_16 extends _i2.SmartFake implements _i10.Locale { ); } -class _FakeTextEditingController_17 extends _i2.SmartFake +class _FakeFlutterSecureStorage_17 extends _i2.SmartFake + implements _i11.FlutterSecureStorage { + _FakeFlutterSecureStorage_17( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeTextEditingController_18 extends _i2.SmartFake implements _i1.TextEditingController { - _FakeTextEditingController_17( + _FakeTextEditingController_18( Object parent, Invocation parentInvocation, ) : super( @@ -260,8 +273,8 @@ class _FakeTextEditingController_17 extends _i2.SmartFake ); } -class _FakeFocusNode_18 extends _i2.SmartFake implements _i1.FocusNode { - _FakeFocusNode_18( +class _FakeFocusNode_19 extends _i2.SmartFake implements _i1.FocusNode { + _FakeFocusNode_19( Object parent, Invocation parentInvocation, ) : super( @@ -274,8 +287,8 @@ class _FakeFocusNode_18 extends _i2.SmartFake implements _i1.FocusNode { super.toString(); } -class _FakeEventService_19 extends _i2.SmartFake implements _i11.EventService { - _FakeEventService_19( +class _FakeEventService_20 extends _i2.SmartFake implements _i12.EventService { + _FakeEventService_20( Object parent, Invocation parentInvocation, ) : super( @@ -284,9 +297,9 @@ class _FakeEventService_19 extends _i2.SmartFake implements _i11.EventService { ); } -class _FakeSystemFeatures_20 extends _i2.SmartFake - implements _i12.SystemFeatures { - _FakeSystemFeatures_20( +class _FakeSystemFeatures_21 extends _i2.SmartFake + implements _i13.SystemFeatures { + _FakeSystemFeatures_21( Object parent, Invocation parentInvocation, ) : super( @@ -295,8 +308,8 @@ class _FakeSystemFeatures_20 extends _i2.SmartFake ); } -class _FakeThemeData_21 extends _i2.SmartFake implements _i1.ThemeData { - _FakeThemeData_21( +class _FakeThemeData_22 extends _i2.SmartFake implements _i1.ThemeData { + _FakeThemeData_22( Object parent, Invocation parentInvocation, ) : super( @@ -309,8 +322,8 @@ class _FakeThemeData_21 extends _i2.SmartFake implements _i1.ThemeData { super.toString(); } -class _FakeTimeOfDay_22 extends _i2.SmartFake implements _i1.TimeOfDay { - _FakeTimeOfDay_22( +class _FakeTimeOfDay_23 extends _i2.SmartFake implements _i1.TimeOfDay { + _FakeTimeOfDay_23( Object parent, Invocation parentInvocation, ) : super( @@ -319,8 +332,8 @@ class _FakeTimeOfDay_22 extends _i2.SmartFake implements _i1.TimeOfDay { ); } -class _FakeDateTime_23 extends _i2.SmartFake implements DateTime { - _FakeDateTime_23( +class _FakeDateTime_24 extends _i2.SmartFake implements DateTime { + _FakeDateTime_24( Object parent, Invocation parentInvocation, ) : super( @@ -329,9 +342,9 @@ class _FakeDateTime_23 extends _i2.SmartFake implements DateTime { ); } -class _FakeLostDataResponse_24 extends _i2.SmartFake - implements _i13.LostDataResponse { - _FakeLostDataResponse_24( +class _FakeLostDataResponse_25 extends _i2.SmartFake + implements _i14.LostDataResponse { + _FakeLostDataResponse_25( Object parent, Invocation parentInvocation, ) : super( @@ -368,7 +381,7 @@ class MockNavigationService extends _i2.Mock implements _i8.NavigationService { ); @override - _i5.Future pushScreen( + _i6.Future pushScreen( String? routeName, { dynamic arguments, }) => @@ -378,12 +391,12 @@ class MockNavigationService extends _i2.Mock implements _i8.NavigationService { [routeName], {#arguments: arguments}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future popAndPushScreen( + _i6.Future popAndPushScreen( String? routeName, { dynamic arguments, }) => @@ -393,12 +406,12 @@ class MockNavigationService extends _i2.Mock implements _i8.NavigationService { [routeName], {#arguments: arguments}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future pushReplacementScreen( + _i6.Future pushReplacementScreen( String? routeName, { dynamic arguments, }) => @@ -408,12 +421,12 @@ class MockNavigationService extends _i2.Mock implements _i8.NavigationService { [routeName], {#arguments: arguments}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future removeAllAndPush( + _i6.Future removeAllAndPush( String? routeName, String? tillRoute, { dynamic arguments, @@ -427,9 +440,9 @@ class MockNavigationService extends _i2.Mock implements _i8.NavigationService { ], {#arguments: arguments}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override void pushDialog(_i1.Widget? dialog) => super.noSuchMethod( @@ -457,7 +470,7 @@ class MockNavigationService extends _i2.Mock implements _i8.NavigationService { @override void showTalawaErrorSnackBar( String? errorMessage, - _i14.MessageType? messageType, + _i15.MessageType? messageType, ) => super.noSuchMethod( Invocation.method( @@ -473,7 +486,7 @@ class MockNavigationService extends _i2.Mock implements _i8.NavigationService { @override void showTalawaErrorDialog( String? errorMessage, - _i14.MessageType? messageType, + _i15.MessageType? messageType, ) => super.noSuchMethod( Invocation.method( @@ -517,7 +530,7 @@ class MockNavigationService extends _i2.Mock implements _i8.NavigationService { /// A class which mocks [GraphqlConfig]. /// /// See the documentation for Mockito's code generation for more information. -class MockGraphqlConfig extends _i2.Mock implements _i15.GraphqlConfig { +class MockGraphqlConfig extends _i2.Mock implements _i16.GraphqlConfig { @override _i3.HttpLink get httpLink => (super.noSuchMethod( Invocation.getter(#httpLink), @@ -572,14 +585,14 @@ class MockGraphqlConfig extends _i2.Mock implements _i15.GraphqlConfig { ); @override - _i5.Future getToken() => (super.noSuchMethod( + _i6.Future getToken() => (super.noSuchMethod( Invocation.method( #getToken, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override void getOrgUrl() => super.noSuchMethod( @@ -814,14 +827,14 @@ class MockGraphQLClient extends _i2.Mock implements _i3.GraphQLClient { ) as _i3.ObservableQuery); @override - _i5.Future<_i3.QueryResult> query( + _i6.Future<_i3.QueryResult> query( _i3.QueryOptions? options) => (super.noSuchMethod( Invocation.method( #query, [options], ), - returnValue: _i5.Future<_i3.QueryResult>.value( + returnValue: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -829,7 +842,7 @@ class MockGraphQLClient extends _i2.Mock implements _i3.GraphQLClient { [options], ), )), - returnValueForMissingStub: _i5.Future<_i3.QueryResult>.value( + returnValueForMissingStub: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -837,17 +850,17 @@ class MockGraphQLClient extends _i2.Mock implements _i3.GraphQLClient { [options], ), )), - ) as _i5.Future<_i3.QueryResult>); + ) as _i6.Future<_i3.QueryResult>); @override - _i5.Future<_i3.QueryResult> mutate( + _i6.Future<_i3.QueryResult> mutate( _i3.MutationOptions? options) => (super.noSuchMethod( Invocation.method( #mutate, [options], ), - returnValue: _i5.Future<_i3.QueryResult>.value( + returnValue: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -855,7 +868,7 @@ class MockGraphQLClient extends _i2.Mock implements _i3.GraphQLClient { [options], ), )), - returnValueForMissingStub: _i5.Future<_i3.QueryResult>.value( + returnValueForMissingStub: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -863,22 +876,22 @@ class MockGraphQLClient extends _i2.Mock implements _i3.GraphQLClient { [options], ), )), - ) as _i5.Future<_i3.QueryResult>); + ) as _i6.Future<_i3.QueryResult>); @override - _i5.Stream<_i3.QueryResult> subscribe( + _i6.Stream<_i3.QueryResult> subscribe( _i3.SubscriptionOptions? options) => (super.noSuchMethod( Invocation.method( #subscribe, [options], ), - returnValue: _i5.Stream<_i3.QueryResult>.empty(), - returnValueForMissingStub: _i5.Stream<_i3.QueryResult>.empty(), - ) as _i5.Stream<_i3.QueryResult>); + returnValue: _i6.Stream<_i3.QueryResult>.empty(), + returnValueForMissingStub: _i6.Stream<_i3.QueryResult>.empty(), + ) as _i6.Stream<_i3.QueryResult>); @override - _i5.Future<_i3.QueryResult> fetchMore( + _i6.Future<_i3.QueryResult> fetchMore( _i3.FetchMoreOptions? fetchMoreOptions, { required _i3.QueryOptions? originalOptions, required _i3.QueryResult? previousResult, @@ -892,7 +905,7 @@ class MockGraphQLClient extends _i2.Mock implements _i3.GraphQLClient { #previousResult: previousResult, }, ), - returnValue: _i5.Future<_i3.QueryResult>.value( + returnValue: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -904,7 +917,7 @@ class MockGraphQLClient extends _i2.Mock implements _i3.GraphQLClient { }, ), )), - returnValueForMissingStub: _i5.Future<_i3.QueryResult>.value( + returnValueForMissingStub: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -916,7 +929,7 @@ class MockGraphQLClient extends _i2.Mock implements _i3.GraphQLClient { }, ), )), - ) as _i5.Future<_i3.QueryResult>); + ) as _i6.Future<_i3.QueryResult>); @override Map? readQuery( @@ -983,7 +996,7 @@ class MockGraphQLClient extends _i2.Mock implements _i3.GraphQLClient { ); @override - _i5.Future?>>? resetStore( + _i6.Future?>>? resetStore( {bool? refetchQueries = true}) => (super.noSuchMethod( Invocation.method( @@ -992,13 +1005,13 @@ class MockGraphQLClient extends _i2.Mock implements _i3.GraphQLClient { {#refetchQueries: refetchQueries}, ), returnValueForMissingStub: null, - ) as _i5.Future?>>?); + ) as _i6.Future?>>?); } /// A class which mocks [PostService]. /// /// See the documentation for Mockito's code generation for more information. -class MockPostService extends _i2.Mock implements _i16.PostService { +class MockPostService extends _i2.Mock implements _i17.PostService { @override set postInfo(Map? _postInfo) => super.noSuchMethod( Invocation.setter( @@ -1045,42 +1058,42 @@ class MockPostService extends _i2.Mock implements _i16.PostService { ); @override - _i5.Stream> get postStream => (super.noSuchMethod( + _i6.Stream> get postStream => (super.noSuchMethod( Invocation.getter(#postStream), - returnValue: _i5.Stream>.empty(), - returnValueForMissingStub: _i5.Stream>.empty(), - ) as _i5.Stream>); + returnValue: _i6.Stream>.empty(), + returnValueForMissingStub: _i6.Stream>.empty(), + ) as _i6.Stream>); @override - _i5.Stream<_i17.Post> get updatedPostStream => (super.noSuchMethod( + _i6.Stream<_i18.Post> get updatedPostStream => (super.noSuchMethod( Invocation.getter(#updatedPostStream), - returnValue: _i5.Stream<_i17.Post>.empty(), - returnValueForMissingStub: _i5.Stream<_i17.Post>.empty(), - ) as _i5.Stream<_i17.Post>); + returnValue: _i6.Stream<_i18.Post>.empty(), + returnValueForMissingStub: _i6.Stream<_i18.Post>.empty(), + ) as _i6.Stream<_i18.Post>); @override String get cacheKey => (super.noSuchMethod( Invocation.getter(#cacheKey), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#cacheKey), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#cacheKey), ), ) as String); @override - _i5.Future> fetchDataFromApi() => (super.noSuchMethod( + _i6.Future> fetchDataFromApi() => (super.noSuchMethod( Invocation.method( #fetchDataFromApi, [], ), - returnValue: _i5.Future>.value(<_i17.Post>[]), + returnValue: _i6.Future>.value(<_i18.Post>[]), returnValueForMissingStub: - _i5.Future>.value(<_i17.Post>[]), - ) as _i5.Future>); + _i6.Future>.value(<_i18.Post>[]), + ) as _i6.Future>); @override void setOrgStreamSubscription() => super.noSuchMethod( @@ -1092,37 +1105,37 @@ class MockPostService extends _i2.Mock implements _i16.PostService { ); @override - _i5.Future fetchPostsInitial() => (super.noSuchMethod( + _i6.Future fetchPostsInitial() => (super.noSuchMethod( Invocation.method( #fetchPostsInitial, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future getPosts() => (super.noSuchMethod( + _i6.Future getPosts() => (super.noSuchMethod( Invocation.method( #getPosts, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future refreshFeed() => (super.noSuchMethod( + _i6.Future refreshFeed() => (super.noSuchMethod( Invocation.method( #refreshFeed, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - void addNewpost(_i17.Post? newPost) => super.noSuchMethod( + void addNewpost(_i18.Post? newPost) => super.noSuchMethod( Invocation.method( #addNewpost, [newPost], @@ -1131,13 +1144,13 @@ class MockPostService extends _i2.Mock implements _i16.PostService { ); @override - _i5.Future<_i3.QueryResult> deletePost(_i17.Post? post) => + _i6.Future<_i3.QueryResult> deletePost(_i18.Post? post) => (super.noSuchMethod( Invocation.method( #deletePost, [post], ), - returnValue: _i5.Future<_i3.QueryResult>.value( + returnValue: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -1145,7 +1158,7 @@ class MockPostService extends _i2.Mock implements _i16.PostService { [post], ), )), - returnValueForMissingStub: _i5.Future<_i3.QueryResult>.value( + returnValueForMissingStub: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -1153,27 +1166,27 @@ class MockPostService extends _i2.Mock implements _i16.PostService { [post], ), )), - ) as _i5.Future<_i3.QueryResult>); + ) as _i6.Future<_i3.QueryResult>); @override - _i5.Future addLike(String? postID) => (super.noSuchMethod( + _i6.Future addLike(String? postID) => (super.noSuchMethod( Invocation.method( #addLike, [postID], ), - returnValue: _i5.Future.value(false), - returnValueForMissingStub: _i5.Future.value(false), - ) as _i5.Future); + returnValue: _i6.Future.value(false), + returnValueForMissingStub: _i6.Future.value(false), + ) as _i6.Future); @override - _i5.Future removeLike(String? postID) => (super.noSuchMethod( + _i6.Future removeLike(String? postID) => (super.noSuchMethod( Invocation.method( #removeLike, [postID], ), - returnValue: _i5.Future.value(false), - returnValueForMissingStub: _i5.Future.value(false), - ) as _i5.Future); + returnValue: _i6.Future.value(false), + returnValueForMissingStub: _i6.Future.value(false), + ) as _i6.Future); @override void addCommentLocally(String? postID) => super.noSuchMethod( @@ -1185,83 +1198,83 @@ class MockPostService extends _i2.Mock implements _i16.PostService { ); @override - _i5.Future nextPage() => (super.noSuchMethod( + _i6.Future nextPage() => (super.noSuchMethod( Invocation.method( #nextPage, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future previousPage() => (super.noSuchMethod( + _i6.Future previousPage() => (super.noSuchMethod( Invocation.method( #previousPage, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future> loadCachedData() => (super.noSuchMethod( + _i6.Future> loadCachedData() => (super.noSuchMethod( Invocation.method( #loadCachedData, [], ), - returnValue: _i5.Future>.value(<_i17.Post>[]), + returnValue: _i6.Future>.value(<_i18.Post>[]), returnValueForMissingStub: - _i5.Future>.value(<_i17.Post>[]), - ) as _i5.Future>); + _i6.Future>.value(<_i18.Post>[]), + ) as _i6.Future>); @override - _i5.Future saveDataToCache(List<_i17.Post>? data) => + _i6.Future saveDataToCache(List<_i18.Post>? data) => (super.noSuchMethod( Invocation.method( #saveDataToCache, [data], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future> getNewFeedAndRefreshCache() => + _i6.Future> getNewFeedAndRefreshCache() => (super.noSuchMethod( Invocation.method( #getNewFeedAndRefreshCache, [], ), - returnValue: _i5.Future>.value(<_i17.Post>[]), + returnValue: _i6.Future>.value(<_i18.Post>[]), returnValueForMissingStub: - _i5.Future>.value(<_i17.Post>[]), - ) as _i5.Future>); + _i6.Future>.value(<_i18.Post>[]), + ) as _i6.Future>); } /// A class which mocks [MultiMediaPickerService]. /// /// See the documentation for Mockito's code generation for more information. class MockMultiMediaPickerService extends _i2.Mock - implements _i19.MultiMediaPickerService { + implements _i20.MultiMediaPickerService { @override - _i5.Stream get fileStream => (super.noSuchMethod( + _i6.Stream get fileStream => (super.noSuchMethod( Invocation.getter(#fileStream), - returnValue: _i5.Stream.empty(), - returnValueForMissingStub: _i5.Stream.empty(), - ) as _i5.Stream); + returnValue: _i6.Stream.empty(), + returnValueForMissingStub: _i6.Stream.empty(), + ) as _i6.Stream); @override - _i5.Future<_i20.File?> getPhotoFromGallery({bool? camera = false}) => + _i6.Future<_i21.File?> getPhotoFromGallery({bool? camera = false}) => (super.noSuchMethod( Invocation.method( #getPhotoFromGallery, [], {#camera: camera}, ), - returnValue: _i5.Future<_i20.File?>.value(), - returnValueForMissingStub: _i5.Future<_i20.File?>.value(), - ) as _i5.Future<_i20.File?>); + returnValue: _i6.Future<_i21.File?>.value(), + returnValueForMissingStub: _i6.Future<_i21.File?>.value(), + ) as _i6.Future<_i21.File?>); @override _i4.CustomAlertDialog permissionDeniedDialog() => (super.noSuchMethod( @@ -1289,57 +1302,70 @@ class MockMultiMediaPickerService extends _i2.Mock /// A class which mocks [EventService]. /// /// See the documentation for Mockito's code generation for more information. -class MockEventService extends _i2.Mock implements _i11.EventService { +class MockEventService extends _i2.Mock implements _i12.EventService { @override - _i5.Stream> get eventStream => (super.noSuchMethod( + _i6.Stream> get eventStream => (super.noSuchMethod( Invocation.getter(#eventStream), - returnValue: _i5.Stream>.empty(), - returnValueForMissingStub: _i5.Stream>.empty(), - ) as _i5.Stream>); + returnValue: _i6.Stream>.empty(), + returnValueForMissingStub: _i6.Stream>.empty(), + ) as _i6.Stream>); + + @override + _i5.OrgInfo get currentOrg => (super.noSuchMethod( + Invocation.getter(#currentOrg), + returnValue: _FakeOrgInfo_11( + this, + Invocation.getter(#currentOrg), + ), + returnValueForMissingStub: _FakeOrgInfo_11( + this, + Invocation.getter(#currentOrg), + ), + ) as _i5.OrgInfo); @override String get cacheKey => (super.noSuchMethod( Invocation.getter(#cacheKey), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#cacheKey), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#cacheKey), ), ) as String); @override - _i5.Future> fetchDataFromApi() => (super.noSuchMethod( + _i6.Future> fetchDataFromApi() => (super.noSuchMethod( Invocation.method( #fetchDataFromApi, [], ), - returnValue: _i5.Future>.value(<_i21.Event>[]), + returnValue: _i6.Future>.value(<_i22.Event>[]), returnValueForMissingStub: - _i5.Future>.value(<_i21.Event>[]), - ) as _i5.Future>); + _i6.Future>.value(<_i22.Event>[]), + ) as _i6.Future>); @override - _i5.Future fetchEventsInitial() => (super.noSuchMethod( + _i6.Future fetchEventsInitial() => (super.noSuchMethod( Invocation.method( #fetchEventsInitial, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future refreshFeed() => (super.noSuchMethod( + _i6.Future refreshFeed() => (super.noSuchMethod( Invocation.method( #refreshFeed, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override void setOrgStreamSubscription() => super.noSuchMethod( @@ -1351,7 +1377,7 @@ class MockEventService extends _i2.Mock implements _i11.EventService { ); @override - _i5.Future<_i3.QueryResult> createEvent( + _i6.Future<_i3.QueryResult> createEvent( {required Map? variables}) => (super.noSuchMethod( Invocation.method( @@ -1359,7 +1385,7 @@ class MockEventService extends _i2.Mock implements _i11.EventService { [], {#variables: variables}, ), - returnValue: _i5.Future<_i3.QueryResult>.value( + returnValue: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -1368,7 +1394,7 @@ class MockEventService extends _i2.Mock implements _i11.EventService { {#variables: variables}, ), )), - returnValueForMissingStub: _i5.Future<_i3.QueryResult>.value( + returnValueForMissingStub: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -1377,48 +1403,48 @@ class MockEventService extends _i2.Mock implements _i11.EventService { {#variables: variables}, ), )), - ) as _i5.Future<_i3.QueryResult>); + ) as _i6.Future<_i3.QueryResult>); @override - _i5.Future getEvents() => (super.noSuchMethod( + _i6.Future getEvents() => (super.noSuchMethod( Invocation.method( #getEvents, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future fetchAttendeesByEvent(String? eventId) => + _i6.Future fetchAttendeesByEvent(String? eventId) => (super.noSuchMethod( Invocation.method( #fetchAttendeesByEvent, [eventId], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future registerForAnEvent(String? eventId) => + _i6.Future registerForAnEvent(String? eventId) => (super.noSuchMethod( Invocation.method( #registerForAnEvent, [eventId], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future<_i3.QueryResult> deleteEvent(String? eventId) => + _i6.Future<_i3.QueryResult> deleteEvent(String? eventId) => (super.noSuchMethod( Invocation.method( #deleteEvent, [eventId], ), - returnValue: _i5.Future<_i3.QueryResult>.value( + returnValue: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -1426,7 +1452,7 @@ class MockEventService extends _i2.Mock implements _i11.EventService { [eventId], ), )), - returnValueForMissingStub: _i5.Future<_i3.QueryResult>.value( + returnValueForMissingStub: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -1434,10 +1460,10 @@ class MockEventService extends _i2.Mock implements _i11.EventService { [eventId], ), )), - ) as _i5.Future<_i3.QueryResult>); + ) as _i6.Future<_i3.QueryResult>); @override - _i5.Future<_i3.QueryResult> editEvent({ + _i6.Future<_i3.QueryResult> editEvent({ required String? eventId, required Map? variables, }) => @@ -1450,7 +1476,7 @@ class MockEventService extends _i2.Mock implements _i11.EventService { #variables: variables, }, ), - returnValue: _i5.Future<_i3.QueryResult>.value( + returnValue: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -1462,7 +1488,7 @@ class MockEventService extends _i2.Mock implements _i11.EventService { }, ), )), - returnValueForMissingStub: _i5.Future<_i3.QueryResult>.value( + returnValueForMissingStub: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -1474,114 +1500,114 @@ class MockEventService extends _i2.Mock implements _i11.EventService { }, ), )), - ) as _i5.Future<_i3.QueryResult>); + ) as _i6.Future<_i3.QueryResult>); @override - _i5.Future createVolunteerGroup(Map? variables) => + _i6.Future createVolunteerGroup(Map? variables) => (super.noSuchMethod( Invocation.method( #createVolunteerGroup, [variables], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future removeVolunteerGroup(Map? variables) => + _i6.Future removeVolunteerGroup(Map? variables) => (super.noSuchMethod( Invocation.method( #removeVolunteerGroup, [variables], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future addVolunteerToGroup(Map? variables) => + _i6.Future addVolunteerToGroup(Map? variables) => (super.noSuchMethod( Invocation.method( #addVolunteerToGroup, [variables], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future removeVolunteerFromGroup( + _i6.Future removeVolunteerFromGroup( Map? variables) => (super.noSuchMethod( Invocation.method( #removeVolunteerFromGroup, [variables], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future updateVolunteerGroup(Map? variables) => + _i6.Future updateVolunteerGroup(Map? variables) => (super.noSuchMethod( Invocation.method( #updateVolunteerGroup, [variables], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future> fetchVolunteerGroupsByEvent( + _i6.Future> fetchVolunteerGroupsByEvent( String? eventId) => (super.noSuchMethod( Invocation.method( #fetchVolunteerGroupsByEvent, [eventId], ), - returnValue: _i5.Future>.value( - <_i22.EventVolunteerGroup>[]), + returnValue: _i6.Future>.value( + <_i23.EventVolunteerGroup>[]), returnValueForMissingStub: - _i5.Future>.value( - <_i22.EventVolunteerGroup>[]), - ) as _i5.Future>); + _i6.Future>.value( + <_i23.EventVolunteerGroup>[]), + ) as _i6.Future>); @override - _i5.Future fetchAgendaCategories(String? orgId) => + _i6.Future fetchAgendaCategories(String? orgId) => (super.noSuchMethod( Invocation.method( #fetchAgendaCategories, [orgId], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future createAgendaItem(Map? variables) => + _i6.Future createAgendaItem(Map? variables) => (super.noSuchMethod( Invocation.method( #createAgendaItem, [variables], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future deleteAgendaItem(Map? variables) => + _i6.Future deleteAgendaItem(Map? variables) => (super.noSuchMethod( Invocation.method( #deleteAgendaItem, [variables], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future updateAgendaItem( + _i6.Future updateAgendaItem( String? itemId, Map? variables, ) => @@ -1593,19 +1619,19 @@ class MockEventService extends _i2.Mock implements _i11.EventService { variables, ], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future fetchAgendaItems(String? eventId) => (super.noSuchMethod( + _i6.Future fetchAgendaItems(String? eventId) => (super.noSuchMethod( Invocation.method( #fetchAgendaItems, [eventId], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override void dispose() => super.noSuchMethod( @@ -1617,53 +1643,53 @@ class MockEventService extends _i2.Mock implements _i11.EventService { ); @override - _i5.Future> loadCachedData() => (super.noSuchMethod( + _i6.Future> loadCachedData() => (super.noSuchMethod( Invocation.method( #loadCachedData, [], ), - returnValue: _i5.Future>.value(<_i21.Event>[]), + returnValue: _i6.Future>.value(<_i22.Event>[]), returnValueForMissingStub: - _i5.Future>.value(<_i21.Event>[]), - ) as _i5.Future>); + _i6.Future>.value(<_i22.Event>[]), + ) as _i6.Future>); @override - _i5.Future saveDataToCache(List<_i21.Event>? data) => + _i6.Future saveDataToCache(List<_i22.Event>? data) => (super.noSuchMethod( Invocation.method( #saveDataToCache, [data], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future> getNewFeedAndRefreshCache() => + _i6.Future> getNewFeedAndRefreshCache() => (super.noSuchMethod( Invocation.method( #getNewFeedAndRefreshCache, [], ), - returnValue: _i5.Future>.value(<_i21.Event>[]), + returnValue: _i6.Future>.value(<_i22.Event>[]), returnValueForMissingStub: - _i5.Future>.value(<_i21.Event>[]), - ) as _i5.Future>); + _i6.Future>.value(<_i22.Event>[]), + ) as _i6.Future>); } /// A class which mocks [ChatService]. /// /// See the documentation for Mockito's code generation for more information. -class MockChatService extends _i2.Mock implements _i23.ChatService { +class MockChatService extends _i2.Mock implements _i24.ChatService { @override - _i5.Stream<_i3.QueryResult> get chatStream => (super.noSuchMethod( + _i6.Stream<_i3.QueryResult> get chatStream => (super.noSuchMethod( Invocation.getter(#chatStream), - returnValue: _i5.Stream<_i3.QueryResult>.empty(), - returnValueForMissingStub: _i5.Stream<_i3.QueryResult>.empty(), - ) as _i5.Stream<_i3.QueryResult>); + returnValue: _i6.Stream<_i3.QueryResult>.empty(), + returnValueForMissingStub: _i6.Stream<_i3.QueryResult>.empty(), + ) as _i6.Stream<_i3.QueryResult>); @override - set chatStream(_i5.Stream<_i3.QueryResult>? _chatStream) => + set chatStream(_i6.Stream<_i3.QueryResult>? _chatStream) => super.noSuchMethod( Invocation.setter( #chatStream, @@ -1673,23 +1699,23 @@ class MockChatService extends _i2.Mock implements _i23.ChatService { ); @override - _i5.Stream<_i24.ChatListTileDataModel> get chatListStream => + _i6.Stream<_i25.ChatListTileDataModel> get chatListStream => (super.noSuchMethod( Invocation.getter(#chatListStream), - returnValue: _i5.Stream<_i24.ChatListTileDataModel>.empty(), + returnValue: _i6.Stream<_i25.ChatListTileDataModel>.empty(), returnValueForMissingStub: - _i5.Stream<_i24.ChatListTileDataModel>.empty(), - ) as _i5.Stream<_i24.ChatListTileDataModel>); + _i6.Stream<_i25.ChatListTileDataModel>.empty(), + ) as _i6.Stream<_i25.ChatListTileDataModel>); @override - _i5.Stream<_i25.ChatMessage> get chatMessagesStream => (super.noSuchMethod( + _i6.Stream<_i26.ChatMessage> get chatMessagesStream => (super.noSuchMethod( Invocation.getter(#chatMessagesStream), - returnValue: _i5.Stream<_i25.ChatMessage>.empty(), - returnValueForMissingStub: _i5.Stream<_i25.ChatMessage>.empty(), - ) as _i5.Stream<_i25.ChatMessage>); + returnValue: _i6.Stream<_i26.ChatMessage>.empty(), + returnValueForMissingStub: _i6.Stream<_i26.ChatMessage>.empty(), + ) as _i6.Stream<_i26.ChatMessage>); @override - _i5.Future sendMessageToDirectChat( + _i6.Future sendMessageToDirectChat( String? chatId, String? messageContent, ) => @@ -1701,78 +1727,78 @@ class MockChatService extends _i2.Mock implements _i23.ChatService { messageContent, ], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future getDirectChatsByUserId() => (super.noSuchMethod( + _i6.Future getDirectChatsByUserId() => (super.noSuchMethod( Invocation.method( #getDirectChatsByUserId, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future getDirectChatMessagesByChatId(dynamic chatId) => + _i6.Future getDirectChatMessagesByChatId(dynamic chatId) => (super.noSuchMethod( Invocation.method( #getDirectChatMessagesByChatId, [chatId], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); } /// A class which mocks [UserConfig]. /// /// See the documentation for Mockito's code generation for more information. -class MockUserConfig extends _i2.Mock implements _i26.UserConfig { +class MockUserConfig extends _i2.Mock implements _i27.UserConfig { @override - _i5.Stream<_i6.OrgInfo> get currentOrgInfoStream => (super.noSuchMethod( + _i6.Stream<_i5.OrgInfo> get currentOrgInfoStream => (super.noSuchMethod( Invocation.getter(#currentOrgInfoStream), - returnValue: _i5.Stream<_i6.OrgInfo>.empty(), - returnValueForMissingStub: _i5.Stream<_i6.OrgInfo>.empty(), - ) as _i5.Stream<_i6.OrgInfo>); + returnValue: _i6.Stream<_i5.OrgInfo>.empty(), + returnValueForMissingStub: _i6.Stream<_i5.OrgInfo>.empty(), + ) as _i6.Stream<_i5.OrgInfo>); @override - _i5.StreamController<_i6.OrgInfo> get currentOrgInfoController => + _i6.StreamController<_i5.OrgInfo> get currentOrgInfoController => (super.noSuchMethod( Invocation.getter(#currentOrgInfoController), - returnValue: _FakeStreamController_11<_i6.OrgInfo>( + returnValue: _FakeStreamController_12<_i5.OrgInfo>( this, Invocation.getter(#currentOrgInfoController), ), - returnValueForMissingStub: _FakeStreamController_11<_i6.OrgInfo>( + returnValueForMissingStub: _FakeStreamController_12<_i5.OrgInfo>( this, Invocation.getter(#currentOrgInfoController), ), - ) as _i5.StreamController<_i6.OrgInfo>); + ) as _i6.StreamController<_i5.OrgInfo>); @override - _i6.OrgInfo get currentOrg => (super.noSuchMethod( + _i5.OrgInfo get currentOrg => (super.noSuchMethod( Invocation.getter(#currentOrg), - returnValue: _FakeOrgInfo_12( + returnValue: _FakeOrgInfo_11( this, Invocation.getter(#currentOrg), ), - returnValueForMissingStub: _FakeOrgInfo_12( + returnValueForMissingStub: _FakeOrgInfo_11( this, Invocation.getter(#currentOrg), ), - ) as _i6.OrgInfo); + ) as _i5.OrgInfo); @override String get currentOrgName => (super.noSuchMethod( Invocation.getter(#currentOrgName), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#currentOrgName), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#currentOrgName), ), @@ -1786,7 +1812,7 @@ class MockUserConfig extends _i2.Mock implements _i26.UserConfig { ) as bool); @override - set currentOrg(_i6.OrgInfo? org) => super.noSuchMethod( + set currentOrg(_i5.OrgInfo? org) => super.noSuchMethod( Invocation.setter( #currentOrg, org, @@ -1826,71 +1852,71 @@ class MockUserConfig extends _i2.Mock implements _i26.UserConfig { ); @override - _i5.Future userLoggedIn() => (super.noSuchMethod( + _i6.Future userLoggedIn() => (super.noSuchMethod( Invocation.method( #userLoggedIn, [], ), - returnValue: _i5.Future.value(false), - returnValueForMissingStub: _i5.Future.value(false), - ) as _i5.Future); + returnValue: _i6.Future.value(false), + returnValueForMissingStub: _i6.Future.value(false), + ) as _i6.Future); @override - _i5.Future userLogOut() => (super.noSuchMethod( + _i6.Future userLogOut() => (super.noSuchMethod( Invocation.method( #userLogOut, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future updateUserJoinedOrg(List<_i6.OrgInfo>? orgDetails) => + _i6.Future updateUserJoinedOrg(List<_i5.OrgInfo>? orgDetails) => (super.noSuchMethod( Invocation.method( #updateUserJoinedOrg, [orgDetails], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future updateUserCreatedOrg(List<_i6.OrgInfo>? orgDetails) => + _i6.Future updateUserCreatedOrg(List<_i5.OrgInfo>? orgDetails) => (super.noSuchMethod( Invocation.method( #updateUserCreatedOrg, [orgDetails], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future updateUserMemberRequestOrg(List<_i6.OrgInfo>? orgDetails) => + _i6.Future updateUserMemberRequestOrg(List<_i5.OrgInfo>? orgDetails) => (super.noSuchMethod( Invocation.method( #updateUserMemberRequestOrg, [orgDetails], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future updateUserAdminOrg(List<_i6.OrgInfo>? orgDetails) => + _i6.Future updateUserAdminOrg(List<_i5.OrgInfo>? orgDetails) => (super.noSuchMethod( Invocation.method( #updateUserAdminOrg, [orgDetails], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future updateAccessToken({ + _i6.Future updateAccessToken({ required String? accessToken, required String? refreshToken, }) => @@ -1903,20 +1929,20 @@ class MockUserConfig extends _i2.Mock implements _i26.UserConfig { #refreshToken: refreshToken, }, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future updateUser(_i7.User? updatedUserDetails) => + _i6.Future updateUser(_i7.User? updatedUserDetails) => (super.noSuchMethod( Invocation.method( #updateUser, [updatedUserDetails], ), - returnValue: _i5.Future.value(false), - returnValueForMissingStub: _i5.Future.value(false), - ) as _i5.Future); + returnValue: _i6.Future.value(false), + returnValueForMissingStub: _i6.Future.value(false), + ) as _i6.Future); @override void saveUserInHive() => super.noSuchMethod( @@ -1928,7 +1954,7 @@ class MockUserConfig extends _i2.Mock implements _i26.UserConfig { ); @override - void saveCurrentOrgInHive(_i6.OrgInfo? saveOrgAsCurrent) => + void saveCurrentOrgInHive(_i5.OrgInfo? saveOrgAsCurrent) => super.noSuchMethod( Invocation.method( #saveCurrentOrgInHive, @@ -1941,7 +1967,7 @@ class MockUserConfig extends _i2.Mock implements _i26.UserConfig { /// A class which mocks [AppLanguage]. /// /// See the documentation for Mockito's code generation for more information. -class MockAppLanguage extends _i2.Mock implements _i27.AppLanguage { +class MockAppLanguage extends _i2.Mock implements _i28.AppLanguage { @override bool get isTest => (super.noSuchMethod( Invocation.getter(#isTest), @@ -1989,11 +2015,11 @@ class MockAppLanguage extends _i2.Mock implements _i27.AppLanguage { ) as _i10.Locale); @override - _i14.ViewState get state => (super.noSuchMethod( + _i15.ViewState get state => (super.noSuchMethod( Invocation.getter(#state), - returnValue: _i14.ViewState.idle, - returnValueForMissingStub: _i14.ViewState.idle, - ) as _i14.ViewState); + returnValue: _i15.ViewState.idle, + returnValueForMissingStub: _i15.ViewState.idle, + ) as _i15.ViewState); @override bool get isBusy => (super.noSuchMethod( @@ -2010,24 +2036,24 @@ class MockAppLanguage extends _i2.Mock implements _i27.AppLanguage { ) as bool); @override - _i5.Future initialize() => (super.noSuchMethod( + _i6.Future initialize() => (super.noSuchMethod( Invocation.method( #initialize, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future fetchLocale() => (super.noSuchMethod( + _i6.Future fetchLocale() => (super.noSuchMethod( Invocation.method( #fetchLocale, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override _i10.Locale localeResoultion( @@ -2065,57 +2091,57 @@ class MockAppLanguage extends _i2.Mock implements _i27.AppLanguage { ) as _i10.Locale); @override - _i5.Future changeLanguage(_i10.Locale? type) => (super.noSuchMethod( + _i6.Future changeLanguage(_i10.Locale? type) => (super.noSuchMethod( Invocation.method( #changeLanguage, [type], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future selectLanguagePress() => (super.noSuchMethod( + _i6.Future selectLanguagePress() => (super.noSuchMethod( Invocation.method( #selectLanguagePress, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future dbLanguageUpdate() => (super.noSuchMethod( + _i6.Future dbLanguageUpdate() => (super.noSuchMethod( Invocation.method( #dbLanguageUpdate, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future appLanguageQuery() => (super.noSuchMethod( + _i6.Future appLanguageQuery() => (super.noSuchMethod( Invocation.method( #appLanguageQuery, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future userLanguageQuery(String? userId) => (super.noSuchMethod( + _i6.Future userLanguageQuery(String? userId) => (super.noSuchMethod( Invocation.method( #userLanguageQuery, [userId], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - void setState(_i14.ViewState? viewState) => super.noSuchMethod( + void setState(_i15.ViewState? viewState) => super.noSuchMethod( Invocation.method( #setState, [viewState], @@ -2164,7 +2190,7 @@ class MockAppLanguage extends _i2.Mock implements _i27.AppLanguage { /// /// See the documentation for Mockito's code generation for more information. class MockSignupDetailsViewModel extends _i2.Mock - implements _i28.SignupDetailsViewModel { + implements _i29.SignupDetailsViewModel { @override _i1.GlobalKey<_i1.FormState> get formKey => (super.noSuchMethod( Invocation.getter(#formKey), @@ -2195,20 +2221,20 @@ class MockSignupDetailsViewModel extends _i2.Mock ); @override - _i6.OrgInfo get selectedOrganization => (super.noSuchMethod( + _i5.OrgInfo get selectedOrganization => (super.noSuchMethod( Invocation.getter(#selectedOrganization), - returnValue: _FakeOrgInfo_12( + returnValue: _FakeOrgInfo_11( this, Invocation.getter(#selectedOrganization), ), - returnValueForMissingStub: _FakeOrgInfo_12( + returnValueForMissingStub: _FakeOrgInfo_11( this, Invocation.getter(#selectedOrganization), ), - ) as _i6.OrgInfo); + ) as _i5.OrgInfo); @override - set selectedOrganization(_i6.OrgInfo? _selectedOrganization) => + set selectedOrganization(_i5.OrgInfo? _selectedOrganization) => super.noSuchMethod( Invocation.setter( #selectedOrganization, @@ -2217,14 +2243,37 @@ class MockSignupDetailsViewModel extends _i2.Mock returnValueForMissingStub: null, ); + @override + _i11.FlutterSecureStorage get secureStorage => (super.noSuchMethod( + Invocation.getter(#secureStorage), + returnValue: _FakeFlutterSecureStorage_17( + this, + Invocation.getter(#secureStorage), + ), + returnValueForMissingStub: _FakeFlutterSecureStorage_17( + this, + Invocation.getter(#secureStorage), + ), + ) as _i11.FlutterSecureStorage); + + @override + set secureStorage(_i11.FlutterSecureStorage? _secureStorage) => + super.noSuchMethod( + Invocation.setter( + #secureStorage, + _secureStorage, + ), + returnValueForMissingStub: null, + ); + @override _i1.TextEditingController get confirmPassword => (super.noSuchMethod( Invocation.getter(#confirmPassword), - returnValue: _FakeTextEditingController_17( + returnValue: _FakeTextEditingController_18( this, Invocation.getter(#confirmPassword), ), - returnValueForMissingStub: _FakeTextEditingController_17( + returnValueForMissingStub: _FakeTextEditingController_18( this, Invocation.getter(#confirmPassword), ), @@ -2243,11 +2292,11 @@ class MockSignupDetailsViewModel extends _i2.Mock @override _i1.TextEditingController get firstName => (super.noSuchMethod( Invocation.getter(#firstName), - returnValue: _FakeTextEditingController_17( + returnValue: _FakeTextEditingController_18( this, Invocation.getter(#firstName), ), - returnValueForMissingStub: _FakeTextEditingController_17( + returnValueForMissingStub: _FakeTextEditingController_18( this, Invocation.getter(#firstName), ), @@ -2265,11 +2314,11 @@ class MockSignupDetailsViewModel extends _i2.Mock @override _i1.TextEditingController get lastName => (super.noSuchMethod( Invocation.getter(#lastName), - returnValue: _FakeTextEditingController_17( + returnValue: _FakeTextEditingController_18( this, Invocation.getter(#lastName), ), - returnValueForMissingStub: _FakeTextEditingController_17( + returnValueForMissingStub: _FakeTextEditingController_18( this, Invocation.getter(#lastName), ), @@ -2287,11 +2336,11 @@ class MockSignupDetailsViewModel extends _i2.Mock @override _i1.TextEditingController get password => (super.noSuchMethod( Invocation.getter(#password), - returnValue: _FakeTextEditingController_17( + returnValue: _FakeTextEditingController_18( this, Invocation.getter(#password), ), - returnValueForMissingStub: _FakeTextEditingController_17( + returnValueForMissingStub: _FakeTextEditingController_18( this, Invocation.getter(#password), ), @@ -2309,11 +2358,11 @@ class MockSignupDetailsViewModel extends _i2.Mock @override _i1.TextEditingController get email => (super.noSuchMethod( Invocation.getter(#email), - returnValue: _FakeTextEditingController_17( + returnValue: _FakeTextEditingController_18( this, Invocation.getter(#email), ), - returnValueForMissingStub: _FakeTextEditingController_17( + returnValueForMissingStub: _FakeTextEditingController_18( this, Invocation.getter(#email), ), @@ -2347,11 +2396,11 @@ class MockSignupDetailsViewModel extends _i2.Mock @override _i1.FocusNode get confirmFocus => (super.noSuchMethod( Invocation.getter(#confirmFocus), - returnValue: _FakeFocusNode_18( + returnValue: _FakeFocusNode_19( this, Invocation.getter(#confirmFocus), ), - returnValueForMissingStub: _FakeFocusNode_18( + returnValueForMissingStub: _FakeFocusNode_19( this, Invocation.getter(#confirmFocus), ), @@ -2383,11 +2432,11 @@ class MockSignupDetailsViewModel extends _i2.Mock ); @override - _i14.ViewState get state => (super.noSuchMethod( + _i15.ViewState get state => (super.noSuchMethod( Invocation.getter(#state), - returnValue: _i14.ViewState.idle, - returnValueForMissingStub: _i14.ViewState.idle, - ) as _i14.ViewState); + returnValue: _i15.ViewState.idle, + returnValueForMissingStub: _i15.ViewState.idle, + ) as _i15.ViewState); @override bool get isBusy => (super.noSuchMethod( @@ -2404,7 +2453,7 @@ class MockSignupDetailsViewModel extends _i2.Mock ) as bool); @override - void initialise(_i6.OrgInfo? org) => super.noSuchMethod( + void initialise(_i5.OrgInfo? org) => super.noSuchMethod( Invocation.method( #initialise, [org], @@ -2413,17 +2462,27 @@ class MockSignupDetailsViewModel extends _i2.Mock ); @override - _i5.Future signUp() => (super.noSuchMethod( + _i6.Future signUp() => (super.noSuchMethod( Invocation.method( #signUp, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future storingCredentialsInSecureStorage() => (super.noSuchMethod( + Invocation.method( + #storingCredentialsInSecureStorage, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - void setState(_i14.ViewState? viewState) => super.noSuchMethod( + void setState(_i15.ViewState? viewState) => super.noSuchMethod( Invocation.method( #setState, [viewState], @@ -2471,15 +2530,15 @@ class MockSignupDetailsViewModel extends _i2.Mock /// A class which mocks [Post]. /// /// See the documentation for Mockito's code generation for more information. -class MockPost extends _i2.Mock implements _i17.Post { +class MockPost extends _i2.Mock implements _i18.Post { @override String get sId => (super.noSuchMethod( Invocation.getter(#sId), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#sId), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#sId), ), @@ -2549,7 +2608,7 @@ class MockPost extends _i2.Mock implements _i17.Post { ); @override - set organization(_i6.OrgInfo? _organization) => super.noSuchMethod( + set organization(_i5.OrgInfo? _organization) => super.noSuchMethod( Invocation.setter( #organization, _organization, @@ -2558,7 +2617,7 @@ class MockPost extends _i2.Mock implements _i17.Post { ); @override - set likedBy(List<_i17.LikedBy>? _likedBy) => super.noSuchMethod( + set likedBy(List<_i18.LikedBy>? _likedBy) => super.noSuchMethod( Invocation.setter( #likedBy, _likedBy, @@ -2567,7 +2626,7 @@ class MockPost extends _i2.Mock implements _i17.Post { ); @override - set comments(List<_i17.Comments>? _comments) => super.noSuchMethod( + set comments(List<_i18.Comments>? _comments) => super.noSuchMethod( Invocation.setter( #comments, _comments, @@ -2581,14 +2640,14 @@ class MockPost extends _i2.Mock implements _i17.Post { #getPostCreatedDuration, [], ), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.method( #getPostCreatedDuration, [], ), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.method( #getPostCreatedDuration, @@ -2688,7 +2747,7 @@ class MockDataBaseMutationFunctions extends _i2.Mock ); @override - _i5.Future<_i3.QueryResult> gqlAuthQuery( + _i6.Future<_i3.QueryResult> gqlAuthQuery( String? query, { Map? variables, }) => @@ -2698,7 +2757,7 @@ class MockDataBaseMutationFunctions extends _i2.Mock [query], {#variables: variables}, ), - returnValue: _i5.Future<_i3.QueryResult>.value( + returnValue: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -2707,7 +2766,7 @@ class MockDataBaseMutationFunctions extends _i2.Mock {#variables: variables}, ), )), - returnValueForMissingStub: _i5.Future<_i3.QueryResult>.value( + returnValueForMissingStub: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -2716,10 +2775,10 @@ class MockDataBaseMutationFunctions extends _i2.Mock {#variables: variables}, ), )), - ) as _i5.Future<_i3.QueryResult>); + ) as _i6.Future<_i3.QueryResult>); @override - _i5.Future<_i3.QueryResult> gqlAuthMutation( + _i6.Future<_i3.QueryResult> gqlAuthMutation( String? mutation, { Map? variables, }) => @@ -2729,7 +2788,7 @@ class MockDataBaseMutationFunctions extends _i2.Mock [mutation], {#variables: variables}, ), - returnValue: _i5.Future<_i3.QueryResult>.value( + returnValue: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -2738,7 +2797,7 @@ class MockDataBaseMutationFunctions extends _i2.Mock {#variables: variables}, ), )), - returnValueForMissingStub: _i5.Future<_i3.QueryResult>.value( + returnValueForMissingStub: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -2747,10 +2806,10 @@ class MockDataBaseMutationFunctions extends _i2.Mock {#variables: variables}, ), )), - ) as _i5.Future<_i3.QueryResult>); + ) as _i6.Future<_i3.QueryResult>); @override - _i5.Future<_i3.QueryResult> gqlNonAuthMutation( + _i6.Future<_i3.QueryResult> gqlNonAuthMutation( String? mutation, { Map? variables, bool? reCall = true, @@ -2764,7 +2823,7 @@ class MockDataBaseMutationFunctions extends _i2.Mock #reCall: reCall, }, ), - returnValue: _i5.Future<_i3.QueryResult>.value( + returnValue: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -2776,7 +2835,7 @@ class MockDataBaseMutationFunctions extends _i2.Mock }, ), )), - returnValueForMissingStub: _i5.Future<_i3.QueryResult>.value( + returnValueForMissingStub: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -2788,10 +2847,10 @@ class MockDataBaseMutationFunctions extends _i2.Mock }, ), )), - ) as _i5.Future<_i3.QueryResult>); + ) as _i6.Future<_i3.QueryResult>); @override - _i5.Future<_i3.QueryResult> gqlNonAuthQuery( + _i6.Future<_i3.QueryResult> gqlNonAuthQuery( String? query, { Map? variables, }) => @@ -2801,7 +2860,7 @@ class MockDataBaseMutationFunctions extends _i2.Mock [query], {#variables: variables}, ), - returnValue: _i5.Future<_i3.QueryResult>.value( + returnValue: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -2810,7 +2869,7 @@ class MockDataBaseMutationFunctions extends _i2.Mock {#variables: variables}, ), )), - returnValueForMissingStub: _i5.Future<_i3.QueryResult>.value( + returnValueForMissingStub: _i6.Future<_i3.QueryResult>.value( _FakeQueryResult_9( this, Invocation.method( @@ -2819,53 +2878,53 @@ class MockDataBaseMutationFunctions extends _i2.Mock {#variables: variables}, ), )), - ) as _i5.Future<_i3.QueryResult>); + ) as _i6.Future<_i3.QueryResult>); @override - _i5.Future refreshAccessToken(String? refreshToken) => + _i6.Future refreshAccessToken(String? refreshToken) => (super.noSuchMethod( Invocation.method( #refreshAccessToken, [refreshToken], ), - returnValue: _i5.Future.value(false), - returnValueForMissingStub: _i5.Future.value(false), - ) as _i5.Future); + returnValue: _i6.Future.value(false), + returnValueForMissingStub: _i6.Future.value(false), + ) as _i6.Future); @override - _i5.Future fetchOrgById(String? id) => (super.noSuchMethod( + _i6.Future fetchOrgById(String? id) => (super.noSuchMethod( Invocation.method( #fetchOrgById, [id], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); } /// A class which mocks [OrganizationService]. /// /// See the documentation for Mockito's code generation for more information. class MockOrganizationService extends _i2.Mock - implements _i29.OrganizationService { + implements _i30.OrganizationService { @override - _i5.Future> getOrgMembersList(String? orgId) => + _i6.Future> getOrgMembersList(String? orgId) => (super.noSuchMethod( Invocation.method( #getOrgMembersList, [orgId], ), - returnValue: _i5.Future>.value(<_i7.User>[]), + returnValue: _i6.Future>.value(<_i7.User>[]), returnValueForMissingStub: - _i5.Future>.value(<_i7.User>[]), - ) as _i5.Future>); + _i6.Future>.value(<_i7.User>[]), + ) as _i6.Future>); } /// A class which mocks [ExploreEventsViewModel]. /// /// See the documentation for Mockito's code generation for more information. class MockExploreEventsViewModel extends _i2.Mock - implements _i30.ExploreEventsViewModel { + implements _i31.ExploreEventsViewModel { @override bool get demoMode => (super.noSuchMethod( Invocation.getter(#demoMode), @@ -2883,40 +2942,40 @@ class MockExploreEventsViewModel extends _i2.Mock ); @override - List<_i21.Event> get events => (super.noSuchMethod( + List<_i22.Event> get events => (super.noSuchMethod( Invocation.getter(#events), - returnValue: <_i21.Event>[], - returnValueForMissingStub: <_i21.Event>[], - ) as List<_i21.Event>); + returnValue: <_i22.Event>[], + returnValueForMissingStub: <_i22.Event>[], + ) as List<_i22.Event>); @override - List<_i21.Event> get userEvents => (super.noSuchMethod( + List<_i22.Event> get userEvents => (super.noSuchMethod( Invocation.getter(#userEvents), - returnValue: <_i21.Event>[], - returnValueForMissingStub: <_i21.Event>[], - ) as List<_i21.Event>); + returnValue: <_i22.Event>[], + returnValueForMissingStub: <_i22.Event>[], + ) as List<_i22.Event>); @override - _i11.EventService get eventService => (super.noSuchMethod( + _i12.EventService get eventService => (super.noSuchMethod( Invocation.getter(#eventService), - returnValue: _FakeEventService_19( + returnValue: _FakeEventService_20( this, Invocation.getter(#eventService), ), - returnValueForMissingStub: _FakeEventService_19( + returnValueForMissingStub: _FakeEventService_20( this, Invocation.getter(#eventService), ), - ) as _i11.EventService); + ) as _i12.EventService); @override String get emptyListMessage => (super.noSuchMethod( Invocation.getter(#emptyListMessage), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#emptyListMessage), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#emptyListMessage), ), @@ -2925,22 +2984,22 @@ class MockExploreEventsViewModel extends _i2.Mock @override String get chosenValue => (super.noSuchMethod( Invocation.getter(#chosenValue), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#chosenValue), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#chosenValue), ), ) as String); @override - _i14.ViewState get state => (super.noSuchMethod( + _i15.ViewState get state => (super.noSuchMethod( Invocation.getter(#state), - returnValue: _i14.ViewState.idle, - returnValueForMissingStub: _i14.ViewState.idle, - ) as _i14.ViewState); + returnValue: _i15.ViewState.idle, + returnValueForMissingStub: _i15.ViewState.idle, + ) as _i15.ViewState); @override bool get isBusy => (super.noSuchMethod( @@ -2957,67 +3016,67 @@ class MockExploreEventsViewModel extends _i2.Mock ) as bool); @override - _i5.Future fetchNewEvents() => (super.noSuchMethod( + _i6.Future fetchNewEvents() => (super.noSuchMethod( Invocation.method( #fetchNewEvents, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future refreshEvents() => (super.noSuchMethod( + _i6.Future refreshEvents() => (super.noSuchMethod( Invocation.method( #refreshEvents, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future initialise() => (super.noSuchMethod( + _i6.Future initialise() => (super.noSuchMethod( Invocation.method( #initialise, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future checkIfExistsAndAddNewEvents(List<_i21.Event>? newEvents) => + _i6.Future checkIfExistsAndAddNewEvents(List<_i22.Event>? newEvents) => (super.noSuchMethod( Invocation.method( #checkIfExistsAndAddNewEvents, [newEvents], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future deleteEvent({required String? eventId}) => + _i6.Future deleteEvent({required String? eventId}) => (super.noSuchMethod( Invocation.method( #deleteEvent, [], {#eventId: eventId}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future choseValueFromDropdown(String? value) => (super.noSuchMethod( + _i6.Future choseValueFromDropdown(String? value) => (super.noSuchMethod( Invocation.method( #choseValueFromDropdown, [value], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override void dispose() => super.noSuchMethod( @@ -3029,7 +3088,7 @@ class MockExploreEventsViewModel extends _i2.Mock ); @override - void setState(_i14.ViewState? viewState) => super.noSuchMethod( + void setState(_i15.ViewState? viewState) => super.noSuchMethod( Invocation.method( #setState, [viewState], @@ -3069,7 +3128,7 @@ class MockExploreEventsViewModel extends _i2.Mock /// /// See the documentation for Mockito's code generation for more information. class MockOrganizationFeedViewModel extends _i2.Mock - implements _i31.OrganizationFeedViewModel { + implements _i32.OrganizationFeedViewModel { @override bool get istest => (super.noSuchMethod( Invocation.getter(#istest), @@ -3087,34 +3146,34 @@ class MockOrganizationFeedViewModel extends _i2.Mock ); @override - List<_i17.Post> get posts => (super.noSuchMethod( + List<_i18.Post> get posts => (super.noSuchMethod( Invocation.getter(#posts), - returnValue: <_i17.Post>[], - returnValueForMissingStub: <_i17.Post>[], - ) as List<_i17.Post>); + returnValue: <_i18.Post>[], + returnValueForMissingStub: <_i18.Post>[], + ) as List<_i18.Post>); @override - List<_i17.Post> get userPosts => (super.noSuchMethod( + List<_i18.Post> get userPosts => (super.noSuchMethod( Invocation.getter(#userPosts), - returnValue: <_i17.Post>[], - returnValueForMissingStub: <_i17.Post>[], - ) as List<_i17.Post>); + returnValue: <_i18.Post>[], + returnValueForMissingStub: <_i18.Post>[], + ) as List<_i18.Post>); @override - List<_i17.Post> get pinnedPosts => (super.noSuchMethod( + List<_i18.Post> get pinnedPosts => (super.noSuchMethod( Invocation.getter(#pinnedPosts), - returnValue: <_i17.Post>[], - returnValueForMissingStub: <_i17.Post>[], - ) as List<_i17.Post>); + returnValue: <_i18.Post>[], + returnValueForMissingStub: <_i18.Post>[], + ) as List<_i18.Post>); @override String get currentOrgName => (super.noSuchMethod( Invocation.getter(#currentOrgName), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#currentOrgName), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#currentOrgName), ), @@ -3128,11 +3187,11 @@ class MockOrganizationFeedViewModel extends _i2.Mock ) as bool); @override - _i14.ViewState get state => (super.noSuchMethod( + _i15.ViewState get state => (super.noSuchMethod( Invocation.getter(#state), - returnValue: _i14.ViewState.idle, - returnValueForMissingStub: _i14.ViewState.idle, - ) as _i14.ViewState); + returnValue: _i15.ViewState.idle, + returnValueForMissingStub: _i15.ViewState.idle, + ) as _i15.ViewState); @override bool get isBusy => (super.noSuchMethod( @@ -3178,7 +3237,7 @@ class MockOrganizationFeedViewModel extends _i2.Mock ); @override - void buildNewPosts(List<_i17.Post>? newPosts) => super.noSuchMethod( + void buildNewPosts(List<_i18.Post>? newPosts) => super.noSuchMethod( Invocation.method( #buildNewPosts, [newPosts], @@ -3187,7 +3246,7 @@ class MockOrganizationFeedViewModel extends _i2.Mock ); @override - void navigateToIndividualPage(_i17.Post? post) => super.noSuchMethod( + void navigateToIndividualPage(_i18.Post? post) => super.noSuchMethod( Invocation.method( #navigateToIndividualPage, [post], @@ -3214,7 +3273,7 @@ class MockOrganizationFeedViewModel extends _i2.Mock ); @override - void addNewPost(_i17.Post? newPost) => super.noSuchMethod( + void addNewPost(_i18.Post? newPost) => super.noSuchMethod( Invocation.method( #addNewPost, [newPost], @@ -3223,7 +3282,7 @@ class MockOrganizationFeedViewModel extends _i2.Mock ); @override - void updatedPost(_i17.Post? post) => super.noSuchMethod( + void updatedPost(_i18.Post? post) => super.noSuchMethod( Invocation.method( #updatedPost, [post], @@ -3232,14 +3291,14 @@ class MockOrganizationFeedViewModel extends _i2.Mock ); @override - _i5.Future removePost(_i17.Post? post) => (super.noSuchMethod( + _i6.Future removePost(_i18.Post? post) => (super.noSuchMethod( Invocation.method( #removePost, [post], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override void nextPage() => super.noSuchMethod( @@ -3260,7 +3319,7 @@ class MockOrganizationFeedViewModel extends _i2.Mock ); @override - void setState(_i14.ViewState? viewState) => super.noSuchMethod( + void setState(_i15.ViewState? viewState) => super.noSuchMethod( Invocation.method( #setState, [viewState], @@ -3299,28 +3358,44 @@ class MockOrganizationFeedViewModel extends _i2.Mock /// A class which mocks [Validator]. /// /// See the documentation for Mockito's code generation for more information. -class MockValidator extends _i2.Mock implements _i32.Validator { +class MockValidator extends _i2.Mock implements _i33.Validator { @override - _i5.Future validateUrlExistence(String? url) => (super.noSuchMethod( + _i6.Future validateUrlExistence(String? url) => (super.noSuchMethod( Invocation.method( #validateUrlExistence, [url], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); } /// A class which mocks [QRViewController]. /// /// See the documentation for Mockito's code generation for more information. -class MockQRViewController extends _i2.Mock implements _i33.QRViewController { +class MockQRViewController extends _i2.Mock implements _i34.QRViewController { + @override + bool get disposed => (super.noSuchMethod( + Invocation.getter(#disposed), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + + @override + set disposed(bool? _disposed) => super.noSuchMethod( + Invocation.setter( + #disposed, + _disposed, + ), + returnValueForMissingStub: null, + ); + @override - _i5.Stream<_i34.Barcode> get scannedDataStream => (super.noSuchMethod( + _i6.Stream<_i35.Barcode> get scannedDataStream => (super.noSuchMethod( Invocation.getter(#scannedDataStream), - returnValue: _i5.Stream<_i34.Barcode>.empty(), - returnValueForMissingStub: _i5.Stream<_i34.Barcode>.empty(), - ) as _i5.Stream<_i34.Barcode>); + returnValue: _i6.Stream<_i35.Barcode>.empty(), + returnValueForMissingStub: _i6.Stream<_i35.Barcode>.empty(), + ) as _i6.Stream<_i35.Barcode>); @override bool get hasPermissions => (super.noSuchMethod( @@ -3330,87 +3405,87 @@ class MockQRViewController extends _i2.Mock implements _i33.QRViewController { ) as bool); @override - _i5.Future<_i35.CameraFacing> getCameraInfo() => (super.noSuchMethod( + _i6.Future<_i36.CameraFacing> getCameraInfo() => (super.noSuchMethod( Invocation.method( #getCameraInfo, [], ), returnValue: - _i5.Future<_i35.CameraFacing>.value(_i35.CameraFacing.back), + _i6.Future<_i36.CameraFacing>.value(_i36.CameraFacing.back), returnValueForMissingStub: - _i5.Future<_i35.CameraFacing>.value(_i35.CameraFacing.back), - ) as _i5.Future<_i35.CameraFacing>); + _i6.Future<_i36.CameraFacing>.value(_i36.CameraFacing.back), + ) as _i6.Future<_i36.CameraFacing>); @override - _i5.Future<_i35.CameraFacing> flipCamera() => (super.noSuchMethod( + _i6.Future<_i36.CameraFacing> flipCamera() => (super.noSuchMethod( Invocation.method( #flipCamera, [], ), returnValue: - _i5.Future<_i35.CameraFacing>.value(_i35.CameraFacing.back), + _i6.Future<_i36.CameraFacing>.value(_i36.CameraFacing.back), returnValueForMissingStub: - _i5.Future<_i35.CameraFacing>.value(_i35.CameraFacing.back), - ) as _i5.Future<_i35.CameraFacing>); + _i6.Future<_i36.CameraFacing>.value(_i36.CameraFacing.back), + ) as _i6.Future<_i36.CameraFacing>); @override - _i5.Future getFlashStatus() => (super.noSuchMethod( + _i6.Future getFlashStatus() => (super.noSuchMethod( Invocation.method( #getFlashStatus, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future toggleFlash() => (super.noSuchMethod( + _i6.Future toggleFlash() => (super.noSuchMethod( Invocation.method( #toggleFlash, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future pauseCamera() => (super.noSuchMethod( + _i6.Future pauseCamera() => (super.noSuchMethod( Invocation.method( #pauseCamera, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future stopCamera() => (super.noSuchMethod( + _i6.Future stopCamera() => (super.noSuchMethod( Invocation.method( #stopCamera, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future resumeCamera() => (super.noSuchMethod( + _i6.Future resumeCamera() => (super.noSuchMethod( Invocation.method( #resumeCamera, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future<_i12.SystemFeatures> getSystemFeatures() => (super.noSuchMethod( + _i6.Future<_i13.SystemFeatures> getSystemFeatures() => (super.noSuchMethod( Invocation.method( #getSystemFeatures, [], ), returnValue: - _i5.Future<_i12.SystemFeatures>.value(_FakeSystemFeatures_20( + _i6.Future<_i13.SystemFeatures>.value(_FakeSystemFeatures_21( this, Invocation.method( #getSystemFeatures, @@ -3418,14 +3493,14 @@ class MockQRViewController extends _i2.Mock implements _i33.QRViewController { ), )), returnValueForMissingStub: - _i5.Future<_i12.SystemFeatures>.value(_FakeSystemFeatures_20( + _i6.Future<_i13.SystemFeatures>.value(_FakeSystemFeatures_21( this, Invocation.method( #getSystemFeatures, [], ), )), - ) as _i5.Future<_i12.SystemFeatures>); + ) as _i6.Future<_i13.SystemFeatures>); @override void dispose() => super.noSuchMethod( @@ -3437,22 +3512,22 @@ class MockQRViewController extends _i2.Mock implements _i33.QRViewController { ); @override - _i5.Future scanInvert(bool? isScanInvert) => (super.noSuchMethod( + _i6.Future scanInvert(bool? isScanInvert) => (super.noSuchMethod( Invocation.method( #scanInvert, [isScanInvert], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); } /// A class which mocks [CommentService]. /// /// See the documentation for Mockito's code generation for more information. -class MockCommentService extends _i2.Mock implements _i36.CommentService { +class MockCommentService extends _i2.Mock implements _i37.CommentService { @override - _i5.Future createComments( + _i6.Future createComments( String? postId, String? text, ) => @@ -3464,34 +3539,34 @@ class MockCommentService extends _i2.Mock implements _i36.CommentService { text, ], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future> getCommentsForPost(String? postId) => + _i6.Future> getCommentsForPost(String? postId) => (super.noSuchMethod( Invocation.method( #getCommentsForPost, [postId], ), - returnValue: _i5.Future>.value([]), - returnValueForMissingStub: _i5.Future>.value([]), - ) as _i5.Future>); + returnValue: _i6.Future>.value([]), + returnValueForMissingStub: _i6.Future>.value([]), + ) as _i6.Future>); } /// A class which mocks [AppTheme]. /// /// See the documentation for Mockito's code generation for more information. -class MockAppTheme extends _i2.Mock implements _i37.AppTheme { +class MockAppTheme extends _i2.Mock implements _i38.AppTheme { @override String get key => (super.noSuchMethod( Invocation.getter(#key), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#key), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#key), ), @@ -3507,22 +3582,22 @@ class MockAppTheme extends _i2.Mock implements _i37.AppTheme { @override _i1.ThemeData get theme => (super.noSuchMethod( Invocation.getter(#theme), - returnValue: _FakeThemeData_21( + returnValue: _FakeThemeData_22( this, Invocation.getter(#theme), ), - returnValueForMissingStub: _FakeThemeData_21( + returnValueForMissingStub: _FakeThemeData_22( this, Invocation.getter(#theme), ), ) as _i1.ThemeData); @override - _i14.ViewState get state => (super.noSuchMethod( + _i15.ViewState get state => (super.noSuchMethod( Invocation.getter(#state), - returnValue: _i14.ViewState.idle, - returnValueForMissingStub: _i14.ViewState.idle, - ) as _i14.ViewState); + returnValue: _i15.ViewState.idle, + returnValueForMissingStub: _i15.ViewState.idle, + ) as _i15.ViewState); @override bool get isBusy => (super.noSuchMethod( @@ -3558,7 +3633,7 @@ class MockAppTheme extends _i2.Mock implements _i37.AppTheme { ); @override - void setState(_i14.ViewState? viewState) => super.noSuchMethod( + void setState(_i15.ViewState? viewState) => super.noSuchMethod( Invocation.method( #setState, [viewState], @@ -3607,15 +3682,15 @@ class MockAppTheme extends _i2.Mock implements _i37.AppTheme { /// /// See the documentation for Mockito's code generation for more information. class MockCreateEventViewModel extends _i2.Mock - implements _i38.CreateEventViewModel { + implements _i39.CreateEventViewModel { @override _i1.TextEditingController get eventTitleTextController => (super.noSuchMethod( Invocation.getter(#eventTitleTextController), - returnValue: _FakeTextEditingController_17( + returnValue: _FakeTextEditingController_18( this, Invocation.getter(#eventTitleTextController), ), - returnValueForMissingStub: _FakeTextEditingController_17( + returnValueForMissingStub: _FakeTextEditingController_18( this, Invocation.getter(#eventTitleTextController), ), @@ -3636,11 +3711,11 @@ class MockCreateEventViewModel extends _i2.Mock _i1.TextEditingController get eventLocationTextController => (super.noSuchMethod( Invocation.getter(#eventLocationTextController), - returnValue: _FakeTextEditingController_17( + returnValue: _FakeTextEditingController_18( this, Invocation.getter(#eventLocationTextController), ), - returnValueForMissingStub: _FakeTextEditingController_17( + returnValueForMissingStub: _FakeTextEditingController_18( this, Invocation.getter(#eventLocationTextController), ), @@ -3661,11 +3736,11 @@ class MockCreateEventViewModel extends _i2.Mock _i1.TextEditingController get eventDescriptionTextController => (super.noSuchMethod( Invocation.getter(#eventDescriptionTextController), - returnValue: _FakeTextEditingController_17( + returnValue: _FakeTextEditingController_18( this, Invocation.getter(#eventDescriptionTextController), ), - returnValueForMissingStub: _FakeTextEditingController_17( + returnValueForMissingStub: _FakeTextEditingController_18( this, Invocation.getter(#eventDescriptionTextController), ), @@ -3686,11 +3761,11 @@ class MockCreateEventViewModel extends _i2.Mock _i1.TextEditingController get repeatsEveryCountController => (super.noSuchMethod( Invocation.getter(#repeatsEveryCountController), - returnValue: _FakeTextEditingController_17( + returnValue: _FakeTextEditingController_18( this, Invocation.getter(#repeatsEveryCountController), ), - returnValueForMissingStub: _FakeTextEditingController_17( + returnValueForMissingStub: _FakeTextEditingController_18( this, Invocation.getter(#repeatsEveryCountController), ), @@ -3710,11 +3785,11 @@ class MockCreateEventViewModel extends _i2.Mock @override _i1.TextEditingController get endOccurenceController => (super.noSuchMethod( Invocation.getter(#endOccurenceController), - returnValue: _FakeTextEditingController_17( + returnValue: _FakeTextEditingController_18( this, Invocation.getter(#endOccurenceController), ), - returnValueForMissingStub: _FakeTextEditingController_17( + returnValueForMissingStub: _FakeTextEditingController_18( this, Invocation.getter(#endOccurenceController), ), @@ -3734,11 +3809,11 @@ class MockCreateEventViewModel extends _i2.Mock @override _i1.TimeOfDay get eventStartTime => (super.noSuchMethod( Invocation.getter(#eventStartTime), - returnValue: _FakeTimeOfDay_22( + returnValue: _FakeTimeOfDay_23( this, Invocation.getter(#eventStartTime), ), - returnValueForMissingStub: _FakeTimeOfDay_22( + returnValueForMissingStub: _FakeTimeOfDay_23( this, Invocation.getter(#eventStartTime), ), @@ -3756,11 +3831,11 @@ class MockCreateEventViewModel extends _i2.Mock @override _i1.TimeOfDay get eventEndTime => (super.noSuchMethod( Invocation.getter(#eventEndTime), - returnValue: _FakeTimeOfDay_22( + returnValue: _FakeTimeOfDay_23( this, Invocation.getter(#eventEndTime), ), - returnValueForMissingStub: _FakeTimeOfDay_22( + returnValueForMissingStub: _FakeTimeOfDay_23( this, Invocation.getter(#eventEndTime), ), @@ -3778,11 +3853,11 @@ class MockCreateEventViewModel extends _i2.Mock @override DateTime get eventStartDate => (super.noSuchMethod( Invocation.getter(#eventStartDate), - returnValue: _FakeDateTime_23( + returnValue: _FakeDateTime_24( this, Invocation.getter(#eventStartDate), ), - returnValueForMissingStub: _FakeDateTime_23( + returnValueForMissingStub: _FakeDateTime_24( this, Invocation.getter(#eventStartDate), ), @@ -3800,11 +3875,11 @@ class MockCreateEventViewModel extends _i2.Mock @override DateTime get eventEndDate => (super.noSuchMethod( Invocation.getter(#eventEndDate), - returnValue: _FakeDateTime_23( + returnValue: _FakeDateTime_24( this, Invocation.getter(#eventEndDate), ), - returnValueForMissingStub: _FakeDateTime_23( + returnValueForMissingStub: _FakeDateTime_24( this, Invocation.getter(#eventEndDate), ), @@ -3822,11 +3897,11 @@ class MockCreateEventViewModel extends _i2.Mock @override DateTime get recurrenceStartDate => (super.noSuchMethod( Invocation.getter(#recurrenceStartDate), - returnValue: _FakeDateTime_23( + returnValue: _FakeDateTime_24( this, Invocation.getter(#recurrenceStartDate), ), - returnValueForMissingStub: _FakeDateTime_23( + returnValueForMissingStub: _FakeDateTime_24( this, Invocation.getter(#recurrenceStartDate), ), @@ -3885,11 +3960,11 @@ class MockCreateEventViewModel extends _i2.Mock @override _i1.FocusNode get titleFocus => (super.noSuchMethod( Invocation.getter(#titleFocus), - returnValue: _FakeFocusNode_18( + returnValue: _FakeFocusNode_19( this, Invocation.getter(#titleFocus), ), - returnValueForMissingStub: _FakeFocusNode_18( + returnValueForMissingStub: _FakeFocusNode_19( this, Invocation.getter(#titleFocus), ), @@ -3907,11 +3982,11 @@ class MockCreateEventViewModel extends _i2.Mock @override _i1.FocusNode get locationFocus => (super.noSuchMethod( Invocation.getter(#locationFocus), - returnValue: _FakeFocusNode_18( + returnValue: _FakeFocusNode_19( this, Invocation.getter(#locationFocus), ), - returnValueForMissingStub: _FakeFocusNode_18( + returnValueForMissingStub: _FakeFocusNode_19( this, Invocation.getter(#locationFocus), ), @@ -3929,11 +4004,11 @@ class MockCreateEventViewModel extends _i2.Mock @override _i1.FocusNode get descriptionFocus => (super.noSuchMethod( Invocation.getter(#descriptionFocus), - returnValue: _FakeFocusNode_18( + returnValue: _FakeFocusNode_19( this, Invocation.getter(#descriptionFocus), ), - returnValueForMissingStub: _FakeFocusNode_18( + returnValueForMissingStub: _FakeFocusNode_19( this, Invocation.getter(#descriptionFocus), ), @@ -3983,11 +4058,11 @@ class MockCreateEventViewModel extends _i2.Mock @override String get recurrenceInterval => (super.noSuchMethod( Invocation.getter(#recurrenceInterval), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#recurrenceInterval), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#recurrenceInterval), ), @@ -4005,11 +4080,11 @@ class MockCreateEventViewModel extends _i2.Mock @override String get eventEndType => (super.noSuchMethod( Invocation.getter(#eventEndType), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#eventEndType), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#eventEndType), ), @@ -4027,11 +4102,11 @@ class MockCreateEventViewModel extends _i2.Mock @override String get frequency => (super.noSuchMethod( Invocation.getter(#frequency), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#frequency), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#frequency), ), @@ -4100,11 +4175,11 @@ class MockCreateEventViewModel extends _i2.Mock @override String get recurrenceLabel => (super.noSuchMethod( Invocation.getter(#recurrenceLabel), - returnValue: _i18.dummyValue( + returnValue: _i19.dummyValue( this, Invocation.getter(#recurrenceLabel), ), - returnValueForMissingStub: _i18.dummyValue( + returnValueForMissingStub: _i19.dummyValue( this, Invocation.getter(#recurrenceLabel), ), @@ -4179,11 +4254,11 @@ class MockCreateEventViewModel extends _i2.Mock ) as Map); @override - _i14.ViewState get state => (super.noSuchMethod( + _i15.ViewState get state => (super.noSuchMethod( Invocation.getter(#state), - returnValue: _i14.ViewState.idle, - returnValueForMissingStub: _i14.ViewState.idle, - ) as _i14.ViewState); + returnValue: _i15.ViewState.idle, + returnValueForMissingStub: _i15.ViewState.idle, + ) as _i15.ViewState); @override bool get isBusy => (super.noSuchMethod( @@ -4209,26 +4284,26 @@ class MockCreateEventViewModel extends _i2.Mock ); @override - _i5.Future createEvent() => (super.noSuchMethod( + _i6.Future createEvent() => (super.noSuchMethod( Invocation.method( #createEvent, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future getImageFromGallery({bool? camera = false}) => + _i6.Future getImageFromGallery({bool? camera = false}) => (super.noSuchMethod( Invocation.method( #getImageFromGallery, [], {#camera: camera}, ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override void removeImage() => super.noSuchMethod( @@ -4240,15 +4315,15 @@ class MockCreateEventViewModel extends _i2.Mock ); @override - _i5.Future> getCurrentOrgUsersList() => (super.noSuchMethod( + _i6.Future> getCurrentOrgUsersList() => (super.noSuchMethod( Invocation.method( #getCurrentOrgUsersList, [], ), - returnValue: _i5.Future>.value(<_i7.User>[]), + returnValue: _i6.Future>.value(<_i7.User>[]), returnValueForMissingStub: - _i5.Future>.value(<_i7.User>[]), - ) as _i5.Future>); + _i6.Future>.value(<_i7.User>[]), + ) as _i6.Future>); @override void buildUserList() => super.noSuchMethod( @@ -4279,18 +4354,18 @@ class MockCreateEventViewModel extends _i2.Mock ); @override - _i5.Future> fetchVenues() => (super.noSuchMethod( + _i6.Future> fetchVenues() => (super.noSuchMethod( Invocation.method( #fetchVenues, [], ), - returnValue: _i5.Future>.value(<_i39.Venue>[]), + returnValue: _i6.Future>.value(<_i40.Venue>[]), returnValueForMissingStub: - _i5.Future>.value(<_i39.Venue>[]), - ) as _i5.Future>); + _i6.Future>.value(<_i40.Venue>[]), + ) as _i6.Future>); @override - void setState(_i14.ViewState? viewState) => super.noSuchMethod( + void setState(_i15.ViewState? viewState) => super.noSuchMethod( Invocation.method( #setState, [viewState], @@ -4339,7 +4414,7 @@ class MockCreateEventViewModel extends _i2.Mock /// /// See the documentation for Mockito's code generation for more information. class MockDirectChatViewModel extends _i2.Mock - implements _i40.DirectChatViewModel { + implements _i41.DirectChatViewModel { @override _i1.GlobalKey<_i1.AnimatedListState> get listKey => (super.noSuchMethod( Invocation.getter(#listKey), @@ -4354,14 +4429,14 @@ class MockDirectChatViewModel extends _i2.Mock ) as _i1.GlobalKey<_i1.AnimatedListState>); @override - _i14.ChatState get chatState => (super.noSuchMethod( + _i15.ChatState get chatState => (super.noSuchMethod( Invocation.getter(#chatState), - returnValue: _i14.ChatState.initial, - returnValueForMissingStub: _i14.ChatState.initial, - ) as _i14.ChatState); + returnValue: _i15.ChatState.initial, + returnValueForMissingStub: _i15.ChatState.initial, + ) as _i15.ChatState); @override - set chatState(_i14.ChatState? _chatState) => super.noSuchMethod( + set chatState(_i15.ChatState? _chatState) => super.noSuchMethod( Invocation.setter( #chatState, _chatState, @@ -4379,26 +4454,26 @@ class MockDirectChatViewModel extends _i2.Mock ); @override - List<_i24.ChatListTileDataModel> get chats => (super.noSuchMethod( + List<_i25.ChatListTileDataModel> get chats => (super.noSuchMethod( Invocation.getter(#chats), - returnValue: <_i24.ChatListTileDataModel>[], - returnValueForMissingStub: <_i24.ChatListTileDataModel>[], - ) as List<_i24.ChatListTileDataModel>); + returnValue: <_i25.ChatListTileDataModel>[], + returnValueForMissingStub: <_i25.ChatListTileDataModel>[], + ) as List<_i25.ChatListTileDataModel>); @override - Map> get chatMessagesByUser => + Map> get chatMessagesByUser => (super.noSuchMethod( Invocation.getter(#chatMessagesByUser), - returnValue: >{}, - returnValueForMissingStub: >{}, - ) as Map>); + returnValue: >{}, + returnValueForMissingStub: >{}, + ) as Map>); @override - _i14.ViewState get state => (super.noSuchMethod( + _i15.ViewState get state => (super.noSuchMethod( Invocation.getter(#state), - returnValue: _i14.ViewState.idle, - returnValueForMissingStub: _i14.ViewState.idle, - ) as _i14.ViewState); + returnValue: _i15.ViewState.idle, + returnValueForMissingStub: _i15.ViewState.idle, + ) as _i15.ViewState); @override bool get isBusy => (super.noSuchMethod( @@ -4424,27 +4499,27 @@ class MockDirectChatViewModel extends _i2.Mock ); @override - _i5.Future initialise() => (super.noSuchMethod( + _i6.Future initialise() => (super.noSuchMethod( Invocation.method( #initialise, [], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future getChatMessages(String? chatId) => (super.noSuchMethod( + _i6.Future getChatMessages(String? chatId) => (super.noSuchMethod( Invocation.method( #getChatMessages, [chatId], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override - _i5.Future sendMessageToDirectChat( + _i6.Future sendMessageToDirectChat( String? chatId, String? messageContent, ) => @@ -4456,9 +4531,9 @@ class MockDirectChatViewModel extends _i2.Mock messageContent, ], ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); @override void dispose() => super.noSuchMethod( @@ -4479,7 +4554,7 @@ class MockDirectChatViewModel extends _i2.Mock ); @override - void setState(_i14.ViewState? viewState) => super.noSuchMethod( + void setState(_i15.ViewState? viewState) => super.noSuchMethod( Invocation.method( #setState, [viewState], @@ -4518,16 +4593,16 @@ class MockDirectChatViewModel extends _i2.Mock /// A class which mocks [ImageCropper]. /// /// See the documentation for Mockito's code generation for more information. -class MockImageCropper extends _i2.Mock implements _i41.ImageCropper { +class MockImageCropper extends _i2.Mock implements _i42.ImageCropper { @override - _i5.Future<_i42.CroppedFile?> cropImage({ + _i6.Future<_i43.CroppedFile?> cropImage({ required String? sourcePath, int? maxWidth, int? maxHeight, - _i42.CropAspectRatio? aspectRatio, - _i42.ImageCompressFormat? compressFormat = _i42.ImageCompressFormat.jpg, + _i43.CropAspectRatio? aspectRatio, + _i43.ImageCompressFormat? compressFormat = _i43.ImageCompressFormat.jpg, int? compressQuality = 90, - List<_i42.PlatformUiSettings>? uiSettings, + List<_i43.PlatformUiSettings>? uiSettings, }) => (super.noSuchMethod( Invocation.method( @@ -4543,32 +4618,32 @@ class MockImageCropper extends _i2.Mock implements _i41.ImageCropper { #uiSettings: uiSettings, }, ), - returnValue: _i5.Future<_i42.CroppedFile?>.value(), - returnValueForMissingStub: _i5.Future<_i42.CroppedFile?>.value(), - ) as _i5.Future<_i42.CroppedFile?>); + returnValue: _i6.Future<_i43.CroppedFile?>.value(), + returnValueForMissingStub: _i6.Future<_i43.CroppedFile?>.value(), + ) as _i6.Future<_i43.CroppedFile?>); @override - _i5.Future<_i42.CroppedFile?> recoverImage() => (super.noSuchMethod( + _i6.Future<_i43.CroppedFile?> recoverImage() => (super.noSuchMethod( Invocation.method( #recoverImage, [], ), - returnValue: _i5.Future<_i42.CroppedFile?>.value(), - returnValueForMissingStub: _i5.Future<_i42.CroppedFile?>.value(), - ) as _i5.Future<_i42.CroppedFile?>); + returnValue: _i6.Future<_i43.CroppedFile?>.value(), + returnValueForMissingStub: _i6.Future<_i43.CroppedFile?>.value(), + ) as _i6.Future<_i43.CroppedFile?>); } /// A class which mocks [ImagePicker]. /// /// See the documentation for Mockito's code generation for more information. -class MockImagePicker extends _i2.Mock implements _i13.ImagePicker { +class MockImagePicker extends _i2.Mock implements _i14.ImagePicker { @override - _i5.Future<_i13.XFile?> pickImage({ - required _i13.ImageSource? source, + _i6.Future<_i14.XFile?> pickImage({ + required _i14.ImageSource? source, double? maxWidth, double? maxHeight, int? imageQuality, - _i13.CameraDevice? preferredCameraDevice = _i13.CameraDevice.rear, + _i14.CameraDevice? preferredCameraDevice = _i14.CameraDevice.rear, bool? requestFullMetadata = true, }) => (super.noSuchMethod( @@ -4584,12 +4659,12 @@ class MockImagePicker extends _i2.Mock implements _i13.ImagePicker { #requestFullMetadata: requestFullMetadata, }, ), - returnValue: _i5.Future<_i13.XFile?>.value(), - returnValueForMissingStub: _i5.Future<_i13.XFile?>.value(), - ) as _i5.Future<_i13.XFile?>); + returnValue: _i6.Future<_i14.XFile?>.value(), + returnValueForMissingStub: _i6.Future<_i14.XFile?>.value(), + ) as _i6.Future<_i14.XFile?>); @override - _i5.Future> pickMultiImage({ + _i6.Future> pickMultiImage({ double? maxWidth, double? maxHeight, int? imageQuality, @@ -4608,13 +4683,13 @@ class MockImagePicker extends _i2.Mock implements _i13.ImagePicker { #requestFullMetadata: requestFullMetadata, }, ), - returnValue: _i5.Future>.value(<_i13.XFile>[]), + returnValue: _i6.Future>.value(<_i14.XFile>[]), returnValueForMissingStub: - _i5.Future>.value(<_i13.XFile>[]), - ) as _i5.Future>); + _i6.Future>.value(<_i14.XFile>[]), + ) as _i6.Future>); @override - _i5.Future<_i13.XFile?> pickMedia({ + _i6.Future<_i14.XFile?> pickMedia({ double? maxWidth, double? maxHeight, int? imageQuality, @@ -4631,12 +4706,12 @@ class MockImagePicker extends _i2.Mock implements _i13.ImagePicker { #requestFullMetadata: requestFullMetadata, }, ), - returnValue: _i5.Future<_i13.XFile?>.value(), - returnValueForMissingStub: _i5.Future<_i13.XFile?>.value(), - ) as _i5.Future<_i13.XFile?>); + returnValue: _i6.Future<_i14.XFile?>.value(), + returnValueForMissingStub: _i6.Future<_i14.XFile?>.value(), + ) as _i6.Future<_i14.XFile?>); @override - _i5.Future> pickMultipleMedia({ + _i6.Future> pickMultipleMedia({ double? maxWidth, double? maxHeight, int? imageQuality, @@ -4655,15 +4730,15 @@ class MockImagePicker extends _i2.Mock implements _i13.ImagePicker { #requestFullMetadata: requestFullMetadata, }, ), - returnValue: _i5.Future>.value(<_i13.XFile>[]), + returnValue: _i6.Future>.value(<_i14.XFile>[]), returnValueForMissingStub: - _i5.Future>.value(<_i13.XFile>[]), - ) as _i5.Future>); + _i6.Future>.value(<_i14.XFile>[]), + ) as _i6.Future>); @override - _i5.Future<_i13.XFile?> pickVideo({ - required _i13.ImageSource? source, - _i13.CameraDevice? preferredCameraDevice = _i13.CameraDevice.rear, + _i6.Future<_i14.XFile?> pickVideo({ + required _i14.ImageSource? source, + _i14.CameraDevice? preferredCameraDevice = _i14.CameraDevice.rear, Duration? maxDuration, }) => (super.noSuchMethod( @@ -4676,18 +4751,18 @@ class MockImagePicker extends _i2.Mock implements _i13.ImagePicker { #maxDuration: maxDuration, }, ), - returnValue: _i5.Future<_i13.XFile?>.value(), - returnValueForMissingStub: _i5.Future<_i13.XFile?>.value(), - ) as _i5.Future<_i13.XFile?>); + returnValue: _i6.Future<_i14.XFile?>.value(), + returnValueForMissingStub: _i6.Future<_i14.XFile?>.value(), + ) as _i6.Future<_i14.XFile?>); @override - _i5.Future<_i13.LostDataResponse> retrieveLostData() => (super.noSuchMethod( + _i6.Future<_i14.LostDataResponse> retrieveLostData() => (super.noSuchMethod( Invocation.method( #retrieveLostData, [], ), returnValue: - _i5.Future<_i13.LostDataResponse>.value(_FakeLostDataResponse_24( + _i6.Future<_i14.LostDataResponse>.value(_FakeLostDataResponse_25( this, Invocation.method( #retrieveLostData, @@ -4695,17 +4770,17 @@ class MockImagePicker extends _i2.Mock implements _i13.ImagePicker { ), )), returnValueForMissingStub: - _i5.Future<_i13.LostDataResponse>.value(_FakeLostDataResponse_24( + _i6.Future<_i14.LostDataResponse>.value(_FakeLostDataResponse_25( this, Invocation.method( #retrieveLostData, [], ), )), - ) as _i5.Future<_i13.LostDataResponse>); + ) as _i6.Future<_i14.LostDataResponse>); @override - bool supportsImageSource(_i13.ImageSource? source) => (super.noSuchMethod( + bool supportsImageSource(_i14.ImageSource? source) => (super.noSuchMethod( Invocation.method( #supportsImageSource, [source], diff --git a/test/view_model_tests/pre_auth_view_models/set_url_view_model_test.dart b/test/view_model_tests/pre_auth_view_models/set_url_view_model_test.dart index c7640a9fe7..c75c3ca431 100644 --- a/test/view_model_tests/pre_auth_view_models/set_url_view_model_test.dart +++ b/test/view_model_tests/pre_auth_view_models/set_url_view_model_test.dart @@ -4,7 +4,7 @@ import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:hive/hive.dart'; import 'package:mockito/mockito.dart'; -import 'package:qr_code_scanner/qr_code_scanner.dart'; +import 'package:qr_code_scanner_plus/qr_code_scanner_plus.dart'; import 'package:qr_flutter/qr_flutter.dart'; import 'package:talawa/constants/custom_theme.dart'; import 'package:talawa/enums/enums.dart'; diff --git a/test/views/after_auth_screens/events/manage_agenda_items_screen_test.dart b/test/views/after_auth_screens/events/manage_agenda_items_screen_test.dart index 93ab85ce1a..7007a04bb0 100644 --- a/test/views/after_auth_screens/events/manage_agenda_items_screen_test.dart +++ b/test/views/after_auth_screens/events/manage_agenda_items_screen_test.dart @@ -305,7 +305,7 @@ void main() { // Verify toast styling final ToastCard toastCard = tester.widget(find.byType(ToastCard)); - expect(toastCard.color, Colors.black.withOpacity(0.8)); + expect(toastCard.color, Colors.black.withAlpha((0.8 * 255).toInt())); // Wait for auto-dismiss await tester.pump(const Duration(seconds: 2)); diff --git a/test/views/after_auth_screens/join_org_after_auth_test/join_organisation_after_auth_test.dart b/test/views/after_auth_screens/join_org_after_auth_test/join_organisation_after_auth_test.dart index c2ac420362..cf24e08b30 100644 --- a/test/views/after_auth_screens/join_org_after_auth_test/join_organisation_after_auth_test.dart +++ b/test/views/after_auth_screens/join_org_after_auth_test/join_organisation_after_auth_test.dart @@ -5,7 +5,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; -import 'package:qr_code_scanner/qr_code_scanner.dart'; +import 'package:qr_code_scanner_plus/qr_code_scanner_plus.dart'; import 'package:talawa/enums/enums.dart'; import 'package:talawa/models/organization/org_info.dart'; import 'package:talawa/models/user/user_info.dart'; diff --git a/test/widget_tests/pre_auth_screens/select_language_page_test.dart b/test/widget_tests/pre_auth_screens/select_language_page_test.dart index 9b762034f1..a8be535ab4 100644 --- a/test/widget_tests/pre_auth_screens/select_language_page_test.dart +++ b/test/widget_tests/pre_auth_screens/select_language_page_test.dart @@ -151,7 +151,9 @@ Future main() async { expect( (tester.firstWidget(findAppNameWidget) as Container).decoration, - BoxDecoration(color: const Color(0xFFC4C4C4).withOpacity(0.15)), + BoxDecoration( + color: const Color(0xFFC4C4C4).withAlpha((0.15 * 255).toInt()), + ), ); }); testWidgets("Testing to navigate to MainScreen", (tester) async { @@ -255,7 +257,9 @@ Future main() async { expect( (tester.firstWidget(findAppNameWidget) as Container).decoration, - BoxDecoration(color: const Color(0xFFC4C4C4).withOpacity(0.15)), + BoxDecoration( + color: const Color(0xFFC4C4C4).withAlpha((0.15 * 255).toInt()), + ), ); }); testWidgets("Testing to select and navigate button appears", diff --git a/test/widget_tests/pre_auth_screens/set_url_page_test.dart b/test/widget_tests/pre_auth_screens/set_url_page_test.dart index 8633a7dd24..ec508bd12b 100644 --- a/test/widget_tests/pre_auth_screens/set_url_page_test.dart +++ b/test/widget_tests/pre_auth_screens/set_url_page_test.dart @@ -3,7 +3,7 @@ import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; import 'package:provider/provider.dart'; -import 'package:qr_code_scanner/qr_code_scanner.dart'; +import 'package:qr_code_scanner_plus/qr_code_scanner_plus.dart'; import 'package:talawa/constants/custom_theme.dart'; import 'package:talawa/locator.dart'; import 'package:talawa/router.dart' as router; diff --git a/test/widget_tests/pre_auth_screens/signup_progress_indicator_test.dart b/test/widget_tests/pre_auth_screens/signup_progress_indicator_test.dart index 3dab9721d5..611c6836c0 100644 --- a/test/widget_tests/pre_auth_screens/signup_progress_indicator_test.dart +++ b/test/widget_tests/pre_auth_screens/signup_progress_indicator_test.dart @@ -7,7 +7,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:talawa/services/size_config.dart'; import 'package:talawa/utils/app_localization.dart'; import 'package:talawa/widgets/signup_progress_indicator.dart'; -import 'package:timelines/timelines.dart'; +import 'package:timelines_plus/timelines_plus.dart'; Widget createSignupProgressIndicator() { return MaterialApp( diff --git a/test/widget_tests/widgets/agenda_item_tile_test.dart b/test/widget_tests/widgets/agenda_item_tile_test.dart index e0aed941b2..5e06cb6a22 100644 --- a/test/widget_tests/widgets/agenda_item_tile_test.dart +++ b/test/widget_tests/widgets/agenda_item_tile_test.dart @@ -347,7 +347,7 @@ void main() { find.byWidgetPredicate( (widget) => widget is ColoredBox && - widget.color == Colors.black.withOpacity(0.5), + widget.color == Colors.black.withAlpha((0.5 * 255).toInt()), ), findsOneWidget, ); diff --git a/test/widget_tests/widgets/custom_avatar_test.dart b/test/widget_tests/widgets/custom_avatar_test.dart index 79419bf510..a4d2db2d7b 100644 --- a/test/widget_tests/widgets/custom_avatar_test.dart +++ b/test/widget_tests/widgets/custom_avatar_test.dart @@ -134,7 +134,7 @@ void main() { Theme.of(tester.element(circleAvatarFinder)) .iconTheme .color! - .withOpacity(0.2), + .withAlpha((0.2 * 255).toInt()), ); }); @@ -322,7 +322,7 @@ void main() { Theme.of(widgetTester.binding.rootElement!) .iconTheme .color! - .withOpacity(0.2), + .withAlpha((0.2 * 255).toInt()), ), findsOneWidget, );