mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-05 23:44:02 +01:00
Recreate stale generated files
This commit is contained in:
@@ -6,7 +6,7 @@ Flutter (SDK 3.10+) with flutter_riverpod v3, drift, freezed + json_serializable
|
||||
|
||||
- `flutter analyze` — must be zero issues
|
||||
- `flutter test` — or scope: `flutter test test/<feature>_test.dart`
|
||||
- After touching anything with `@freezed` / `@JsonSerializable` / drift annotations: `dart run build_runner build --delete-conflicting-outputs`, then `dart format .`. A rebuild always rewrites the riverpod debug hashes in `app_settings_notifier.g.dart`, `auth_notifier.g.dart`, `powersync.g.dart` and `health_sync.g.dart`; revert those unless you touched their source.
|
||||
- After touching anything with `@freezed` / `@JsonSerializable` / drift annotations: `dart run build_runner build --delete-conflicting-outputs`, then `dart format .`.
|
||||
|
||||
## Layout
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ final class AuthNotifierProvider extends $AsyncNotifierProvider<AuthNotifier, Au
|
||||
AuthNotifier create() => AuthNotifier();
|
||||
}
|
||||
|
||||
String _$authNotifierHash() => r'f4f13eb779843cd8a2cad044a08d568e6f245073';
|
||||
String _$authNotifierHash() => r'b13776b3abe205ca51a0bc4e0f8faceda9c6d48a';
|
||||
|
||||
abstract class _$AuthNotifier extends $AsyncNotifier<AuthState> {
|
||||
FutureOr<AuthState> build();
|
||||
|
||||
@@ -56,7 +56,7 @@ final class HealthSyncNotifierProvider
|
||||
}
|
||||
}
|
||||
|
||||
String _$healthSyncNotifierHash() => r'b423c6bec19a9481e4d7b22dae0fd5a190e2ead3';
|
||||
String _$healthSyncNotifierHash() => r'd246d82f76b3c11cf74e095e9c64900e2d584aef';
|
||||
|
||||
/// Drives the health import: the user's preference, when a run happens, and
|
||||
/// what the settings screen shows about it.
|
||||
|
||||
@@ -40,7 +40,7 @@ final class GymStateNotifierProvider extends $NotifierProvider<GymStateNotifier,
|
||||
}
|
||||
}
|
||||
|
||||
String _$gymStateNotifierHash() => r'c03c5ee5ca6f1db5d63193e15744589f12486ea4';
|
||||
String _$gymStateNotifierHash() => r'70d386c0cc0b0e2015028b627a36e94f227e4e6b';
|
||||
|
||||
abstract class _$GymStateNotifier extends $Notifier<GymModeState> {
|
||||
GymModeState build();
|
||||
|
||||
@@ -5819,17 +5819,6 @@ class MockAppLocalizations extends _i1.Mock implements _i2.AppLocalizations {
|
||||
)
|
||||
as String);
|
||||
|
||||
@override
|
||||
String portionAmountRange(String? names) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#portionAmountRange, [names]),
|
||||
returnValue: _i3.dummyValue<String>(
|
||||
this,
|
||||
Invocation.method(#portionAmountRange, [names]),
|
||||
),
|
||||
)
|
||||
as String);
|
||||
|
||||
@override
|
||||
String planDateRange(String? startDate, String? endDate) =>
|
||||
(super.noSuchMethod(
|
||||
|
||||
Reference in New Issue
Block a user