Initial commit
This commit is contained in:
parent
1713a8957a
commit
15d40d1a4d
|
|
@ -1,10 +1,8 @@
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
|
||||||
<application
|
<application
|
||||||
android:label="Yimaru"
|
android:label="yimaru_app"
|
||||||
android:name="${applicationName}"
|
android:name="${applicationName}"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher">
|
||||||
android:usesCleartextTraffic="true">
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -8,11 +8,9 @@ import Foundation
|
||||||
import battery_plus
|
import battery_plus
|
||||||
import connectivity_plus
|
import connectivity_plus
|
||||||
import flutter_secure_storage_darwin
|
import flutter_secure_storage_darwin
|
||||||
import path_provider_foundation
|
|
||||||
|
|
||||||
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
||||||
BatteryPlusMacosPlugin.register(with: registry.registrar(forPlugin: "BatteryPlusMacosPlugin"))
|
BatteryPlusMacosPlugin.register(with: registry.registrar(forPlugin: "BatteryPlusMacosPlugin"))
|
||||||
ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin"))
|
ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin"))
|
||||||
FlutterSecureStorageDarwinPlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStorageDarwinPlugin"))
|
FlutterSecureStorageDarwinPlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStorageDarwinPlugin"))
|
||||||
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@ PRODUCT_NAME = yimaru_app
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.yimaruApp
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.yimaruApp
|
||||||
|
|
||||||
// The copyright displayed in application information
|
// The copyright displayed in application information
|
||||||
PRODUCT_COPYRIGHT = Copyright © 2025 com.example. All rights reserved.
|
PRODUCT_COPYRIGHT = Copyright © 2026 com.example. All rights reserved.
|
||||||
|
|
|
||||||
|
|
@ -53,10 +53,10 @@ packages:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: bloc
|
name: bloc
|
||||||
sha256: a2cebb899f91d36eeeaa55c7b20b5915db5a9df1b8fd4a3c9c825e22e474537d
|
sha256: a48653a82055a900b88cd35f92429f068c5a8057ae9b136d197b3d56c57efb81
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "9.1.0"
|
version: "9.2.0"
|
||||||
boolean_selector:
|
boolean_selector:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -125,10 +125,10 @@ packages:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: built_value
|
name: built_value
|
||||||
sha256: "426cf75afdb23aa74bd4e471704de3f9393f3c7b04c1e2d9c6f1073ae0b8b139"
|
sha256: "7931c90b84bc573fef103548e354258ae4c9d28d140e41961df6843c5d60d4d8"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "8.12.1"
|
version: "8.12.3"
|
||||||
characters:
|
characters:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -153,14 +153,22 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.2"
|
version: "1.1.2"
|
||||||
|
code_assets:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: code_assets
|
||||||
|
sha256: "83ccdaa064c980b5596c35dd64a8d3ecc68620174ab9b90b6343b753aa721687"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.0"
|
||||||
code_builder:
|
code_builder:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: code_builder
|
name: code_builder
|
||||||
sha256: "11654819532ba94c34de52ff5feb52bd81cba1de00ef2ed622fd50295f9d4243"
|
sha256: "6a6cab2ba4680d6423f34a9b972a4c9a94ebe1b62ecec4e1a1f2cba91fd1319d"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.11.0"
|
version: "4.11.1"
|
||||||
collection:
|
collection:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -261,10 +269,10 @@ packages:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: equatable
|
name: equatable
|
||||||
sha256: "567c64b3cb4cf82397aac55f4f0cbd3ca20d77c6c03bedbc4ceaddc08904aef7"
|
sha256: "3e0141505477fd8ad55d6eb4e7776d3fe8430be8e497ccb1521370c3f21a3e2b"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.7"
|
version: "2.0.8"
|
||||||
fake_async:
|
fake_async:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -456,6 +464,14 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.3.2"
|
version: "2.3.2"
|
||||||
|
hooks:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: hooks
|
||||||
|
sha256: "5d309c86e7ce34cd8e37aa71cb30cb652d3829b900ab145e4d9da564b31d59f7"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.0"
|
||||||
html:
|
html:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -656,6 +672,14 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "5.4.4"
|
version: "5.4.4"
|
||||||
|
native_toolchain_c:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: native_toolchain_c
|
||||||
|
sha256: "89e83885ba09da5fdf2cdacc8002a712ca238c28b7f717910b34bcd27b0d03ac"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.17.4"
|
||||||
nested:
|
nested:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -672,6 +696,14 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.5.0"
|
version: "0.5.0"
|
||||||
|
objective_c:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: objective_c
|
||||||
|
sha256: "9922a1ad59ac5afb154cc948aa6ded01987a75003651d0a2866afc23f4da624e"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "9.2.3"
|
||||||
omni_datetime_picker:
|
omni_datetime_picker:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|
@ -724,10 +756,10 @@ packages:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: path_provider_foundation
|
name: path_provider_foundation
|
||||||
sha256: "6d13aece7b3f5c5a9731eaf553ff9dcbc2eff41087fd2df587fd0fed9a3eb0c4"
|
sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.5.1"
|
version: "2.6.0"
|
||||||
path_provider_linux:
|
path_provider_linux:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -1065,10 +1097,10 @@ packages:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: watcher
|
name: watcher
|
||||||
sha256: f52385d4f73589977c80797e60fe51014f7f2b957b5e9a62c3f6ada439889249
|
sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.2.1"
|
||||||
web:
|
web:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -1126,5 +1158,5 @@ packages:
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.3"
|
version: "3.1.3"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=3.9.0 <4.0.0"
|
dart: ">=3.10.3 <4.0.0"
|
||||||
flutter: ">=3.35.0"
|
flutter: ">=3.38.4"
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,6 @@ import 'package:mockito/annotations.dart';
|
||||||
import 'package:mockito/mockito.dart';
|
import 'package:mockito/mockito.dart';
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
import 'package:yimaru_app/app/app.locator.dart';
|
||||||
import 'package:stacked_services/stacked_services.dart';
|
import 'package:stacked_services/stacked_services.dart';
|
||||||
import 'package:yimaru_app/services/authentication_service.dart';
|
|
||||||
import 'package:yimaru_app/services/api_service.dart';
|
|
||||||
import 'package:yimaru_app/services/secure_storage_service.dart';
|
|
||||||
import 'package:yimaru_app/services/dio_service.dart';
|
|
||||||
import 'package:yimaru_app/services/status_checker_service.dart';
|
|
||||||
// @stacked-import
|
// @stacked-import
|
||||||
|
|
||||||
import 'test_helpers.mocks.dart';
|
import 'test_helpers.mocks.dart';
|
||||||
|
|
@ -17,24 +12,14 @@ import 'test_helpers.mocks.dart';
|
||||||
MockSpec<NavigationService>(onMissingStub: OnMissingStub.returnDefault),
|
MockSpec<NavigationService>(onMissingStub: OnMissingStub.returnDefault),
|
||||||
MockSpec<BottomSheetService>(onMissingStub: OnMissingStub.returnDefault),
|
MockSpec<BottomSheetService>(onMissingStub: OnMissingStub.returnDefault),
|
||||||
MockSpec<DialogService>(onMissingStub: OnMissingStub.returnDefault),
|
MockSpec<DialogService>(onMissingStub: OnMissingStub.returnDefault),
|
||||||
MockSpec<AuthenticationService>(onMissingStub: OnMissingStub.returnDefault),
|
// @stacked-mock-spec
|
||||||
MockSpec<ApiService>(onMissingStub: OnMissingStub.returnDefault),
|
|
||||||
MockSpec<SecureStorageService>(onMissingStub: OnMissingStub.returnDefault),
|
|
||||||
MockSpec<DioService>(onMissingStub: OnMissingStub.returnDefault),
|
|
||||||
MockSpec<StatusCheckerService>(onMissingStub: OnMissingStub.returnDefault),
|
|
||||||
// @stacked-mock-spec
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
void registerServices() {
|
void registerServices() {
|
||||||
getAndRegisterNavigationService();
|
getAndRegisterNavigationService();
|
||||||
getAndRegisterBottomSheetService();
|
getAndRegisterBottomSheetService();
|
||||||
getAndRegisterDialogService();
|
getAndRegisterDialogService();
|
||||||
getAndRegisterAuthenticationService();
|
// @stacked-mock-register
|
||||||
getAndRegisterApiService();
|
|
||||||
getAndRegisterSecureStorageService();
|
|
||||||
getAndRegisterDioService();
|
|
||||||
getAndRegisterStatusCheckerService();
|
|
||||||
// @stacked-mock-register
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MockNavigationService getAndRegisterNavigationService() {
|
MockNavigationService getAndRegisterNavigationService() {
|
||||||
|
|
@ -91,40 +76,6 @@ MockDialogService getAndRegisterDialogService() {
|
||||||
return service;
|
return service;
|
||||||
}
|
}
|
||||||
|
|
||||||
MockAuthenticationService getAndRegisterAuthenticationService() {
|
|
||||||
_removeRegistrationIfExists<AuthenticationService>();
|
|
||||||
final service = MockAuthenticationService();
|
|
||||||
locator.registerSingleton<AuthenticationService>(service);
|
|
||||||
return service;
|
|
||||||
}
|
|
||||||
|
|
||||||
MockApiService getAndRegisterApiService() {
|
|
||||||
_removeRegistrationIfExists<ApiService>();
|
|
||||||
final service = MockApiService();
|
|
||||||
locator.registerSingleton<ApiService>(service);
|
|
||||||
return service;
|
|
||||||
}
|
|
||||||
|
|
||||||
MockSecureStorageService getAndRegisterSecureStorageService() {
|
|
||||||
_removeRegistrationIfExists<SecureStorageService>();
|
|
||||||
final service = MockSecureStorageService();
|
|
||||||
locator.registerSingleton<SecureStorageService>(service);
|
|
||||||
return service;
|
|
||||||
}
|
|
||||||
|
|
||||||
MockDioService getAndRegisterDioService() {
|
|
||||||
_removeRegistrationIfExists<DioService>();
|
|
||||||
final service = MockDioService();
|
|
||||||
locator.registerSingleton<DioService>(service);
|
|
||||||
return service;
|
|
||||||
}
|
|
||||||
|
|
||||||
MockStatusCheckerService getAndRegisterStatusCheckerService() {
|
|
||||||
_removeRegistrationIfExists<StatusCheckerService>();
|
|
||||||
final service = MockStatusCheckerService();
|
|
||||||
locator.registerSingleton<StatusCheckerService>(service);
|
|
||||||
return service;
|
|
||||||
}
|
|
||||||
// @stacked-mock-create
|
// @stacked-mock-create
|
||||||
|
|
||||||
void _removeRegistrationIfExists<T extends Object>() {
|
void _removeRegistrationIfExists<T extends Object>() {
|
||||||
|
|
|
||||||
|
|
@ -3,21 +3,13 @@
|
||||||
// Do not manually edit this file.
|
// Do not manually edit this file.
|
||||||
|
|
||||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||||
import 'dart:async' as _i8;
|
import 'dart:async' as _i5;
|
||||||
import 'dart:ui' as _i9;
|
import 'dart:ui' as _i6;
|
||||||
|
|
||||||
import 'package:dio/dio.dart' as _i3;
|
import 'package:flutter/material.dart' as _i4;
|
||||||
import 'package:flutter/material.dart' as _i7;
|
|
||||||
import 'package:mockito/mockito.dart' as _i1;
|
import 'package:mockito/mockito.dart' as _i1;
|
||||||
import 'package:mockito/src/dummies.dart' as _i6;
|
import 'package:mockito/src/dummies.dart' as _i3;
|
||||||
import 'package:stacked_services/stacked_services.dart' as _i5;
|
import 'package:stacked_services/stacked_services.dart' as _i2;
|
||||||
import 'package:yimaru_app/models/assessment.dart' as _i12;
|
|
||||||
import 'package:yimaru_app/models/user_model.dart' as _i2;
|
|
||||||
import 'package:yimaru_app/services/api_service.dart' as _i11;
|
|
||||||
import 'package:yimaru_app/services/authentication_service.dart' as _i10;
|
|
||||||
import 'package:yimaru_app/services/dio_service.dart' as _i13;
|
|
||||||
import 'package:yimaru_app/services/secure_storage_service.dart' as _i4;
|
|
||||||
import 'package:yimaru_app/services/status_checker_service.dart' as _i14;
|
|
||||||
|
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: avoid_redundant_argument_values
|
// ignore_for_file: avoid_redundant_argument_values
|
||||||
|
|
@ -32,49 +24,18 @@ import 'package:yimaru_app/services/status_checker_service.dart' as _i14;
|
||||||
// ignore_for_file: camel_case_types
|
// ignore_for_file: camel_case_types
|
||||||
// ignore_for_file: subtype_of_sealed_class
|
// ignore_for_file: subtype_of_sealed_class
|
||||||
|
|
||||||
class _FakeUserModel_0 extends _i1.SmartFake implements _i2.UserModel {
|
|
||||||
_FakeUserModel_0(
|
|
||||||
Object parent,
|
|
||||||
Invocation parentInvocation,
|
|
||||||
) : super(
|
|
||||||
parent,
|
|
||||||
parentInvocation,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
class _FakeDio_1 extends _i1.SmartFake implements _i3.Dio {
|
|
||||||
_FakeDio_1(
|
|
||||||
Object parent,
|
|
||||||
Invocation parentInvocation,
|
|
||||||
) : super(
|
|
||||||
parent,
|
|
||||||
parentInvocation,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
class _FakeSecureStorageService_2 extends _i1.SmartFake
|
|
||||||
implements _i4.SecureStorageService {
|
|
||||||
_FakeSecureStorageService_2(
|
|
||||||
Object parent,
|
|
||||||
Invocation parentInvocation,
|
|
||||||
) : super(
|
|
||||||
parent,
|
|
||||||
parentInvocation,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A class which mocks [NavigationService].
|
/// A class which mocks [NavigationService].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
class MockNavigationService extends _i1.Mock implements _i2.NavigationService {
|
||||||
@override
|
@override
|
||||||
String get previousRoute => (super.noSuchMethod(
|
String get previousRoute => (super.noSuchMethod(
|
||||||
Invocation.getter(#previousRoute),
|
Invocation.getter(#previousRoute),
|
||||||
returnValue: _i6.dummyValue<String>(
|
returnValue: _i3.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#previousRoute),
|
Invocation.getter(#previousRoute),
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: _i6.dummyValue<String>(
|
returnValueForMissingStub: _i3.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#previousRoute),
|
Invocation.getter(#previousRoute),
|
||||||
),
|
),
|
||||||
|
|
@ -83,25 +44,25 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
@override
|
@override
|
||||||
String get currentRoute => (super.noSuchMethod(
|
String get currentRoute => (super.noSuchMethod(
|
||||||
Invocation.getter(#currentRoute),
|
Invocation.getter(#currentRoute),
|
||||||
returnValue: _i6.dummyValue<String>(
|
returnValue: _i3.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#currentRoute),
|
Invocation.getter(#currentRoute),
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: _i6.dummyValue<String>(
|
returnValueForMissingStub: _i3.dummyValue<String>(
|
||||||
this,
|
this,
|
||||||
Invocation.getter(#currentRoute),
|
Invocation.getter(#currentRoute),
|
||||||
),
|
),
|
||||||
) as String);
|
) as String);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i7.GlobalKey<_i7.NavigatorState>? nestedNavigationKey(int? index) =>
|
_i4.GlobalKey<_i4.NavigatorState>? nestedNavigationKey(int? index) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#nestedNavigationKey,
|
#nestedNavigationKey,
|
||||||
[index],
|
[index],
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
) as _i7.GlobalKey<_i7.NavigatorState>?);
|
) as _i4.GlobalKey<_i4.NavigatorState>?);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void config({
|
void config({
|
||||||
|
|
@ -110,7 +71,7 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
bool? defaultOpaqueRoute,
|
bool? defaultOpaqueRoute,
|
||||||
Duration? defaultDurationTransition,
|
Duration? defaultDurationTransition,
|
||||||
bool? defaultGlobalState,
|
bool? defaultGlobalState,
|
||||||
_i5.Transition? defaultTransitionStyle,
|
_i2.Transition? defaultTransitionStyle,
|
||||||
String? defaultTransition,
|
String? defaultTransition,
|
||||||
}) =>
|
}) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
|
|
@ -131,18 +92,18 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<T?>? navigateWithTransition<T>(
|
_i5.Future<T?>? navigateWithTransition<T>(
|
||||||
_i7.Widget? page, {
|
_i4.Widget? page, {
|
||||||
bool? opaque,
|
bool? opaque,
|
||||||
String? transition = r'',
|
String? transition = r'',
|
||||||
Duration? duration,
|
Duration? duration,
|
||||||
bool? popGesture,
|
bool? popGesture,
|
||||||
int? id,
|
int? id,
|
||||||
_i7.Curve? curve,
|
_i4.Curve? curve,
|
||||||
bool? fullscreenDialog = false,
|
bool? fullscreenDialog = false,
|
||||||
bool? preventDuplicates = true,
|
bool? preventDuplicates = true,
|
||||||
_i5.Transition? transitionClass,
|
_i2.Transition? transitionClass,
|
||||||
_i5.Transition? transitionStyle,
|
_i2.Transition? transitionStyle,
|
||||||
String? routeName,
|
String? routeName,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
|
@ -164,21 +125,21 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
) as _i8.Future<T?>?);
|
) as _i5.Future<T?>?);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<T?>? replaceWithTransition<T>(
|
_i5.Future<T?>? replaceWithTransition<T>(
|
||||||
_i7.Widget? page, {
|
_i4.Widget? page, {
|
||||||
bool? opaque,
|
bool? opaque,
|
||||||
String? transition = r'',
|
String? transition = r'',
|
||||||
Duration? duration,
|
Duration? duration,
|
||||||
bool? popGesture,
|
bool? popGesture,
|
||||||
int? id,
|
int? id,
|
||||||
_i7.Curve? curve,
|
_i4.Curve? curve,
|
||||||
bool? fullscreenDialog = false,
|
bool? fullscreenDialog = false,
|
||||||
bool? preventDuplicates = true,
|
bool? preventDuplicates = true,
|
||||||
_i5.Transition? transitionClass,
|
_i2.Transition? transitionClass,
|
||||||
_i5.Transition? transitionStyle,
|
_i2.Transition? transitionStyle,
|
||||||
String? routeName,
|
String? routeName,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
|
|
@ -200,7 +161,7 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
) as _i8.Future<T?>?);
|
) as _i5.Future<T?>?);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool back<T>({
|
bool back<T>({
|
||||||
|
|
@ -222,7 +183,7 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void popUntil(
|
void popUntil(
|
||||||
_i7.RoutePredicate? predicate, {
|
_i4.RoutePredicate? predicate, {
|
||||||
int? id,
|
int? id,
|
||||||
}) =>
|
}) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
|
|
@ -244,13 +205,13 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<T?>? navigateTo<T>(
|
_i5.Future<T?>? navigateTo<T>(
|
||||||
String? routeName, {
|
String? routeName, {
|
||||||
dynamic arguments,
|
dynamic arguments,
|
||||||
int? id,
|
int? id,
|
||||||
bool? preventDuplicates = true,
|
bool? preventDuplicates = true,
|
||||||
Map<String, String>? parameters,
|
Map<String, String>? parameters,
|
||||||
_i7.RouteTransitionsBuilder? transition,
|
_i4.RouteTransitionsBuilder? transition,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
@ -265,21 +226,21 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
) as _i8.Future<T?>?);
|
) as _i5.Future<T?>?);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<T?>? navigateToView<T>(
|
_i5.Future<T?>? navigateToView<T>(
|
||||||
_i7.Widget? view, {
|
_i4.Widget? view, {
|
||||||
dynamic arguments,
|
dynamic arguments,
|
||||||
int? id,
|
int? id,
|
||||||
bool? opaque,
|
bool? opaque,
|
||||||
_i7.Curve? curve,
|
_i4.Curve? curve,
|
||||||
Duration? duration,
|
Duration? duration,
|
||||||
bool? fullscreenDialog = false,
|
bool? fullscreenDialog = false,
|
||||||
bool? popGesture,
|
bool? popGesture,
|
||||||
bool? preventDuplicates = true,
|
bool? preventDuplicates = true,
|
||||||
_i5.Transition? transition,
|
_i2.Transition? transition,
|
||||||
_i5.Transition? transitionStyle,
|
_i2.Transition? transitionStyle,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
@ -299,16 +260,16 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
) as _i8.Future<T?>?);
|
) as _i5.Future<T?>?);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<T?>? replaceWith<T>(
|
_i5.Future<T?>? replaceWith<T>(
|
||||||
String? routeName, {
|
String? routeName, {
|
||||||
dynamic arguments,
|
dynamic arguments,
|
||||||
int? id,
|
int? id,
|
||||||
bool? preventDuplicates = true,
|
bool? preventDuplicates = true,
|
||||||
Map<String, String>? parameters,
|
Map<String, String>? parameters,
|
||||||
_i7.RouteTransitionsBuilder? transition,
|
_i4.RouteTransitionsBuilder? transition,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
@ -323,10 +284,10 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
) as _i8.Future<T?>?);
|
) as _i5.Future<T?>?);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<T?>? clearStackAndShow<T>(
|
_i5.Future<T?>? clearStackAndShow<T>(
|
||||||
String? routeName, {
|
String? routeName, {
|
||||||
dynamic arguments,
|
dynamic arguments,
|
||||||
int? id,
|
int? id,
|
||||||
|
|
@ -343,11 +304,11 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
) as _i8.Future<T?>?);
|
) as _i5.Future<T?>?);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<T?>? clearStackAndShowView<T>(
|
_i5.Future<T?>? clearStackAndShowView<T>(
|
||||||
_i7.Widget? view, {
|
_i4.Widget? view, {
|
||||||
dynamic arguments,
|
dynamic arguments,
|
||||||
int? id,
|
int? id,
|
||||||
}) =>
|
}) =>
|
||||||
|
|
@ -361,10 +322,10 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
) as _i8.Future<T?>?);
|
) as _i5.Future<T?>?);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<T?>? clearTillFirstAndShow<T>(
|
_i5.Future<T?>? clearTillFirstAndShow<T>(
|
||||||
String? routeName, {
|
String? routeName, {
|
||||||
dynamic arguments,
|
dynamic arguments,
|
||||||
int? id,
|
int? id,
|
||||||
|
|
@ -383,11 +344,11 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
) as _i8.Future<T?>?);
|
) as _i5.Future<T?>?);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<T?>? clearTillFirstAndShowView<T>(
|
_i5.Future<T?>? clearTillFirstAndShowView<T>(
|
||||||
_i7.Widget? view, {
|
_i4.Widget? view, {
|
||||||
dynamic arguments,
|
dynamic arguments,
|
||||||
int? id,
|
int? id,
|
||||||
}) =>
|
}) =>
|
||||||
|
|
@ -401,12 +362,12 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
) as _i8.Future<T?>?);
|
) as _i5.Future<T?>?);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<T?>? pushNamedAndRemoveUntil<T>(
|
_i5.Future<T?>? pushNamedAndRemoveUntil<T>(
|
||||||
String? routeName, {
|
String? routeName, {
|
||||||
_i7.RoutePredicate? predicate,
|
_i4.RoutePredicate? predicate,
|
||||||
dynamic arguments,
|
dynamic arguments,
|
||||||
int? id,
|
int? id,
|
||||||
}) =>
|
}) =>
|
||||||
|
|
@ -421,16 +382,16 @@ class MockNavigationService extends _i1.Mock implements _i5.NavigationService {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
) as _i8.Future<T?>?);
|
) as _i5.Future<T?>?);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [BottomSheetService].
|
/// A class which mocks [BottomSheetService].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockBottomSheetService extends _i1.Mock
|
class MockBottomSheetService extends _i1.Mock
|
||||||
implements _i5.BottomSheetService {
|
implements _i2.BottomSheetService {
|
||||||
@override
|
@override
|
||||||
void setCustomSheetBuilders(Map<dynamic, _i5.SheetBuilder>? builders) =>
|
void setCustomSheetBuilders(Map<dynamic, _i2.SheetBuilder>? builders) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#setCustomSheetBuilders,
|
#setCustomSheetBuilders,
|
||||||
|
|
@ -440,7 +401,7 @@ class MockBottomSheetService extends _i1.Mock
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<_i5.SheetResponse<dynamic>?> showBottomSheet({
|
_i5.Future<_i2.SheetResponse<dynamic>?> showBottomSheet({
|
||||||
required String? title,
|
required String? title,
|
||||||
String? description,
|
String? description,
|
||||||
String? confirmButtonTitle = r'Ok',
|
String? confirmButtonTitle = r'Ok',
|
||||||
|
|
@ -473,13 +434,13 @@ class MockBottomSheetService extends _i1.Mock
|
||||||
#elevation: elevation,
|
#elevation: elevation,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i8.Future<_i5.SheetResponse<dynamic>?>.value(),
|
returnValue: _i5.Future<_i2.SheetResponse<dynamic>?>.value(),
|
||||||
returnValueForMissingStub:
|
returnValueForMissingStub:
|
||||||
_i8.Future<_i5.SheetResponse<dynamic>?>.value(),
|
_i5.Future<_i2.SheetResponse<dynamic>?>.value(),
|
||||||
) as _i8.Future<_i5.SheetResponse<dynamic>?>);
|
) as _i5.Future<_i2.SheetResponse<dynamic>?>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<_i5.SheetResponse<T>?> showCustomSheet<T, R>({
|
_i5.Future<_i2.SheetResponse<T>?> showCustomSheet<T, R>({
|
||||||
dynamic variant,
|
dynamic variant,
|
||||||
String? title,
|
String? title,
|
||||||
String? description,
|
String? description,
|
||||||
|
|
@ -492,7 +453,7 @@ class MockBottomSheetService extends _i1.Mock
|
||||||
bool? showIconInAdditionalButton = false,
|
bool? showIconInAdditionalButton = false,
|
||||||
String? additionalButtonTitle,
|
String? additionalButtonTitle,
|
||||||
bool? takesInput = false,
|
bool? takesInput = false,
|
||||||
_i9.Color? barrierColor = const _i9.Color(2315255808),
|
_i6.Color? barrierColor = const _i6.Color(2315255808),
|
||||||
double? elevation = 1.0,
|
double? elevation = 1.0,
|
||||||
bool? barrierDismissible = true,
|
bool? barrierDismissible = true,
|
||||||
bool? isScrollControlled = false,
|
bool? isScrollControlled = false,
|
||||||
|
|
@ -536,12 +497,12 @@ class MockBottomSheetService extends _i1.Mock
|
||||||
#useRootNavigator: useRootNavigator,
|
#useRootNavigator: useRootNavigator,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i8.Future<_i5.SheetResponse<T>?>.value(),
|
returnValue: _i5.Future<_i2.SheetResponse<T>?>.value(),
|
||||||
returnValueForMissingStub: _i8.Future<_i5.SheetResponse<T>?>.value(),
|
returnValueForMissingStub: _i5.Future<_i2.SheetResponse<T>?>.value(),
|
||||||
) as _i8.Future<_i5.SheetResponse<T>?>);
|
) as _i5.Future<_i2.SheetResponse<T>?>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void completeSheet(_i5.SheetResponse<dynamic>? response) =>
|
void completeSheet(_i2.SheetResponse<dynamic>? response) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#completeSheet,
|
#completeSheet,
|
||||||
|
|
@ -554,10 +515,10 @@ class MockBottomSheetService extends _i1.Mock
|
||||||
/// A class which mocks [DialogService].
|
/// A class which mocks [DialogService].
|
||||||
///
|
///
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
/// See the documentation for Mockito's code generation for more information.
|
||||||
class MockDialogService extends _i1.Mock implements _i5.DialogService {
|
class MockDialogService extends _i1.Mock implements _i2.DialogService {
|
||||||
@override
|
@override
|
||||||
void registerCustomDialogBuilders(
|
void registerCustomDialogBuilders(
|
||||||
Map<dynamic, _i5.DialogBuilder>? builders) =>
|
Map<dynamic, _i2.DialogBuilder>? builders) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#registerCustomDialogBuilders,
|
#registerCustomDialogBuilders,
|
||||||
|
|
@ -569,10 +530,10 @@ class MockDialogService extends _i1.Mock implements _i5.DialogService {
|
||||||
@override
|
@override
|
||||||
void registerCustomDialogBuilder({
|
void registerCustomDialogBuilder({
|
||||||
required dynamic variant,
|
required dynamic variant,
|
||||||
required _i7.Widget Function(
|
required _i4.Widget Function(
|
||||||
_i7.BuildContext,
|
_i4.BuildContext,
|
||||||
_i5.DialogRequest<dynamic>,
|
_i2.DialogRequest<dynamic>,
|
||||||
dynamic Function(_i5.DialogResponse<dynamic>),
|
dynamic Function(_i2.DialogResponse<dynamic>),
|
||||||
)? builder,
|
)? builder,
|
||||||
}) =>
|
}) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
|
|
@ -588,17 +549,17 @@ class MockDialogService extends _i1.Mock implements _i5.DialogService {
|
||||||
);
|
);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<_i5.DialogResponse<dynamic>?> showDialog({
|
_i5.Future<_i2.DialogResponse<dynamic>?> showDialog({
|
||||||
String? title,
|
String? title,
|
||||||
String? description,
|
String? description,
|
||||||
String? cancelTitle,
|
String? cancelTitle,
|
||||||
_i9.Color? cancelTitleColor,
|
_i6.Color? cancelTitleColor,
|
||||||
String? buttonTitle = r'Ok',
|
String? buttonTitle = r'Ok',
|
||||||
_i9.Color? buttonTitleColor,
|
_i6.Color? buttonTitleColor,
|
||||||
bool? barrierDismissible = false,
|
bool? barrierDismissible = false,
|
||||||
_i7.RouteSettings? routeSettings,
|
_i4.RouteSettings? routeSettings,
|
||||||
_i7.GlobalKey<_i7.NavigatorState>? navigatorKey,
|
_i4.GlobalKey<_i4.NavigatorState>? navigatorKey,
|
||||||
_i5.DialogPlatform? dialogPlatform,
|
_i2.DialogPlatform? dialogPlatform,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
@ -617,13 +578,13 @@ class MockDialogService extends _i1.Mock implements _i5.DialogService {
|
||||||
#dialogPlatform: dialogPlatform,
|
#dialogPlatform: dialogPlatform,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i8.Future<_i5.DialogResponse<dynamic>?>.value(),
|
returnValue: _i5.Future<_i2.DialogResponse<dynamic>?>.value(),
|
||||||
returnValueForMissingStub:
|
returnValueForMissingStub:
|
||||||
_i8.Future<_i5.DialogResponse<dynamic>?>.value(),
|
_i5.Future<_i2.DialogResponse<dynamic>?>.value(),
|
||||||
) as _i8.Future<_i5.DialogResponse<dynamic>?>);
|
) as _i5.Future<_i2.DialogResponse<dynamic>?>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<_i5.DialogResponse<T>?> showCustomDialog<T, R>({
|
_i5.Future<_i2.DialogResponse<T>?> showCustomDialog<T, R>({
|
||||||
dynamic variant,
|
dynamic variant,
|
||||||
String? title,
|
String? title,
|
||||||
String? description,
|
String? description,
|
||||||
|
|
@ -636,13 +597,13 @@ class MockDialogService extends _i1.Mock implements _i5.DialogService {
|
||||||
bool? showIconInAdditionalButton = false,
|
bool? showIconInAdditionalButton = false,
|
||||||
String? additionalButtonTitle,
|
String? additionalButtonTitle,
|
||||||
bool? takesInput = false,
|
bool? takesInput = false,
|
||||||
_i9.Color? barrierColor = const _i9.Color(2315255808),
|
_i6.Color? barrierColor = const _i6.Color(2315255808),
|
||||||
bool? barrierDismissible = false,
|
bool? barrierDismissible = false,
|
||||||
String? barrierLabel = r'',
|
String? barrierLabel = r'',
|
||||||
bool? useSafeArea = true,
|
bool? useSafeArea = true,
|
||||||
_i7.RouteSettings? routeSettings,
|
_i4.RouteSettings? routeSettings,
|
||||||
_i7.GlobalKey<_i7.NavigatorState>? navigatorKey,
|
_i4.GlobalKey<_i4.NavigatorState>? navigatorKey,
|
||||||
_i7.RouteTransitionsBuilder? transitionBuilder,
|
_i4.RouteTransitionsBuilder? transitionBuilder,
|
||||||
dynamic customData,
|
dynamic customData,
|
||||||
R? data,
|
R? data,
|
||||||
}) =>
|
}) =>
|
||||||
|
|
@ -674,21 +635,21 @@ class MockDialogService extends _i1.Mock implements _i5.DialogService {
|
||||||
#data: data,
|
#data: data,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i8.Future<_i5.DialogResponse<T>?>.value(),
|
returnValue: _i5.Future<_i2.DialogResponse<T>?>.value(),
|
||||||
returnValueForMissingStub: _i8.Future<_i5.DialogResponse<T>?>.value(),
|
returnValueForMissingStub: _i5.Future<_i2.DialogResponse<T>?>.value(),
|
||||||
) as _i8.Future<_i5.DialogResponse<T>?>);
|
) as _i5.Future<_i2.DialogResponse<T>?>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_i8.Future<_i5.DialogResponse<dynamic>?> showConfirmationDialog({
|
_i5.Future<_i2.DialogResponse<dynamic>?> showConfirmationDialog({
|
||||||
String? title,
|
String? title,
|
||||||
String? description,
|
String? description,
|
||||||
String? cancelTitle = r'Cancel',
|
String? cancelTitle = r'Cancel',
|
||||||
_i9.Color? cancelTitleColor,
|
_i6.Color? cancelTitleColor,
|
||||||
String? confirmationTitle = r'Ok',
|
String? confirmationTitle = r'Ok',
|
||||||
_i9.Color? confirmationTitleColor,
|
_i6.Color? confirmationTitleColor,
|
||||||
bool? barrierDismissible = false,
|
bool? barrierDismissible = false,
|
||||||
_i7.RouteSettings? routeSettings,
|
_i4.RouteSettings? routeSettings,
|
||||||
_i5.DialogPlatform? dialogPlatform,
|
_i2.DialogPlatform? dialogPlatform,
|
||||||
}) =>
|
}) =>
|
||||||
(super.noSuchMethod(
|
(super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
|
|
@ -706,13 +667,13 @@ class MockDialogService extends _i1.Mock implements _i5.DialogService {
|
||||||
#dialogPlatform: dialogPlatform,
|
#dialogPlatform: dialogPlatform,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
returnValue: _i8.Future<_i5.DialogResponse<dynamic>?>.value(),
|
returnValue: _i5.Future<_i2.DialogResponse<dynamic>?>.value(),
|
||||||
returnValueForMissingStub:
|
returnValueForMissingStub:
|
||||||
_i8.Future<_i5.DialogResponse<dynamic>?>.value(),
|
_i5.Future<_i2.DialogResponse<dynamic>?>.value(),
|
||||||
) as _i8.Future<_i5.DialogResponse<dynamic>?>);
|
) as _i5.Future<_i2.DialogResponse<dynamic>?>);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void completeDialog(_i5.DialogResponse<dynamic>? response) =>
|
void completeDialog(_i2.DialogResponse<dynamic>? response) =>
|
||||||
super.noSuchMethod(
|
super.noSuchMethod(
|
||||||
Invocation.method(
|
Invocation.method(
|
||||||
#completeDialog,
|
#completeDialog,
|
||||||
|
|
@ -721,434 +682,3 @@ class MockDialogService extends _i1.Mock implements _i5.DialogService {
|
||||||
returnValueForMissingStub: null,
|
returnValueForMissingStub: null,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A class which mocks [AuthenticationService].
|
|
||||||
///
|
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
|
||||||
class MockAuthenticationService extends _i1.Mock
|
|
||||||
implements _i10.AuthenticationService {
|
|
||||||
@override
|
|
||||||
_i8.Future<bool> userLoggedIn() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#userLoggedIn,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<bool>.value(false),
|
|
||||||
returnValueForMissingStub: _i8.Future<bool>.value(false),
|
|
||||||
) as _i8.Future<bool>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<String?> getAccessToken() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getAccessToken,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<String?>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<String?>.value(),
|
|
||||||
) as _i8.Future<String?>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<String?> getRefreshToken() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getRefreshToken,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<String?>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<String?>.value(),
|
|
||||||
) as _i8.Future<String?>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<int?> getUserId() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getUserId,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<int?>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<int?>.value(),
|
|
||||||
) as _i8.Future<int?>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<void> saveTokens({
|
|
||||||
required String? access,
|
|
||||||
required String? refresh,
|
|
||||||
}) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#saveTokens,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#access: access,
|
|
||||||
#refresh: refresh,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
||||||
) as _i8.Future<void>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<void> saveUserData(Map<String, dynamic>? data) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#saveUserData,
|
|
||||||
[data],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
||||||
) as _i8.Future<void>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<void> saveProfileCompleted(bool? value) => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#saveProfileCompleted,
|
|
||||||
[value],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
||||||
) as _i8.Future<void>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<bool> isFirstTimeInstall() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#isFirstTimeInstall,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<bool>.value(false),
|
|
||||||
returnValueForMissingStub: _i8.Future<bool>.value(false),
|
|
||||||
) as _i8.Future<bool>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<void> setFirstTimeInstall(bool? value) => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#setFirstTimeInstall,
|
|
||||||
[value],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
||||||
) as _i8.Future<void>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<_i2.UserModel> getUser() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getUser,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<_i2.UserModel>.value(_FakeUserModel_0(
|
|
||||||
this,
|
|
||||||
Invocation.method(
|
|
||||||
#getUser,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
)),
|
|
||||||
returnValueForMissingStub:
|
|
||||||
_i8.Future<_i2.UserModel>.value(_FakeUserModel_0(
|
|
||||||
this,
|
|
||||||
Invocation.method(
|
|
||||||
#getUser,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
)),
|
|
||||||
) as _i8.Future<_i2.UserModel>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<void> logOut() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#logOut,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
||||||
) as _i8.Future<void>);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A class which mocks [ApiService].
|
|
||||||
///
|
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
|
||||||
class MockApiService extends _i1.Mock implements _i11.ApiService {
|
|
||||||
@override
|
|
||||||
_i8.Future<Map<String, dynamic>> register(Map<String, dynamic>? data) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#register,
|
|
||||||
[data],
|
|
||||||
),
|
|
||||||
returnValue:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
returnValueForMissingStub:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
) as _i8.Future<Map<String, dynamic>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<Map<String, dynamic>> login(Map<String, dynamic>? data) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#login,
|
|
||||||
[data],
|
|
||||||
),
|
|
||||||
returnValue:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
returnValueForMissingStub:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
) as _i8.Future<Map<String, dynamic>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<Map<String, dynamic>> verifyOtp(Map<String, dynamic>? data) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#verifyOtp,
|
|
||||||
[data],
|
|
||||||
),
|
|
||||||
returnValue:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
returnValueForMissingStub:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
) as _i8.Future<Map<String, dynamic>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<Map<String, dynamic>> resendOtp(Map<String, dynamic>? data) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#resendOtp,
|
|
||||||
[data],
|
|
||||||
),
|
|
||||||
returnValue:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
returnValueForMissingStub:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
) as _i8.Future<Map<String, dynamic>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<Map<String, dynamic>> getProfileStatus(_i2.UserModel? user) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getProfileStatus,
|
|
||||||
[user],
|
|
||||||
),
|
|
||||||
returnValue:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
returnValueForMissingStub:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
) as _i8.Future<Map<String, dynamic>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<Map<String, dynamic>> updateProfile({
|
|
||||||
required _i2.UserModel? user,
|
|
||||||
required Map<String, dynamic>? data,
|
|
||||||
}) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#updateProfile,
|
|
||||||
[],
|
|
||||||
{
|
|
||||||
#user: user,
|
|
||||||
#data: data,
|
|
||||||
},
|
|
||||||
),
|
|
||||||
returnValue:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
returnValueForMissingStub:
|
|
||||||
_i8.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
||||||
) as _i8.Future<Map<String, dynamic>>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<List<_i12.Assessment>> getAssessments() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getAssessments,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue:
|
|
||||||
_i8.Future<List<_i12.Assessment>>.value(<_i12.Assessment>[]),
|
|
||||||
returnValueForMissingStub:
|
|
||||||
_i8.Future<List<_i12.Assessment>>.value(<_i12.Assessment>[]),
|
|
||||||
) as _i8.Future<List<_i12.Assessment>>);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A class which mocks [SecureStorageService].
|
|
||||||
///
|
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
|
||||||
class MockSecureStorageService extends _i1.Mock
|
|
||||||
implements _i4.SecureStorageService {
|
|
||||||
@override
|
|
||||||
_i8.Future<void> clear() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#clear,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
||||||
) as _i8.Future<void>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<bool?> getBool(String? key) => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getBool,
|
|
||||||
[key],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<bool?>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<bool?>.value(),
|
|
||||||
) as _i8.Future<bool?>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<String?> getString(String? key) => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getString,
|
|
||||||
[key],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<String?>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<String?>.value(),
|
|
||||||
) as _i8.Future<String?>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<int?> getInt(String? key) => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getInt,
|
|
||||||
[key],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<int?>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<int?>.value(),
|
|
||||||
) as _i8.Future<int?>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<void> setString(
|
|
||||||
String? key,
|
|
||||||
String? value,
|
|
||||||
) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#setString,
|
|
||||||
[
|
|
||||||
key,
|
|
||||||
value,
|
|
||||||
],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
||||||
) as _i8.Future<void>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<void> setInt(
|
|
||||||
String? key,
|
|
||||||
int? value,
|
|
||||||
) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#setInt,
|
|
||||||
[
|
|
||||||
key,
|
|
||||||
value,
|
|
||||||
],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
||||||
) as _i8.Future<void>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<void> setBool(
|
|
||||||
String? key,
|
|
||||||
bool? value,
|
|
||||||
) =>
|
|
||||||
(super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#setBool,
|
|
||||||
[
|
|
||||||
key,
|
|
||||||
value,
|
|
||||||
],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
||||||
) as _i8.Future<void>);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A class which mocks [DioService].
|
|
||||||
///
|
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
|
||||||
class MockDioService extends _i1.Mock implements _i13.DioService {
|
|
||||||
@override
|
|
||||||
_i3.Dio get dio => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#dio),
|
|
||||||
returnValue: _FakeDio_1(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#dio),
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: _FakeDio_1(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#dio),
|
|
||||||
),
|
|
||||||
) as _i3.Dio);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A class which mocks [StatusCheckerService].
|
|
||||||
///
|
|
||||||
/// See the documentation for Mockito's code generation for more information.
|
|
||||||
class MockStatusCheckerService extends _i1.Mock
|
|
||||||
implements _i14.StatusCheckerService {
|
|
||||||
@override
|
|
||||||
_i4.SecureStorageService get storage => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#storage),
|
|
||||||
returnValue: _FakeSecureStorageService_2(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#storage),
|
|
||||||
),
|
|
||||||
returnValueForMissingStub: _FakeSecureStorageService_2(
|
|
||||||
this,
|
|
||||||
Invocation.getter(#storage),
|
|
||||||
),
|
|
||||||
) as _i4.SecureStorageService);
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool get previousConnection => (super.noSuchMethod(
|
|
||||||
Invocation.getter(#previousConnection),
|
|
||||||
returnValue: false,
|
|
||||||
returnValueForMissingStub: false,
|
|
||||||
) as bool);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<int> getBatteryLevel() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getBatteryLevel,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<int>.value(0),
|
|
||||||
returnValueForMissingStub: _i8.Future<int>.value(0),
|
|
||||||
) as _i8.Future<int>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<bool> userAuthenticated() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#userAuthenticated,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<bool>.value(false),
|
|
||||||
returnValueForMissingStub: _i8.Future<bool>.value(false),
|
|
||||||
) as _i8.Future<bool>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<bool> checkConnection() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#checkConnection,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<bool>.value(false),
|
|
||||||
returnValueForMissingStub: _i8.Future<bool>.value(false),
|
|
||||||
) as _i8.Future<bool>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<int> getAvailableStorage() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#getAvailableStorage,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<int>.value(0),
|
|
||||||
returnValueForMissingStub: _i8.Future<int>.value(0),
|
|
||||||
) as _i8.Future<int>);
|
|
||||||
|
|
||||||
@override
|
|
||||||
_i8.Future<void> checkAndUpdate() => (super.noSuchMethod(
|
|
||||||
Invocation.method(
|
|
||||||
#checkAndUpdate,
|
|
||||||
[],
|
|
||||||
),
|
|
||||||
returnValue: _i8.Future<void>.value(),
|
|
||||||
returnValueForMissingStub: _i8.Future<void>.value(),
|
|
||||||
) as _i8.Future<void>);
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('ApiServiceTest -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('AuthenticationServiceTest -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('DioServiceTest -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('SecureStorageServiceTest -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('StatusCheckerServiceTest -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('AccountPrivacyViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('AssessmentViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('CallSupportViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('DownloadsViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('FullNameViewViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -14,6 +14,14 @@ void main() {
|
||||||
setUp(() => registerServices());
|
setUp(() => registerServices());
|
||||||
tearDown(() => locator.reset());
|
tearDown(() => locator.reset());
|
||||||
|
|
||||||
|
group('incrementCounter -', () {
|
||||||
|
test('When called once should return Counter is: 1', () {
|
||||||
|
final model = getModel();
|
||||||
|
model.incrementCounter();
|
||||||
|
expect(model.counterLabel, 'Counter is: 1');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
group('showBottomSheet -', () {
|
group('showBottomSheet -', () {
|
||||||
test(
|
test(
|
||||||
'When called, should show custom bottom sheet using notice variant',
|
'When called, should show custom bottom sheet using notice variant',
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('LanguageViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('LearnLevelViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('LearnModuleViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('LearnViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('LoginViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('OnboardingViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('OngoingProgressViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('PrivacyPolicyViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('ProfileDetailViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('ProfileViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('ProgressViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('RegisterViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('SettingsViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('StartupViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('SupportViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('TelegramSupportViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('TermsAndConditionsViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:yimaru_app/app/app.locator.dart';
|
|
||||||
|
|
||||||
import '../helpers/test_helpers.dart';
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
group('WelcomeViewModel Tests -', () {
|
|
||||||
setUp(() => registerServices());
|
|
||||||
tearDown(() => locator.reset());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
@ -93,7 +93,7 @@ BEGIN
|
||||||
VALUE "FileDescription", "yimaru_app" "\0"
|
VALUE "FileDescription", "yimaru_app" "\0"
|
||||||
VALUE "FileVersion", VERSION_AS_STRING "\0"
|
VALUE "FileVersion", VERSION_AS_STRING "\0"
|
||||||
VALUE "InternalName", "yimaru_app" "\0"
|
VALUE "InternalName", "yimaru_app" "\0"
|
||||||
VALUE "LegalCopyright", "Copyright (C) 2025 com.example. All rights reserved." "\0"
|
VALUE "LegalCopyright", "Copyright (C) 2026 com.example. All rights reserved." "\0"
|
||||||
VALUE "OriginalFilename", "yimaru_app.exe" "\0"
|
VALUE "OriginalFilename", "yimaru_app.exe" "\0"
|
||||||
VALUE "ProductName", "yimaru_app" "\0"
|
VALUE "ProductName", "yimaru_app" "\0"
|
||||||
VALUE "ProductVersion", VERSION_AS_STRING "\0"
|
VALUE "ProductVersion", VERSION_AS_STRING "\0"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user