mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Add overview page when a workout has been completed
This commit is contained in:
@@ -24,6 +24,7 @@ import 'package:mockito/src/dummies.dart' as _i5;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
|
||||
_FakeResponse_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
|
||||
@@ -41,6 +41,7 @@ import 'package:wger/providers/user.dart' as _i21;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -204,14 +205,14 @@ class MockExercisesProvider extends _i1.Mock implements _i17.ExercisesProvider {
|
||||
as List<_i8.Language>);
|
||||
|
||||
@override
|
||||
set database(_i3.ExerciseDatabase? _database) => super.noSuchMethod(
|
||||
Invocation.setter(#database, _database),
|
||||
set database(_i3.ExerciseDatabase? value) => super.noSuchMethod(
|
||||
Invocation.setter(#database, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set exercises(List<_i4.Exercise>? _exercises) => super.noSuchMethod(
|
||||
Invocation.setter(#exercises, _exercises),
|
||||
set exercises(List<_i4.Exercise>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#exercises, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -586,14 +587,14 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i20.NutritionPlans
|
||||
as List<_i10.NutritionalPlan>);
|
||||
|
||||
@override
|
||||
set database(_i9.IngredientDatabase? _database) => super.noSuchMethod(
|
||||
Invocation.setter(#database, _database),
|
||||
set database(_i9.IngredientDatabase? value) => super.noSuchMethod(
|
||||
Invocation.setter(#database, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set ingredients(List<_i13.Ingredient>? _ingredients) => super.noSuchMethod(
|
||||
Invocation.setter(#ingredients, _ingredients),
|
||||
set ingredients(List<_i13.Ingredient>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#ingredients, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -943,20 +944,20 @@ class MockUserProvider extends _i1.Mock implements _i21.UserProvider {
|
||||
as _i14.SharedPreferencesAsync);
|
||||
|
||||
@override
|
||||
set themeMode(_i22.ThemeMode? _themeMode) => super.noSuchMethod(
|
||||
Invocation.setter(#themeMode, _themeMode),
|
||||
set themeMode(_i22.ThemeMode? value) => super.noSuchMethod(
|
||||
Invocation.setter(#themeMode, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set prefs(_i14.SharedPreferencesAsync? _prefs) => super.noSuchMethod(
|
||||
Invocation.setter(#prefs, _prefs),
|
||||
set prefs(_i14.SharedPreferencesAsync? value) => super.noSuchMethod(
|
||||
Invocation.setter(#prefs, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set profile(_i23.Profile? _profile) => super.noSuchMethod(
|
||||
Invocation.setter(#profile, _profile),
|
||||
set profile(_i23.Profile? value) => super.noSuchMethod(
|
||||
Invocation.setter(#profile, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -1053,14 +1054,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider {
|
||||
as _i16.Client);
|
||||
|
||||
@override
|
||||
set auth(_i15.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i15.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i16.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i16.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ import 'dart:ui' as _i15;
|
||||
|
||||
import 'package:http/http.dart' as _i5;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:mockito/src/dummies.dart' as _i7;
|
||||
import 'package:mockito/src/dummies.dart' as _i8;
|
||||
import 'package:wger/models/exercises/category.dart' as _i13;
|
||||
import 'package:wger/models/exercises/equipment.dart' as _i9;
|
||||
import 'package:wger/models/exercises/exercise_submission.dart' as _i11;
|
||||
import 'package:wger/models/exercises/exercise_submission_images.dart' as _i8;
|
||||
import 'package:wger/models/exercises/exercise_submission_images.dart' as _i7;
|
||||
import 'package:wger/models/exercises/language.dart' as _i12;
|
||||
import 'package:wger/models/exercises/muscle.dart' as _i10;
|
||||
import 'package:wger/models/exercises/variation.dart' as _i3;
|
||||
@@ -33,6 +33,7 @@ import 'package:wger/providers/base_provider.dart' as _i2;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -78,11 +79,19 @@ class MockAddExerciseProvider extends _i1.Mock implements _i6.AddExerciseProvide
|
||||
)
|
||||
as _i2.WgerBaseProvider);
|
||||
|
||||
@override
|
||||
List<_i7.ExerciseSubmissionImage> get exerciseImages =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#exerciseImages),
|
||||
returnValue: <_i7.ExerciseSubmissionImage>[],
|
||||
)
|
||||
as List<_i7.ExerciseSubmissionImage>);
|
||||
|
||||
@override
|
||||
String get author =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#author),
|
||||
returnValue: _i7.dummyValue<String>(
|
||||
returnValue: _i8.dummyValue<String>(
|
||||
this,
|
||||
Invocation.getter(#author),
|
||||
),
|
||||
@@ -105,14 +114,6 @@ class MockAddExerciseProvider extends _i1.Mock implements _i6.AddExerciseProvide
|
||||
)
|
||||
as List<String>);
|
||||
|
||||
@override
|
||||
List<_i8.ExerciseSubmissionImage> get exerciseImages =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#exerciseImages),
|
||||
returnValue: <_i8.ExerciseSubmissionImage>[],
|
||||
)
|
||||
as List<_i8.ExerciseSubmissionImage>);
|
||||
|
||||
@override
|
||||
List<_i9.Equipment> get equipment =>
|
||||
(super.noSuchMethod(
|
||||
@@ -153,7 +154,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i6.AddExerciseProvide
|
||||
_i11.ExerciseSubmissionApi get exerciseApiObject =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#exerciseApiObject),
|
||||
returnValue: _i7.dummyValue<_i11.ExerciseSubmissionApi>(
|
||||
returnValue: _i8.dummyValue<_i11.ExerciseSubmissionApi>(
|
||||
this,
|
||||
Invocation.getter(#exerciseApiObject),
|
||||
),
|
||||
@@ -161,62 +162,62 @@ class MockAddExerciseProvider extends _i1.Mock implements _i6.AddExerciseProvide
|
||||
as _i11.ExerciseSubmissionApi);
|
||||
|
||||
@override
|
||||
set author(String? _author) => super.noSuchMethod(
|
||||
Invocation.setter(#author, _author),
|
||||
set author(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#author, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set exerciseNameEn(String? _exerciseNameEn) => super.noSuchMethod(
|
||||
Invocation.setter(#exerciseNameEn, _exerciseNameEn),
|
||||
set exerciseNameEn(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#exerciseNameEn, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set exerciseNameTrans(String? _exerciseNameTrans) => super.noSuchMethod(
|
||||
Invocation.setter(#exerciseNameTrans, _exerciseNameTrans),
|
||||
set exerciseNameTrans(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#exerciseNameTrans, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set descriptionEn(String? _descriptionEn) => super.noSuchMethod(
|
||||
Invocation.setter(#descriptionEn, _descriptionEn),
|
||||
set descriptionEn(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#descriptionEn, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set descriptionTrans(String? _descriptionTrans) => super.noSuchMethod(
|
||||
Invocation.setter(#descriptionTrans, _descriptionTrans),
|
||||
set descriptionTrans(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#descriptionTrans, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set languageEn(_i12.Language? _languageEn) => super.noSuchMethod(
|
||||
Invocation.setter(#languageEn, _languageEn),
|
||||
set languageEn(_i12.Language? value) => super.noSuchMethod(
|
||||
Invocation.setter(#languageEn, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set languageTranslation(_i12.Language? _languageTranslation) => super.noSuchMethod(
|
||||
Invocation.setter(#languageTranslation, _languageTranslation),
|
||||
set languageTranslation(_i12.Language? value) => super.noSuchMethod(
|
||||
Invocation.setter(#languageTranslation, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set alternateNamesEn(List<String>? _alternateNamesEn) => super.noSuchMethod(
|
||||
Invocation.setter(#alternateNamesEn, _alternateNamesEn),
|
||||
set alternateNamesEn(List<String>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#alternateNamesEn, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set alternateNamesTrans(List<String>? _alternateNamesTrans) => super.noSuchMethod(
|
||||
Invocation.setter(#alternateNamesTrans, _alternateNamesTrans),
|
||||
set alternateNamesTrans(List<String>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#alternateNamesTrans, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set category(_i13.ExerciseCategory? _category) => super.noSuchMethod(
|
||||
Invocation.setter(#category, _category),
|
||||
set category(_i13.ExerciseCategory? value) => super.noSuchMethod(
|
||||
Invocation.setter(#category, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -261,7 +262,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i6.AddExerciseProvide
|
||||
);
|
||||
|
||||
@override
|
||||
void addExerciseImages(List<_i8.ExerciseSubmissionImage>? images) => super.noSuchMethod(
|
||||
void addExerciseImages(List<_i7.ExerciseSubmissionImage>? images) => super.noSuchMethod(
|
||||
Invocation.method(#addExerciseImages, [images]),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@@ -355,14 +356,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i2.WgerBaseProvider {
|
||||
as _i5.Client);
|
||||
|
||||
@override
|
||||
set auth(_i4.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i4.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i5.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i5.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -8,14 +8,14 @@ import 'dart:ui' as _i16;
|
||||
|
||||
import 'package:flutter/material.dart' as _i18;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
import 'package:mockito/src/dummies.dart' as _i12;
|
||||
import 'package:mockito/src/dummies.dart' as _i13;
|
||||
import 'package:shared_preferences/shared_preferences.dart' as _i4;
|
||||
import 'package:wger/database/exercises/exercise_database.dart' as _i5;
|
||||
import 'package:wger/models/exercises/category.dart' as _i7;
|
||||
import 'package:wger/models/exercises/equipment.dart' as _i8;
|
||||
import 'package:wger/models/exercises/exercise.dart' as _i6;
|
||||
import 'package:wger/models/exercises/exercise_submission.dart' as _i14;
|
||||
import 'package:wger/models/exercises/exercise_submission_images.dart' as _i13;
|
||||
import 'package:wger/models/exercises/exercise_submission_images.dart' as _i12;
|
||||
import 'package:wger/models/exercises/language.dart' as _i10;
|
||||
import 'package:wger/models/exercises/muscle.dart' as _i9;
|
||||
import 'package:wger/models/exercises/variation.dart' as _i3;
|
||||
@@ -38,6 +38,7 @@ import 'package:wger/providers/user.dart' as _i17;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -98,11 +99,19 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
)
|
||||
as _i2.WgerBaseProvider);
|
||||
|
||||
@override
|
||||
List<_i12.ExerciseSubmissionImage> get exerciseImages =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#exerciseImages),
|
||||
returnValue: <_i12.ExerciseSubmissionImage>[],
|
||||
)
|
||||
as List<_i12.ExerciseSubmissionImage>);
|
||||
|
||||
@override
|
||||
String get author =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#author),
|
||||
returnValue: _i12.dummyValue<String>(
|
||||
returnValue: _i13.dummyValue<String>(
|
||||
this,
|
||||
Invocation.getter(#author),
|
||||
),
|
||||
@@ -125,14 +134,6 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
)
|
||||
as List<String>);
|
||||
|
||||
@override
|
||||
List<_i13.ExerciseSubmissionImage> get exerciseImages =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#exerciseImages),
|
||||
returnValue: <_i13.ExerciseSubmissionImage>[],
|
||||
)
|
||||
as List<_i13.ExerciseSubmissionImage>);
|
||||
|
||||
@override
|
||||
List<_i8.Equipment> get equipment =>
|
||||
(super.noSuchMethod(
|
||||
@@ -173,7 +174,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
_i14.ExerciseSubmissionApi get exerciseApiObject =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#exerciseApiObject),
|
||||
returnValue: _i12.dummyValue<_i14.ExerciseSubmissionApi>(
|
||||
returnValue: _i13.dummyValue<_i14.ExerciseSubmissionApi>(
|
||||
this,
|
||||
Invocation.getter(#exerciseApiObject),
|
||||
),
|
||||
@@ -181,62 +182,62 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
as _i14.ExerciseSubmissionApi);
|
||||
|
||||
@override
|
||||
set author(String? _author) => super.noSuchMethod(
|
||||
Invocation.setter(#author, _author),
|
||||
set author(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#author, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set exerciseNameEn(String? _exerciseNameEn) => super.noSuchMethod(
|
||||
Invocation.setter(#exerciseNameEn, _exerciseNameEn),
|
||||
set exerciseNameEn(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#exerciseNameEn, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set exerciseNameTrans(String? _exerciseNameTrans) => super.noSuchMethod(
|
||||
Invocation.setter(#exerciseNameTrans, _exerciseNameTrans),
|
||||
set exerciseNameTrans(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#exerciseNameTrans, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set descriptionEn(String? _descriptionEn) => super.noSuchMethod(
|
||||
Invocation.setter(#descriptionEn, _descriptionEn),
|
||||
set descriptionEn(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#descriptionEn, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set descriptionTrans(String? _descriptionTrans) => super.noSuchMethod(
|
||||
Invocation.setter(#descriptionTrans, _descriptionTrans),
|
||||
set descriptionTrans(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#descriptionTrans, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set languageEn(_i10.Language? _languageEn) => super.noSuchMethod(
|
||||
Invocation.setter(#languageEn, _languageEn),
|
||||
set languageEn(_i10.Language? value) => super.noSuchMethod(
|
||||
Invocation.setter(#languageEn, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set languageTranslation(_i10.Language? _languageTranslation) => super.noSuchMethod(
|
||||
Invocation.setter(#languageTranslation, _languageTranslation),
|
||||
set languageTranslation(_i10.Language? value) => super.noSuchMethod(
|
||||
Invocation.setter(#languageTranslation, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set alternateNamesEn(List<String>? _alternateNamesEn) => super.noSuchMethod(
|
||||
Invocation.setter(#alternateNamesEn, _alternateNamesEn),
|
||||
set alternateNamesEn(List<String>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#alternateNamesEn, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set alternateNamesTrans(List<String>? _alternateNamesTrans) => super.noSuchMethod(
|
||||
Invocation.setter(#alternateNamesTrans, _alternateNamesTrans),
|
||||
set alternateNamesTrans(List<String>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#alternateNamesTrans, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set category(_i7.ExerciseCategory? _category) => super.noSuchMethod(
|
||||
Invocation.setter(#category, _category),
|
||||
set category(_i7.ExerciseCategory? value) => super.noSuchMethod(
|
||||
Invocation.setter(#category, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -281,7 +282,7 @@ class MockAddExerciseProvider extends _i1.Mock implements _i11.AddExerciseProvid
|
||||
);
|
||||
|
||||
@override
|
||||
void addExerciseImages(List<_i13.ExerciseSubmissionImage>? images) => super.noSuchMethod(
|
||||
void addExerciseImages(List<_i12.ExerciseSubmissionImage>? images) => super.noSuchMethod(
|
||||
Invocation.method(#addExerciseImages, [images]),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
@@ -389,20 +390,20 @@ class MockUserProvider extends _i1.Mock implements _i17.UserProvider {
|
||||
as _i4.SharedPreferencesAsync);
|
||||
|
||||
@override
|
||||
set themeMode(_i18.ThemeMode? _themeMode) => super.noSuchMethod(
|
||||
Invocation.setter(#themeMode, _themeMode),
|
||||
set themeMode(_i18.ThemeMode? value) => super.noSuchMethod(
|
||||
Invocation.setter(#themeMode, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set prefs(_i4.SharedPreferencesAsync? _prefs) => super.noSuchMethod(
|
||||
Invocation.setter(#prefs, _prefs),
|
||||
set prefs(_i4.SharedPreferencesAsync? value) => super.noSuchMethod(
|
||||
Invocation.setter(#prefs, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set profile(_i19.Profile? _profile) => super.noSuchMethod(
|
||||
Invocation.setter(#profile, _profile),
|
||||
set profile(_i19.Profile? value) => super.noSuchMethod(
|
||||
Invocation.setter(#profile, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -561,14 +562,14 @@ class MockExercisesProvider extends _i1.Mock implements _i20.ExercisesProvider {
|
||||
as List<_i10.Language>);
|
||||
|
||||
@override
|
||||
set database(_i5.ExerciseDatabase? _database) => super.noSuchMethod(
|
||||
Invocation.setter(#database, _database),
|
||||
set database(_i5.ExerciseDatabase? value) => super.noSuchMethod(
|
||||
Invocation.setter(#database, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set exercises(List<_i6.Exercise>? _exercises) => super.noSuchMethod(
|
||||
Invocation.setter(#exercises, _exercises),
|
||||
set exercises(List<_i6.Exercise>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#exercises, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ import 'package:wger/providers/exercises.dart' as _i9;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -148,14 +149,14 @@ class MockExercisesProvider extends _i1.Mock implements _i9.ExercisesProvider {
|
||||
as List<_i8.Language>);
|
||||
|
||||
@override
|
||||
set database(_i3.ExerciseDatabase? _database) => super.noSuchMethod(
|
||||
Invocation.setter(#database, _database),
|
||||
set database(_i3.ExerciseDatabase? value) => super.noSuchMethod(
|
||||
Invocation.setter(#database, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set exercises(List<_i4.Exercise>? _exercises) => super.noSuchMethod(
|
||||
Invocation.setter(#exercises, _exercises),
|
||||
set exercises(List<_i4.Exercise>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#exercises, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ import 'package:wger/providers/gallery.dart' as _i4;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
@@ -60,8 +61,8 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider {
|
||||
as List<_i5.Image>);
|
||||
|
||||
@override
|
||||
set images(List<_i5.Image>? _images) => super.noSuchMethod(
|
||||
Invocation.setter(#images, _images),
|
||||
set images(List<_i5.Image>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#images, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -82,14 +83,14 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider {
|
||||
as _i3.Client);
|
||||
|
||||
@override
|
||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i3.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ import 'package:wger/providers/gallery.dart' as _i4;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
@@ -60,8 +61,8 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider {
|
||||
as List<_i5.Image>);
|
||||
|
||||
@override
|
||||
set images(List<_i5.Image>? _images) => super.noSuchMethod(
|
||||
Invocation.setter(#images, _images),
|
||||
set images(List<_i5.Image>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#images, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -82,14 +83,14 @@ class MockGalleryProvider extends _i1.Mock implements _i4.GalleryProvider {
|
||||
as _i3.Client);
|
||||
|
||||
@override
|
||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i3.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ import 'package:wger/providers/measurement.dart' as _i4;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
|
||||
@@ -23,6 +23,7 @@ import 'package:wger/providers/base_provider.dart' as _i4;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
@@ -65,14 +66,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
||||
as _i3.Client);
|
||||
|
||||
@override
|
||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i3.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ import 'package:wger/providers/nutrition.dart' as _i8;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -103,14 +104,14 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i8.NutritionPlansP
|
||||
as List<_i4.NutritionalPlan>);
|
||||
|
||||
@override
|
||||
set database(_i3.IngredientDatabase? _database) => super.noSuchMethod(
|
||||
Invocation.setter(#database, _database),
|
||||
set database(_i3.IngredientDatabase? value) => super.noSuchMethod(
|
||||
Invocation.setter(#database, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set ingredients(List<_i7.Ingredient>? _ingredients) => super.noSuchMethod(
|
||||
Invocation.setter(#ingredients, _ingredients),
|
||||
set ingredients(List<_i7.Ingredient>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#ingredients, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ import 'package:wger/providers/nutrition.dart' as _i8;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -103,14 +104,14 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i8.NutritionPlansP
|
||||
as List<_i4.NutritionalPlan>);
|
||||
|
||||
@override
|
||||
set database(_i3.IngredientDatabase? _database) => super.noSuchMethod(
|
||||
Invocation.setter(#database, _database),
|
||||
set database(_i3.IngredientDatabase? value) => super.noSuchMethod(
|
||||
Invocation.setter(#database, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set ingredients(List<_i7.Ingredient>? _ingredients) => super.noSuchMethod(
|
||||
Invocation.setter(#ingredients, _ingredients),
|
||||
set ingredients(List<_i7.Ingredient>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#ingredients, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ import 'package:wger/providers/base_provider.dart' as _i4;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
@@ -75,14 +76,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
||||
as _i3.Client);
|
||||
|
||||
@override
|
||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i3.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -213,50 +214,50 @@ class MockAuthProvider extends _i1.Mock implements _i2.AuthProvider {
|
||||
bool get isAuth => (super.noSuchMethod(Invocation.getter(#isAuth), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
set token(String? _token) => super.noSuchMethod(
|
||||
Invocation.setter(#token, _token),
|
||||
set token(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#token, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set serverUrl(String? _serverUrl) => super.noSuchMethod(
|
||||
Invocation.setter(#serverUrl, _serverUrl),
|
||||
set serverUrl(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#serverUrl, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set serverVersion(String? _serverVersion) => super.noSuchMethod(
|
||||
Invocation.setter(#serverVersion, _serverVersion),
|
||||
set serverVersion(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#serverVersion, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set applicationVersion(_i6.PackageInfo? _applicationVersion) => super.noSuchMethod(
|
||||
Invocation.setter(#applicationVersion, _applicationVersion),
|
||||
set applicationVersion(_i6.PackageInfo? value) => super.noSuchMethod(
|
||||
Invocation.setter(#applicationVersion, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set metadata(Map<String, String>? _metadata) => super.noSuchMethod(
|
||||
Invocation.setter(#metadata, _metadata),
|
||||
set metadata(Map<String, String>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#metadata, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set state(_i2.AuthState? _state) => super.noSuchMethod(
|
||||
Invocation.setter(#state, _state),
|
||||
set state(_i2.AuthState? value) => super.noSuchMethod(
|
||||
Invocation.setter(#state, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i3.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set dataInit(bool? _dataInit) => super.noSuchMethod(
|
||||
Invocation.setter(#dataInit, _dataInit),
|
||||
set dataInit(bool? value) => super.noSuchMethod(
|
||||
Invocation.setter(#dataInit, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ import 'package:wger/providers/base_provider.dart' as _i8;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeClient_0 extends _i1.SmartFake implements _i2.Client {
|
||||
_FakeClient_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
@@ -90,50 +91,50 @@ class MockAuthProvider extends _i1.Mock implements _i3.AuthProvider {
|
||||
bool get isAuth => (super.noSuchMethod(Invocation.getter(#isAuth), returnValue: false) as bool);
|
||||
|
||||
@override
|
||||
set token(String? _token) => super.noSuchMethod(
|
||||
Invocation.setter(#token, _token),
|
||||
set token(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#token, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set serverUrl(String? _serverUrl) => super.noSuchMethod(
|
||||
Invocation.setter(#serverUrl, _serverUrl),
|
||||
set serverUrl(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#serverUrl, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set serverVersion(String? _serverVersion) => super.noSuchMethod(
|
||||
Invocation.setter(#serverVersion, _serverVersion),
|
||||
set serverVersion(String? value) => super.noSuchMethod(
|
||||
Invocation.setter(#serverVersion, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set applicationVersion(_i4.PackageInfo? _applicationVersion) => super.noSuchMethod(
|
||||
Invocation.setter(#applicationVersion, _applicationVersion),
|
||||
set applicationVersion(_i4.PackageInfo? value) => super.noSuchMethod(
|
||||
Invocation.setter(#applicationVersion, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set metadata(Map<String, String>? _metadata) => super.noSuchMethod(
|
||||
Invocation.setter(#metadata, _metadata),
|
||||
set metadata(Map<String, String>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#metadata, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set state(_i3.AuthState? _state) => super.noSuchMethod(
|
||||
Invocation.setter(#state, _state),
|
||||
set state(_i3.AuthState? value) => super.noSuchMethod(
|
||||
Invocation.setter(#state, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i2.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i2.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set dataInit(bool? _dataInit) => super.noSuchMethod(
|
||||
Invocation.setter(#dataInit, _dataInit),
|
||||
set dataInit(bool? value) => super.noSuchMethod(
|
||||
Invocation.setter(#dataInit, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -310,14 +311,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i8.WgerBaseProvider {
|
||||
as _i2.Client);
|
||||
|
||||
@override
|
||||
set auth(_i3.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i3.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i2.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i2.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ import 'package:mockito/src/dummies.dart' as _i5;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
|
||||
_FakeResponse_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
|
||||
@@ -35,6 +35,7 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -145,8 +146,8 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
as _i4.RepetitionUnit);
|
||||
|
||||
@override
|
||||
set activeRoutine(_i5.Routine? _activeRoutine) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, _activeRoutine),
|
||||
set activeRoutine(_i5.Routine? value) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -145,8 +146,8 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
as _i4.RepetitionUnit);
|
||||
|
||||
@override
|
||||
set activeRoutine(_i5.Routine? _activeRoutine) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, _activeRoutine),
|
||||
set activeRoutine(_i5.Routine? value) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -146,9 +146,8 @@ void main() {
|
||||
expect(find.text('Bench press'), findsOneWidget);
|
||||
expect(find.byType(LogPage), findsOneWidget);
|
||||
expect(find.byType(Form), findsOneWidget);
|
||||
expect(find.byType(ListTile), findsNWidgets(3), reason: 'Two logs and the switch tile');
|
||||
expect(find.text('10 × 10 kg (1.5 RiR)'), findsOneWidget);
|
||||
expect(find.text('12 × 10 kg (2 RiR)'), findsOneWidget);
|
||||
expect(find.text('10 × 10 kg (1.5 RiR)'), findsOneWidget);
|
||||
expect(find.text('12 × 10 kg (2 RiR)'), findsOneWidget);
|
||||
|
||||
// TODO: commented out for now
|
||||
// expect(find.text('Make sure to warm up'), findsOneWidget, reason: 'Set comment');
|
||||
|
||||
@@ -43,6 +43,7 @@ import 'package:wger/providers/routines.dart' as _i23;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
@@ -154,14 +155,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
||||
as _i3.Client);
|
||||
|
||||
@override
|
||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i3.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -342,14 +343,14 @@ class MockExercisesProvider extends _i1.Mock implements _i21.ExercisesProvider {
|
||||
as List<_i10.Language>);
|
||||
|
||||
@override
|
||||
set database(_i5.ExerciseDatabase? _database) => super.noSuchMethod(
|
||||
Invocation.setter(#database, _database),
|
||||
set database(_i5.ExerciseDatabase? value) => super.noSuchMethod(
|
||||
Invocation.setter(#database, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set exercises(List<_i6.Exercise>? _exercises) => super.noSuchMethod(
|
||||
Invocation.setter(#exercises, _exercises),
|
||||
set exercises(List<_i6.Exercise>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#exercises, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -743,8 +744,8 @@ class MockRoutinesProvider extends _i1.Mock implements _i23.RoutinesProvider {
|
||||
as _i12.RepetitionUnit);
|
||||
|
||||
@override
|
||||
set activeRoutine(_i13.Routine? _activeRoutine) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, _activeRoutine),
|
||||
set activeRoutine(_i13.Routine? value) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ void main() {
|
||||
});
|
||||
|
||||
Widget renderSessionPage({locale = 'en'}) {
|
||||
final controller = PageController(initialPage: 0);
|
||||
|
||||
return UncontrolledProviderScope(
|
||||
container: container,
|
||||
child: ChangeNotifierProvider<RoutinesProvider>(
|
||||
@@ -68,8 +70,11 @@ void main() {
|
||||
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||
supportedLocales: AppLocalizations.supportedLocales,
|
||||
home: Scaffold(
|
||||
body: SessionPage(
|
||||
PageController(),
|
||||
body: PageView(
|
||||
controller: controller,
|
||||
children: [
|
||||
SessionPage(controller),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -133,6 +138,7 @@ void main() {
|
||||
final captured =
|
||||
verify(mockRoutinesProvider.editSession(captureAny)).captured.single as WorkoutSession;
|
||||
|
||||
print(captured);
|
||||
expect(captured.id, 1);
|
||||
expect(captured.impression, 3);
|
||||
expect(captured.notes, equals('This is a note'));
|
||||
|
||||
@@ -35,6 +35,7 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -145,8 +146,8 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
as _i4.RepetitionUnit);
|
||||
|
||||
@override
|
||||
set activeRoutine(_i5.Routine? _activeRoutine) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, _activeRoutine),
|
||||
set activeRoutine(_i5.Routine? value) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -145,8 +146,8 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
as _i4.RepetitionUnit);
|
||||
|
||||
@override
|
||||
set activeRoutine(_i5.Routine? _activeRoutine) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, _activeRoutine),
|
||||
set activeRoutine(_i5.Routine? value) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -145,8 +146,8 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
as _i4.RepetitionUnit);
|
||||
|
||||
@override
|
||||
set activeRoutine(_i5.Routine? _activeRoutine) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, _activeRoutine),
|
||||
set activeRoutine(_i5.Routine? value) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -145,8 +146,8 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
as _i4.RepetitionUnit);
|
||||
|
||||
@override
|
||||
set activeRoutine(_i5.Routine? _activeRoutine) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, _activeRoutine),
|
||||
set activeRoutine(_i5.Routine? value) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -145,8 +146,8 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
as _i4.RepetitionUnit);
|
||||
|
||||
@override
|
||||
set activeRoutine(_i5.Routine? _activeRoutine) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, _activeRoutine),
|
||||
set activeRoutine(_i5.Routine? value) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -145,8 +146,8 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
as _i4.RepetitionUnit);
|
||||
|
||||
@override
|
||||
set activeRoutine(_i5.Routine? _activeRoutine) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, _activeRoutine),
|
||||
set activeRoutine(_i5.Routine? value) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ import 'package:wger/providers/base_provider.dart' as _i4;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
@@ -65,14 +66,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
||||
as _i3.Client);
|
||||
|
||||
@override
|
||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i3.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ import 'package:wger/providers/exercises.dart' as _i12;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
@@ -104,14 +105,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
||||
as _i3.Client);
|
||||
|
||||
@override
|
||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i3.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -292,14 +293,14 @@ class MockExercisesProvider extends _i1.Mock implements _i12.ExercisesProvider {
|
||||
as List<_i10.Language>);
|
||||
|
||||
@override
|
||||
set database(_i5.ExerciseDatabase? _database) => super.noSuchMethod(
|
||||
Invocation.setter(#database, _database),
|
||||
set database(_i5.ExerciseDatabase? value) => super.noSuchMethod(
|
||||
Invocation.setter(#database, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set exercises(List<_i6.Exercise>? _exercises) => super.noSuchMethod(
|
||||
Invocation.setter(#exercises, _exercises),
|
||||
set exercises(List<_i6.Exercise>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#exercises, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ import 'package:wger/providers/base_provider.dart' as _i4;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
@@ -65,14 +66,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
||||
as _i3.Client);
|
||||
|
||||
@override
|
||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i3.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -145,8 +146,8 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
as _i4.RepetitionUnit);
|
||||
|
||||
@override
|
||||
set activeRoutine(_i5.Routine? _activeRoutine) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, _activeRoutine),
|
||||
set activeRoutine(_i5.Routine? value) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ import 'package:wger/providers/routines.dart' as _i12;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -145,8 +146,8 @@ class MockRoutinesProvider extends _i1.Mock implements _i12.RoutinesProvider {
|
||||
as _i4.RepetitionUnit);
|
||||
|
||||
@override
|
||||
set activeRoutine(_i5.Routine? _activeRoutine) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, _activeRoutine),
|
||||
set activeRoutine(_i5.Routine? value) => super.noSuchMethod(
|
||||
Invocation.setter(#activeRoutine, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ import 'package:wger/providers/base_provider.dart' as _i4;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeAuthProvider_0 extends _i1.SmartFake implements _i2.AuthProvider {
|
||||
_FakeAuthProvider_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
|
||||
@@ -65,14 +66,14 @@ class MockWgerBaseProvider extends _i1.Mock implements _i4.WgerBaseProvider {
|
||||
as _i3.Client);
|
||||
|
||||
@override
|
||||
set auth(_i2.AuthProvider? _auth) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, _auth),
|
||||
set auth(_i2.AuthProvider? value) => super.noSuchMethod(
|
||||
Invocation.setter(#auth, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set client(_i3.Client? _client) => super.noSuchMethod(
|
||||
Invocation.setter(#client, _client),
|
||||
set client(_i3.Client? value) => super.noSuchMethod(
|
||||
Invocation.setter(#client, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ import 'package:wger/providers/user.dart' as _i13;
|
||||
// ignore_for_file: unnecessary_parenthesis
|
||||
// ignore_for_file: camel_case_types
|
||||
// ignore_for_file: subtype_of_sealed_class
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
class _FakeWgerBaseProvider_0 extends _i1.SmartFake implements _i2.WgerBaseProvider {
|
||||
_FakeWgerBaseProvider_0(Object parent, Invocation parentInvocation)
|
||||
@@ -231,20 +232,20 @@ class MockUserProvider extends _i1.Mock implements _i13.UserProvider {
|
||||
as _i4.SharedPreferencesAsync);
|
||||
|
||||
@override
|
||||
set themeMode(_i14.ThemeMode? _themeMode) => super.noSuchMethod(
|
||||
Invocation.setter(#themeMode, _themeMode),
|
||||
set themeMode(_i14.ThemeMode? value) => super.noSuchMethod(
|
||||
Invocation.setter(#themeMode, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set prefs(_i4.SharedPreferencesAsync? _prefs) => super.noSuchMethod(
|
||||
Invocation.setter(#prefs, _prefs),
|
||||
set prefs(_i4.SharedPreferencesAsync? value) => super.noSuchMethod(
|
||||
Invocation.setter(#prefs, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set profile(_i15.Profile? _profile) => super.noSuchMethod(
|
||||
Invocation.setter(#profile, _profile),
|
||||
set profile(_i15.Profile? value) => super.noSuchMethod(
|
||||
Invocation.setter(#profile, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@@ -363,14 +364,14 @@ class MockNutritionPlansProvider extends _i1.Mock implements _i16.NutritionPlans
|
||||
as List<_i6.NutritionalPlan>);
|
||||
|
||||
@override
|
||||
set database(_i5.IngredientDatabase? _database) => super.noSuchMethod(
|
||||
Invocation.setter(#database, _database),
|
||||
set database(_i5.IngredientDatabase? value) => super.noSuchMethod(
|
||||
Invocation.setter(#database, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
set ingredients(List<_i9.Ingredient>? _ingredients) => super.noSuchMethod(
|
||||
Invocation.setter(#ingredients, _ingredients),
|
||||
set ingredients(List<_i9.Ingredient>? value) => super.noSuchMethod(
|
||||
Invocation.setter(#ingredients, value),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user