Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rrousselGit/riverpod
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: flutter_riverpod-v2.4.10
Choose a base ref
...
head repository: rrousselGit/riverpod
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: flutter_riverpod-v2.5.1
Choose a head ref

Commits on Feb 3, 2024

  1. Copy the full SHA
    9d8d5ad View commit details

Commits on Feb 4, 2024

  1. Copy the full SHA
    6b03429 View commit details
  2. The following packages have been updated: (#3320)

    riverpod_analyzer_utils : 0.5.0 -> 0.5.1
    riverpod_generator      : 2.3.10 -> 2.3.11
    riverpod_lint           : 2.3.8 -> 2.3.9
    rrousselGit authored Feb 4, 2024
    Copy the full SHA
    60a0155 View commit details
  3. Copy the full SHA
    c87068f View commit details

Commits on Feb 7, 2024

  1. Copy the full SHA
    11acff1 View commit details
  2. Fix typo in documentation (#3325)

    fix typo in first_request.mdx
    voidswing authored Feb 7, 2024
    Copy the full SHA
    1f6e3c4 View commit details

Commits on Feb 11, 2024

  1. Enable translating code snippets without cloning them (#3335)

    We have way too many duplicates of the same code snippets.
    
    This makes migrating code to newer versions difficult, as lots of clones
    need to be updated.
    
    Let's remove duplicates by enabling translation of comments inside
    snippets
    rrousselGit authored Feb 11, 2024
    Copy the full SHA
    a54f32f View commit details
  2. Copy the full SHA
    4cf77c2 View commit details
  3. Copy the full SHA
    c40bb69 View commit details
  4. fix CI (#3339)

    rrousselGit authored Feb 11, 2024
    Copy the full SHA
    6695f24 View commit details
  5. Copy the full SHA
    c2dea14 View commit details
  6. Fix CI (#3341)

    rrousselGit authored Feb 11, 2024
    Copy the full SHA
    a1e1b9e View commit details
  7. Update generated files

    rrousselGit committed Feb 11, 2024
    Copy the full SHA
    86322ed View commit details
  8. Merge pull request #3342 from rrousselGit:update-generated-files

    Update generated files
    rrousselGit authored Feb 11, 2024
    Copy the full SHA
    7a1abf4 View commit details
  9. Remove riverpod_cli

    rrousselGit committed Feb 11, 2024
    Copy the full SHA
    04ea4f7 View commit details
  10. Merge pull request #3343 from rrousselGit:remove-riverpod-cli

    Remove riverpod_cli
    rrousselGit authored Feb 11, 2024
    Copy the full SHA
    64a4dbf View commit details

Commits on Feb 13, 2024

  1. Copy the full SHA
    aecda02 View commit details
  2. Copy the full SHA
    be5747f View commit details
  3. Copy the full SHA
    a723d59 View commit details
  4. Copy the full SHA
    6a05ace View commit details

Commits on Feb 14, 2024

  1. Fix typo (#3346)

    Co-authored-by: 3unbeom <sst0424@nate.com>
    3unbeom and 3unbeom authored Feb 14, 2024
    Copy the full SHA
    def9551 View commit details
  2. Merge remote-tracking branch 'upstream/master' into riverpod-generato…

    …r/Add-provider-prefix-to-config
    ValentinVignal committed Feb 14, 2024
    Copy the full SHA
    900389a View commit details
  3. test: Fix the tests

    ValentinVignal committed Feb 14, 2024
    Copy the full SHA
    19e0f49 View commit details

Commits on Feb 15, 2024

  1. Fix passing args snippets

    rrousselGit committed Feb 15, 2024
    Copy the full SHA
    93e08dd View commit details
  2. Merge pull request #3351 from rrousselGit:fix-passing-arg-docs

    Fix passing args snippets
    rrousselGit authored Feb 15, 2024
    Copy the full SHA
    a415d15 View commit details

Commits on Feb 19, 2024

  1. Merge remote-tracking branch 'upstream/master' into riverpod-generato…

    …r/Add-provider-prefix-to-config
    ValentinVignal committed Feb 19, 2024
    Copy the full SHA
    0487d76 View commit details
  2. Copy the full SHA
    1a6aee1 View commit details
  3. Copy the full SHA
    88fb9d7 View commit details

Commits on Feb 25, 2024

  1. Merge pull request #3348 from ValentinVignal/riverpod-generator/Add-p…

    …rovider-prefix-to-config
    rrousselGit authored Feb 25, 2024
    Copy the full SHA
    42bfe81 View commit details

Commits on Feb 26, 2024

  1. Copy the full SHA
    2e27da7 View commit details

Commits on Feb 28, 2024

  1. Copy the full SHA
    5c853b4 View commit details

Commits on Mar 1, 2024

  1. Copy the full SHA
    6eb957c View commit details
  2. Improve onDispose doc (#3377)

    fixes #3369
    rrousselGit authored Mar 1, 2024
    Copy the full SHA
    c8c9d5c View commit details
  3. Fix changelog (#3380)

    rrousselGit authored Mar 1, 2024
    Copy the full SHA
    ce970d2 View commit details
  4. ref.invalidate now correctly clear all resources associated with th…

    …e provider if the provider is no-longer used. (#3382)
    
    fixes #2729
    rrousselGit authored Mar 1, 2024
    Copy the full SHA
    e6cc877 View commit details

Commits on Mar 9, 2024

  1. Copy the full SHA
    4130fbb View commit details
  2. Copy the full SHA
    1ff2870 View commit details
  3. Add regression tests for #2816

    closes #2816
    rrousselGit committed Mar 9, 2024
    Copy the full SHA
    ea91d6d View commit details
  4. Merge pull request #3404 from rrousselGit:regression-2816

    Add regression tests for #2816
    rrousselGit authored Mar 9, 2024
    Copy the full SHA
    8509dd0 View commit details
  5. Add assert and remove ! (#3405)

    closes #2961
    rrousselGit authored Mar 9, 2024
    Copy the full SHA
    f10f09b View commit details

Commits on Mar 10, 2024

  1. Fix translations

    rrousselGit committed Mar 10, 2024
    Copy the full SHA
    047ee56 View commit details
  2. Merge pull request #3406 from rrousselGit:fix-translations

    Fix translations
    rrousselGit authored Mar 10, 2024
    Copy the full SHA
    0e297cb View commit details
  3. Copy the full SHA
    e47d3b0 View commit details
  4. Copy the full SHA
    32302a2 View commit details
  5. The following packages have been updated:

    riverpod            : 2.5.0 -> 2.5.1
    riverpod_annotation : 2.3.4 -> 2.3.5
    riverpod_generator  : 2.3.11 -> 2.4.0
    riverpod_lint       : 2.3.9 -> 2.3.10
    flutter_riverpod    : 2.4.10 -> 2.5.1
    hooks_riverpod      : 2.4.10 -> 2.5.1
    rrousselGit committed Mar 10, 2024
    Copy the full SHA
    d4431fe View commit details
  6. Merge pull request #3409 from rrousselGit:release

    The following packages have been updated:
    riverpod            : 2.5.0 -> 2.5.1
    riverpod_annotation : 2.3.4 -> 2.3.5
    riverpod_generator  : 2.3.11 -> 2.4.0
    riverpod_lint       : 2.3.9 -> 2.3.10
    flutter_riverpod    : 2.4.10 -> 2.5.1
    hooks_riverpod      : 2.4.10 -> 2.5.1
    rrousselGit authored Mar 10, 2024
    Copy the full SHA
    c13c24e View commit details
  7. Update SDK constraints

    rrousselGit committed Mar 10, 2024
    Copy the full SHA
    d4a5d0e View commit details
  8. Merge pull request #3410 from rrousselGit/update-constraints

    Update SDK constraints
    rrousselGit authored Mar 10, 2024
    Copy the full SHA
    6b32bd9 View commit details
Showing 1,673 changed files with 2,739 additions and 47,431 deletions.
2 changes: 1 addition & 1 deletion benchmarks/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: ">=2.12.0-0 <3.0.0"
sdk: ">=2.12.0-0 <4.0.0"

dependencies:
flutter:
2 changes: 1 addition & 1 deletion examples/counter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ dependencies:

dev_dependencies:
build_runner: ^2.3.3
custom_lint: ^0.5.2
custom_lint: ^0.6.0
flutter_test:
sdk: flutter
freezed: ^2.3.2
2 changes: 0 additions & 2 deletions examples/counter/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -14,5 +14,3 @@ dependency_overrides:
path: ../../packages/riverpod_annotation
riverpod_generator:
path: ../../packages/riverpod_generator
# https://github.com/vegardit/dart-hotreloader/issues/14
vm_service: ">=8.0.0 <14.0.0"
5 changes: 4 additions & 1 deletion examples/marvel/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import: ../../analysis_options.yaml
analyzer:
# enable riverpod_lint
plugins:
- custom_lint
errors:
# Some assets are voluntarily gitignored
asset_does_not_exist: ignore
asset_does_not_exist: ignore
2 changes: 1 addition & 1 deletion examples/marvel/lib/src/configuration.freezed.dart
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ part of 'configuration.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

Configuration _$ConfigurationFromJson(Map<String, dynamic> json) {
return _Configuration.fromJson(json);
2 changes: 1 addition & 1 deletion examples/marvel/lib/src/marvel.freezed.dart
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ part of 'marvel.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

/// @nodoc
mixin _$MarvelListCharactersResponse {
2 changes: 1 addition & 1 deletion examples/marvel/lib/src/result.freezed.dart
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ part of 'result.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

/// @nodoc
mixin _$Result<T> {
2 changes: 1 addition & 1 deletion examples/marvel/lib/src/screens/home.freezed.dart
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ part of 'home.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

/// @nodoc
mixin _$CharacterPagination {
5 changes: 4 additions & 1 deletion examples/marvel/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -22,11 +22,14 @@ dependencies:

dev_dependencies:
build_runner: ^2.0.0
custom_lint: ^0.6.0
flutter_test:
sdk: flutter
freezed: ^2.1.0
json_serializable: ^6.3.1
mockito: ^5.0.0
riverpod_lint:
path: ../../packages/riverpod_lint

dependency_overrides:
flutter_riverpod:
@@ -41,4 +44,4 @@ flutter:
assets:
- assets/configurations.json
- assets/marvel.svg
- assets/marvel_background.jpeg
- assets/marvel_background.jpeg
10 changes: 9 additions & 1 deletion examples/marvel/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# melos_managed_dependency_overrides: flutter_riverpod,hooks_riverpod,riverpod
# melos_managed_dependency_overrides: flutter_riverpod,hooks_riverpod,riverpod,riverpod_lint,riverpod_analyzer_utils
dependency_overrides:
flutter_riverpod:
path: ../../packages/flutter_riverpod
hooks_riverpod:
path: ../../packages/hooks_riverpod
riverpod:
path: ../../packages/riverpod
riverpod_analyzer_utils:
path: ../../packages/riverpod_analyzer_utils
riverpod_lint:
path: ../../packages/riverpod_lint
riverpod_annotation:
path: ../../packages/riverpod_annotation
riverpod_generator:
path: ../../packages/riverpod_generator
5 changes: 5 additions & 0 deletions examples/pub/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include: ../analysis_options.yaml
# enable riverpod_lint
analyzer:
plugins:
- custom_lint
2 changes: 1 addition & 1 deletion examples/pub/lib/pub_repository.freezed.dart
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ part of 'pub_repository.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

PackageMetricsScore _$PackageMetricsScoreFromJson(Map<String, dynamic> json) {
return _PackageMetricsScore.fromJson(json);
2 changes: 1 addition & 1 deletion examples/pub/lib/search.dart
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ Future<List<Package>> fetchPackages(
return Future.wait([
for (final package in searchedPackages)
ref.watch(
FetchPackageDetailsProvider(packageName: package.package).future,
fetchPackageDetailsProvider(packageName: package.package).future,
),
]);
}
2 changes: 1 addition & 1 deletion examples/pub/lib/search.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions examples/pub/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -23,12 +23,15 @@ dependencies:

dev_dependencies:
build_runner: ^2.0.0
custom_lint: ^0.6.0
flutter_test:
sdk: flutter
freezed: ^2.1.0
json_serializable: ^6.3.0
mockito: ^5.0.0
riverpod_generator:
riverpod_lint:
path: ../../packages/riverpod_lint

flutter:
uses-material-design: true
6 changes: 3 additions & 3 deletions examples/pub/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# melos_managed_dependency_overrides: flutter_riverpod,hooks_riverpod,riverpod,riverpod_annotation,riverpod_generator
# melos_managed_dependency_overrides: flutter_riverpod,hooks_riverpod,riverpod,riverpod_lint,riverpod_analyzer_utils
dependency_overrides:
flutter_riverpod:
path: ../../packages/flutter_riverpod
@@ -8,9 +8,9 @@ dependency_overrides:
path: ../../packages/riverpod
riverpod_analyzer_utils:
path: ../../packages/riverpod_analyzer_utils
riverpod_lint:
path: ../../packages/riverpod_lint
riverpod_annotation:
path: ../../packages/riverpod_annotation
riverpod_generator:
path: ../../packages/riverpod_generator
# necessary for mockito
analyzer: ^6.0.0
34 changes: 5 additions & 29 deletions examples/random_number/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,5 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
include: ../analysis_options.yaml
# enable riverpod_lint
analyzer:
plugins:
- custom_lint
4 changes: 2 additions & 2 deletions examples/random_number/lib/main.dart
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ final randomNumberProvider = StateNotifierProvider(
);

class RandomNumberApp extends StatelessWidget {
const RandomNumberApp({Key? key}) : super(key: key);
const RandomNumberApp({super.key});

@override
Widget build(BuildContext context) {
@@ -58,7 +58,7 @@ class RandomNumberApp extends StatelessWidget {

/// Custom consumer using the provider
class RandomConsumer extends ConsumerWidget {
const RandomConsumer({Key? key}) : super(key: key);
const RandomConsumer({super.key});

@override
Widget build(BuildContext context, WidgetRef ref) {
11 changes: 7 additions & 4 deletions examples/random_number/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -3,20 +3,23 @@ description: A new Flutter project.
publish_to: 'none'

environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
build_runner: ^2.0.6
cupertino_icons: ^1.0.2
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
flutter_riverpod:
mockito: ^5.0.13
build_runner: ^2.0.6

dev_dependencies:
custom_lint: ^0.6.0
flutter_lints: ^1.0.0
flutter_test:
sdk: flutter
flutter_lints: ^1.0.0
riverpod_lint:
path: ../../packages/riverpod_lint

flutter:
uses-material-design: true
10 changes: 9 additions & 1 deletion examples/random_number/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# melos_managed_dependency_overrides: flutter_riverpod,riverpod
# melos_managed_dependency_overrides: flutter_riverpod,riverpod,riverpod_lint,riverpod_analyzer_utils
dependency_overrides:
flutter_riverpod:
path: ../../packages/flutter_riverpod
riverpod:
path: ../../packages/riverpod
riverpod_analyzer_utils:
path: ../../packages/riverpod_analyzer_utils
riverpod_lint:
path: ../../packages/riverpod_lint
riverpod_annotation:
path: ../../packages/riverpod_annotation
riverpod_generator:
path: ../../packages/riverpod_generator
5 changes: 5 additions & 0 deletions examples/stackoverflow/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include: ../analysis_options.yaml
# enable riverpod_lint
analyzer:
plugins:
- custom_lint
2 changes: 1 addition & 1 deletion examples/stackoverflow/lib/question.freezed.dart
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ part of 'question.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

QuestionsResponse _$QuestionsResponseFromJson(Map<String, dynamic> json) {
return _QuestionsResponse.fromJson(json);
2 changes: 1 addition & 1 deletion examples/stackoverflow/lib/tag.freezed.dart
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ part of 'tag.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

/// @nodoc
mixin _$TagTheme {
2 changes: 1 addition & 1 deletion examples/stackoverflow/lib/user.freezed.dart
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ part of 'user.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

User _$UserFromJson(Map<String, dynamic> json) {
return _User.fromJson(json);
5 changes: 4 additions & 1 deletion examples/stackoverflow/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ description: A new Flutter project.
publish_to: "none"

environment:
sdk: ">=2.17.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"
flutter: ">=1.17.0"

dependencies:
@@ -19,12 +19,15 @@ dependencies:

dev_dependencies:
build_runner: ^2.0.0
custom_lint: ^0.6.0
flutter_test:
sdk: flutter
freezed: ^2.1.0
json_serializable: ^6.3.0
mockito: ^5.0.0
riverpod_generator:
riverpod_lint:
path: ../../packages/riverpod_lint

flutter:
uses-material-design: true
6 changes: 3 additions & 3 deletions examples/stackoverflow/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# melos_managed_dependency_overrides: flutter_riverpod,hooks_riverpod,riverpod,riverpod_annotation,riverpod_generator
# melos_managed_dependency_overrides: flutter_riverpod,hooks_riverpod,riverpod,riverpod_lint,riverpod_analyzer_utils
dependency_overrides:
flutter_riverpod:
path: ../../packages/flutter_riverpod
@@ -8,9 +8,9 @@ dependency_overrides:
path: ../../packages/riverpod
riverpod_analyzer_utils:
path: ../../packages/riverpod_analyzer_utils
riverpod_lint:
path: ../../packages/riverpod_lint
riverpod_annotation:
path: ../../packages/riverpod_annotation
riverpod_generator:
path: ../../packages/riverpod_generator
# necessary for mockito
analyzer: ^6.0.0
5 changes: 5 additions & 0 deletions examples/todos/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include: ../analysis_options.yaml
# enable riverpod_lint
analyzer:
plugins:
- custom_lint
3 changes: 3 additions & 0 deletions examples/todos/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -18,8 +18,11 @@ dependencies:

dev_dependencies:
build_runner: ^2.0.0
custom_lint: ^0.6.0
flutter_test:
sdk: flutter
riverpod_lint:
path: ../../packages/riverpod_lint

dependency_overrides:
flutter_riverpod:
10 changes: 9 additions & 1 deletion examples/todos/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# melos_managed_dependency_overrides: flutter_riverpod,hooks_riverpod,riverpod
# melos_managed_dependency_overrides: flutter_riverpod,hooks_riverpod,riverpod,riverpod_lint,riverpod_analyzer_utils
dependency_overrides:
flutter_riverpod:
path: ../../packages/flutter_riverpod
hooks_riverpod:
path: ../../packages/hooks_riverpod
riverpod:
path: ../../packages/riverpod
riverpod_analyzer_utils:
path: ../../packages/riverpod_analyzer_utils
riverpod_lint:
path: ../../packages/riverpod_lint
riverpod_annotation:
path: ../../packages/riverpod_annotation
riverpod_generator:
path: ../../packages/riverpod_generator
Loading