-
Notifications
You must be signed in to change notification settings - Fork 29
build(deps): Bump Riverpod to 2.6.1 #506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,17 @@ | ||
| import 'package:altfire_authenticator/altfire_authenticator.dart'; | ||
| import 'package:hooks_riverpod/hooks_riverpod.dart'; | ||
| import 'package:riverpod_annotation/riverpod_annotation.dart'; | ||
|
|
||
| part 'authenticator_provider.g.dart'; | ||
|
|
||
| /// `[altfire_authenticator]` パッケージの [Authenticator] クラスインスタンスを提供する。 | ||
| @Riverpod(keepAlive: true) | ||
| Authenticator authenticator(AuthenticatorRef ref) { | ||
| Authenticator authenticator(Ref ref) { | ||
| return Authenticator(); | ||
| } | ||
|
|
||
| /// Firebase Authの[User]情報を提供する。 | ||
| @riverpod | ||
| Stream<User?> user(UserRef ref) { | ||
| Stream<User?> user(Ref ref) { | ||
| return ref.watch(authenticatorProvider).userChanges; | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,17 @@ | ||
| import 'package:hooks_riverpod/hooks_riverpod.dart'; | ||
| import 'package:package_info_plus/package_info_plus.dart'; | ||
| import 'package:riverpod_annotation/riverpod_annotation.dart'; | ||
|
|
||
| part 'package_info_provider.g.dart'; | ||
|
|
||
| /// Providers that need to initialize asynchronously only once at startup. | ||
| @Riverpod(keepAlive: true) | ||
| Future<PackageInfo> packageInfoInitializing( | ||
| PackageInfoInitializingRef ref, | ||
| ) async => | ||
| Future<PackageInfo> packageInfoInitializing(Ref ref) async => | ||
| PackageInfo.fromPlatform(); | ||
|
|
||
| /// Provide metadata for the application. | ||
| /// | ||
| /// After initialization, use this, which can be obtained synchronously. | ||
| @Riverpod(keepAlive: true) | ||
| PackageInfo packageInfo(PackageInfoRef ref) => | ||
| PackageInfo packageInfo(Ref ref) => | ||
| ref.watch(packageInfoInitializingProvider).requireValue; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also added
custom_lint --fixto run.