From 7e1e96707c851e3e96d7c40342b787826d9262e2 Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Sun, 3 Nov 2024 15:41:51 +0800 Subject: [PATCH] bump: flutter_riverpod: ^2.6.1 --- lib/app.dart | 3 ++- lib/app.g.dart | 2 +- lib/ui/splash_ui.dart | 1 - pubspec.yaml | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/app.dart b/lib/app.dart index 03cc72a..52b1083 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -3,6 +3,7 @@ import 'dart:io'; import 'package:fluent_ui/fluent_ui.dart'; import 'package:flutter_acrylic/flutter_acrylic.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:go_router/go_router.dart'; import 'package:hexcolor/hexcolor.dart'; @@ -51,7 +52,7 @@ class AppGlobalState with _$AppGlobalState { } @riverpod -GoRouter router(RouterRef ref) { +GoRouter router(Ref ref) { return GoRouter( routes: [ GoRoute( diff --git a/lib/app.g.dart b/lib/app.g.dart index b0e61c5..bf9c577 100644 --- a/lib/app.g.dart +++ b/lib/app.g.dart @@ -6,7 +6,7 @@ part of 'app.dart'; // RiverpodGenerator // ************************************************************************** -String _$routerHash() => r'4fb9802d06347972b530f17ea7d66724a6ded997'; +String _$routerHash() => r'26e97b5ddc5161364251fe92399786a0eb9904db'; /// See also [router]. @ProviderFor(router) diff --git a/lib/ui/splash_ui.dart b/lib/ui/splash_ui.dart index 1b9c1ac..a59d332 100644 --- a/lib/ui/splash_ui.dart +++ b/lib/ui/splash_ui.dart @@ -1,7 +1,6 @@ import 'dart:io'; import 'package:fluent_ui/fluent_ui.dart'; -import 'package:flutter/foundation.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:go_router/go_router.dart'; import 'package:hive/hive.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 098b99d..cab41ad 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,10 +12,10 @@ dependencies: sdk: flutter flutter_localizations: sdk: flutter - flutter_riverpod: ^2.4.10 - riverpod_annotation: ^2.3.4 + flutter_riverpod: ^2.6.1 + riverpod_annotation: ^2.6.1 flutter_hooks: ^0.20.5 - hooks_riverpod: ^2.4.10 + hooks_riverpod: ^2.6.1 json_annotation: ^4.8.1 go_router: ^14.0.1 window_manager: ^0.4.0 @@ -75,9 +75,9 @@ dev_dependencies: build_runner: ^2.4.8 freezed: ^2.4.5 json_serializable: ^6.7.1 - riverpod_generator: ^2.3.11 + riverpod_generator: ^2.6.2 custom_lint: ^0.7.0 - riverpod_lint: ^2.3.9 + riverpod_lint: ^2.6.2 ffigen: ^15.0.0 sct_dev_tools: path: ./packages/sct_dev_tools