🐛 Fix route bug

This commit is contained in:
2026-01-02 16:59:46 +08:00
parent 84f5677260
commit 8c1ad94555
64 changed files with 335 additions and 351 deletions

View File

@@ -10,12 +10,12 @@ part of 'notification.dart';
// ignore_for_file: type=lint, type=warning
@ProviderFor(NotificationUnreadCountNotifier)
const notificationUnreadCountProvider =
final notificationUnreadCountProvider =
NotificationUnreadCountNotifierProvider._();
final class NotificationUnreadCountNotifierProvider
extends $AsyncNotifierProvider<NotificationUnreadCountNotifier, int> {
const NotificationUnreadCountNotifierProvider._()
NotificationUnreadCountNotifierProvider._()
: super(
from: null,
argument: null,
@@ -42,7 +42,6 @@ abstract class _$NotificationUnreadCountNotifier extends $AsyncNotifier<int> {
@$mustCallSuper
@override
void runBuild() {
final created = build();
final ref = this.ref as $Ref<AsyncValue<int>, int>;
final element =
ref.element
@@ -52,6 +51,6 @@ abstract class _$NotificationUnreadCountNotifier extends $AsyncNotifier<int> {
Object?,
Object?
>;
element.handleValue(ref, created);
element.handleCreate(ref, build);
}
}