chore: Update dependencies and remove unused plugins (#1086)

- Update Riverpod-related dependencies to the latest versions
- Remove the app_links and gtk plugins
- Update the reference path for hive_ce
- Adjust the provider implementation in the generated code
This commit is contained in:
GT610
2026-03-23 23:17:35 +08:00
committed by GitHub
parent d6e17ff58c
commit c4d528733d
19 changed files with 69 additions and 151 deletions

View File

@@ -10,11 +10,11 @@ part of 'single.dart';
// ignore_for_file: type=lint, type=warning
@ProviderFor(ServerNotifier)
const serverProvider = ServerNotifierFamily._();
final serverProvider = ServerNotifierFamily._();
final class ServerNotifierProvider
extends $NotifierProvider<ServerNotifier, ServerState> {
const ServerNotifierProvider._({
ServerNotifierProvider._({
required ServerNotifierFamily super.from,
required String super.argument,
}) : super(
@@ -69,7 +69,7 @@ final class ServerNotifierFamily extends $Family
ServerState,
String
> {
const ServerNotifierFamily._()
ServerNotifierFamily._()
: super(
retry: null,
name: r'serverProvider',
@@ -93,7 +93,6 @@ abstract class _$ServerNotifier extends $Notifier<ServerState> {
@$mustCallSuper
@override
void runBuild() {
final created = build(_$args);
final ref = this.ref as $Ref<ServerState, ServerState>;
final element =
ref.element
@@ -103,6 +102,6 @@ abstract class _$ServerNotifier extends $Notifier<ServerState> {
Object?,
Object?
>;
element.handleValue(ref, created);
element.handleCreate(ref, () => build(_$args));
}
}