Skip to content
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

Riverpod 3.0 #3058

Draft
wants to merge 425 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
425 commits
Select commit Hold shift + click to select a range
5bb464e
W
rrousselGit Feb 9, 2024
96e3ecc
W
rrousselGit Feb 9, 2024
e6b2f43
W
rrousselGit Feb 9, 2024
af04fac
Remove record when there's only a single arg
rrousselGit Feb 9, 2024
b640ddd
Fix some tests
rrousselGit Feb 9, 2024
923e408
Fix remaining sync tests
rrousselGit Feb 9, 2024
d1ad70d
Fix most tests
rrousselGit Feb 9, 2024
f906497
Add more $ tests
rrousselGit Feb 9, 2024
1a70376
Fix some errors
rrousselGit Feb 9, 2024
5c3e285
Remove todo
rrousselGit Feb 9, 2024
a4afd3c
lint
rrousselGit Feb 10, 2024
459c4d9
Handle docs and annotations
rrousselGit Feb 10, 2024
f8797f3
Support param annotations
rrousselGit Feb 10, 2024
819f58b
Add overrideWithValue
rrousselGit Feb 10, 2024
bb9b424
Test overrideWithValue/Build and remove createContainer
rrousselGit Feb 10, 2024
ad33369
Support scoped notifiers
rrousselGit Feb 10, 2024
ed0020b
Update generated files
rrousselGit Feb 10, 2024
177d5d8
Fix example
rrousselGit Feb 10, 2024
deb1599
Update website
rrousselGit Feb 10, 2024
94878d5
Run riverpod_lint on website
rrousselGit Feb 10, 2024
579ec75
Fix missing imports
rrousselGit Feb 10, 2024
d712d12
Fix lints
rrousselGit Feb 10, 2024
ce72789
Disable unreachable_from_main in generated code
rrousselGit Feb 10, 2024
92918a6
Update generated code
rrousselGit Feb 10, 2024
d6383d0
Fix some lints
rrousselGit Feb 10, 2024
5dd5b1e
Fix unreachable_from_main
rrousselGit Feb 10, 2024
681404b
Fix lints
rrousselGit Feb 10, 2024
eaa780e
Fix some lints
rrousselGit Feb 10, 2024
77508d6
Update generated files
rrousselGit Feb 10, 2024
83ab0b4
Fix keepAlive family
rrousselGit Feb 10, 2024
e49419c
Avoid unnecessary cast
rrousselGit Feb 10, 2024
b1a6de8
Update generated code
rrousselGit Feb 10, 2024
0c61024
Rename cb
rrousselGit Feb 10, 2024
4f8a893
Update generated code
rrousselGit Feb 10, 2024
f839418
fix lints
rrousselGit Feb 10, 2024
5365a2c
Fix some lints
rrousselGit Feb 10, 2024
433f63d
More lints
rrousselGit Feb 10, 2024
ad34d52
Fix some lints
rrousselGit Feb 10, 2024
f27ac61
createElement->$createElement
rrousselGit Feb 10, 2024
34dc25e
Update generated code
rrousselGit Feb 10, 2024
963016a
Document private APIs
rrousselGit Feb 10, 2024
dfef923
Add some lints
rrousselGit Feb 10, 2024
4acf48d
Add some newlines
rrousselGit Feb 10, 2024
61c1b82
Merge branch 'dev' into rewrite
rrousselGit Feb 10, 2024
e87d40f
Fix test
rrousselGit Feb 10, 2024
14379a6
Update goldens
rrousselGit Feb 10, 2024
1212fb0
Update custom_lint
rrousselGit Feb 10, 2024
0cf51e5
Fix command failure
rrousselGit Feb 10, 2024
b2ad2d1
Sync dev with master (#3332)
rrousselGit Feb 10, 2024
ac39b7e
Sync rewrite with dev (#3333)
rrousselGit Feb 10, 2024
c1b966a
Merge branch 'dev' into rewrite
rrousselGit Feb 10, 2024
0fb4c5b
Format
rrousselGit Feb 10, 2024
163ad5c
Skip some tests
rrousselGit Feb 10, 2024
eccd762
Handle notifier error
rrousselGit Feb 10, 2024
91c6fb5
Fix error handling
rrousselGit Feb 10, 2024
f4ef947
Fix CI
rrousselGit Feb 11, 2024
0544dcb
Merge pull request #3331 from rrousselGit:rewrite
rrousselGit Feb 11, 2024
626be52
Add riverpod_syntax_error lint
rrousselGit Feb 11, 2024
4850853
Make notifier_build an error
rrousselGit Feb 11, 2024
9ef6b59
Remove dead code and clean-up a bit
rrousselGit Feb 11, 2024
b450246
Ignore codegen in riverpod_syntax_error
rrousselGit Feb 11, 2024
594237c
Make some lints warnings
rrousselGit Feb 11, 2024
55dab0c
Add avoid_keep_alive_dependency_inside_auto_dispose
rrousselGit Feb 11, 2024
6dc06c1
Fix lint
rrousselGit Feb 11, 2024
7f762e7
Add automatic migration for missing legacy import (#3334)
rrousselGit Feb 11, 2024
35632a7
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 11, 2024
1b61228
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 11, 2024
b5fd16f
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 11, 2024
7711174
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 11, 2024
ac6c9f0
Format
rrousselGit Feb 11, 2024
03ff3da
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 11, 2024
ef66802
Update CI
rrousselGit Feb 11, 2024
83fd6de
Update dependencies doc
rrousselGit Feb 11, 2024
44d46e1
Fix scoped notifiers not specifying dependencies
rrousselGit Feb 12, 2024
5b45356
Typos
rrousselGit Feb 12, 2024
e1358b4
Use code-gen to automatically handle RiverpodAstVisitor (#3345)
rrousselGit Feb 13, 2024
585a10b
Update packages/riverpod_lint/README.md
rrousselGit Feb 14, 2024
9ddec6e
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 15, 2024
52c033c
Merge remote-tracking branch 'upstream/dev' into riverpod-generator/d…
ValentinVignal Feb 21, 2024
513a3f3
style: Format code
ValentinVignal Feb 21, 2024
f92eead
chore: Update pubspec_overrides
ValentinVignal Feb 21, 2024
b633016
Add `@Dependencies` (#3364)
rrousselGit Feb 25, 2024
620c5a8
Merge branch 'dev' of https://github.com/rrousselGit/riverpod into pr…
rrousselGit Feb 25, 2024
5e6541f
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 25, 2024
fafd2de
Update changelog
rrousselGit Feb 25, 2024
be8e07a
Merge pull request #3355 from ValentinVignal/riverpod-generator/dev/A…
rrousselGit Feb 25, 2024
a670f02
Fix some scoping issues (#3365)
rrousselGit Feb 26, 2024
d423c55
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Feb 26, 2024
8208451
AsyncValue.value now returns `null` on error
rrousselGit Feb 26, 2024
3f76c4f
Add interface that can be applied on al notifiers
rrousselGit Feb 26, 2024
e24c2b8
Fix valueOrNull usage
rrousselGit Feb 26, 2024
e3be446
Increase timeout
rrousselGit Feb 26, 2024
91ba8b2
Update codegen
rrousselGit Feb 26, 2024
6c2d0fb
Update docs a bit
rrousselGit Feb 28, 2024
3972c1f
Update exports
rrousselGit Feb 28, 2024
e413c57
Update generated files
rrousselGit Feb 28, 2024
88dda63
CI
rrousselGit Feb 28, 2024
2905864
Remove AsyncValue extension
rrousselGit Feb 28, 2024
b2ff9f4
Unexport CircularDependencyError
rrousselGit Feb 28, 2024
fe5c022
Riverpod FutureProviderRef
rrousselGit Feb 28, 2024
4810760
Rename generics
rrousselGit Feb 28, 2024
f6d0dea
Update todos
rrousselGit Feb 28, 2024
5c2e96a
More todos
rrousselGit Feb 28, 2024
f360877
Add doc
rrousselGit Feb 28, 2024
eb95973
Update flutter_riverpod docs
rrousselGit Feb 28, 2024
220a497
hooks_riverpod
rrousselGit Feb 28, 2024
04ecc33
Override_with_value (#3375)
rrousselGit Mar 1, 2024
a7cbae4
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 1, 2024
cc55be0
Add a way to do a "full reload" using invalidate (#3378)
rrousselGit Mar 1, 2024
ef8ad91
Remove redundant line
rrousselGit Mar 1, 2024
d7816cf
Add regression test for #3249
rrousselGit Mar 1, 2024
7971b3a
Fix `provider_parameters` for objects using mixins. (#3379)
rrousselGit Mar 1, 2024
861066a
Fix family provider override
rrousselGit Mar 1, 2024
412bba7
Changelog
rrousselGit Mar 1, 2024
3c47a0a
Correctly close pending scheduler timers when disposing containers
rrousselGit Mar 1, 2024
87b7dc5
`ref.invalidate` now correctly clear all resources associated with th…
rrousselGit Mar 1, 2024
48cd71f
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 1, 2024
65ea8c9
Merge branch 'full-dispose-invalidate' of https://github.com/rroussel…
rrousselGit Mar 1, 2024
28d70d0
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 1, 2024
5ccbfe4
Init changeset
rrousselGit Mar 7, 2024
810ccb8
Disable changelog set
rrousselGit Mar 7, 2024
5076132
Separate Ref and ProviderElement (#3389)
rrousselGit Mar 7, 2024
491f870
Recreate Notifiers on rebuild (#3393)
rrousselGit Mar 8, 2024
328676f
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 9, 2024
f59b755
Fix golden
rrousselGit Mar 9, 2024
8248f5e
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 10, 2024
a179df2
Revert involuntary revert
rrousselGit Mar 10, 2024
439a606
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 10, 2024
2e2791d
Improve error message
rrousselGit Mar 10, 2024
db06fef
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 10, 2024
0aefb65
Update import
rrousselGit Mar 10, 2024
3cb83e4
Remove deprecated members
rrousselGit Mar 10, 2024
edf2bd8
Update goldens
rrousselGit Mar 10, 2024
e72869e
Merge pull request #3412 from rrousselGit/remove-parent
rrousselGit Mar 10, 2024
80d281d
Changelogs
rrousselGit Mar 11, 2024
ce5afa2
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Mar 11, 2024
1138026
Use 3.0.0 as min version
rrousselGit Mar 11, 2024
e3b358e
Refactor
rrousselGit Mar 11, 2024
8ffd2b3
Merge pull request #3415 from rrousselGit/refactor
rrousselGit Mar 11, 2024
faad87b
Remove createContainer in flutter_riverpod
rrousselGit Mar 13, 2024
8a21eef
Remove todo
rrousselGit Mar 13, 2024
1664a9c
Improve coverage
rrousselGit Mar 13, 2024
f661cd0
Coverage
rrousselGit Mar 13, 2024
a11ea81
More tests
rrousselGit Mar 14, 2024
52bb32d
ProviderElementBase > ProviderElement
rrousselGit Mar 14, 2024
970e79c
Remove todo
rrousselGit Mar 14, 2024
6058b3a
Merge pull request #3423 from rrousselGit/rename-element
rrousselGit Mar 14, 2024
a7d30f5
Cleanup
rrousselGit Mar 14, 2024
367649c
Coverage
rrousselGit Mar 14, 2024
ad2c0fd
Coverage
rrousselGit Mar 14, 2024
2807d43
Cleanup
rrousselGit Mar 14, 2024
88a865b
Mooore
rrousselGit Mar 14, 2024
142a8d4
Cleanup
rrousselGit Mar 14, 2024
78419ae
Cleanup
rrousselGit Mar 14, 2024
597da1f
More
rrousselGit Mar 14, 2024
c31e913
Coverage
rrousselGit Mar 14, 2024
86e1176
Outdated todos
rrousselGit Mar 14, 2024
3bdbe9a
More
rrousselGit Mar 14, 2024
b3298f1
Remove commented code
rrousselGit Mar 14, 2024
fa99b20
More dead code
rrousselGit Mar 14, 2024
a82e1c1
Unskip stuff
rrousselGit Mar 14, 2024
2701c74
Improve DO/DON'T
rrousselGit Mar 14, 2024
d2a9e0d
W
rrousselGit Mar 15, 2024
d9ddce2
Rename
rrousselGit Mar 15, 2024
32ccc69
W
rrousselGit Mar 15, 2024
ea394c6
W
rrousselGit Mar 15, 2024
b95250d
W
rrousselGit Mar 15, 2024
d8001c1
Fix
rrousselGit Mar 16, 2024
79662d2
Add test
rrousselGit Mar 16, 2024
e2627d2
Add test
rrousselGit Mar 16, 2024
aea5b7a
Docs
rrousselGit Mar 16, 2024
0ad6424
Coverage
rrousselGit Mar 16, 2024
510b45b
Coverage
rrousselGit Mar 16, 2024
5c53649
Remove dead code
rrousselGit Mar 16, 2024
f96031e
Remove unused import
rrousselGit Mar 16, 2024
39db426
Add Ref.listen(weak: true)
rrousselGit Mar 16, 2024
fc09597
Update custom_lint
rrousselGit Mar 16, 2024
6e12b2e
Add test for missing `@internal` & co
rrousselGit Mar 16, 2024
59e8efe
Bump lint
rrousselGit Mar 16, 2024
36f3e20
Update docs
rrousselGit Mar 16, 2024
0f384f0
Refactor pause mechanism
rrousselGit Mar 17, 2024
b736550
Changelog
rrousselGit Mar 17, 2024
a57f4a0
Coverage
rrousselGit Mar 17, 2024
1aaaea8
Changelog
rrousselGit Mar 17, 2024
c52514d
Refactor _mount to use notifyListeners
rrousselGit Mar 17, 2024
ed0a372
Don't invoke paused listeners
rrousselGit Mar 17, 2024
eadd075
W
rrousselGit Mar 22, 2024
ebcdc2f
docs: fixed possible typo
LennartCode May 21, 2024
94aa75f
docs: fixed possible typo
LennartCode May 21, 2024
ab095de
Merge pull request #3565 from LennartCode/dev
rrousselGit May 21, 2024
ec043fe
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit May 27, 2024
6078e3e
Fix depreciation
rrousselGit Jun 2, 2024
946c109
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Jun 3, 2024
f06a310
Support retry
rrousselGit Jun 18, 2024
4bd891b
Update generated files
rrousselGit Jun 18, 2024
5912fdb
Fix CI
rrousselGit Jun 19, 2024
fa01085
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Jun 19, 2024
0ff9c5a
Fix depreciation
rrousselGit Jun 19, 2024
18165b8
More
rrousselGit Jun 19, 2024
be9da02
Fix test
rrousselGit Jun 19, 2024
3d9b748
Merge pull request #3623 from rrousselGit/retry
rrousselGit Jun 20, 2024
d68c6f9
Merge branch 'master' into dev
rrousselGit Jun 20, 2024
855a748
Add AsyncValue.progress
rrousselGit Jun 22, 2024
1a070bc
Merge pull request #3629 from rrousselGit:progress
rrousselGit Jun 22, 2024
55b7b12
Have `AsyncValue.progress` default to null instead of 0.
rrousselGit Jun 24, 2024
754d516
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Aug 15, 2024
bb8a0b2
Fix some tests
rrousselGit Aug 31, 2024
e9f132d
More tests
rrousselGit Aug 31, 2024
2615056
W
rrousselGit Sep 1, 2024
8723f8f
Restore most tests
rrousselGit Sep 7, 2024
5023bce
Add test
rrousselGit Sep 8, 2024
ad36b8b
W
rrousselGit Sep 10, 2024
8e4515d
Fixup some tests
rrousselGit Sep 12, 2024
5cb43e5
Fix propagation
rrousselGit Sep 12, 2024
84cbb04
Fix flutter_riverpod
rrousselGit Sep 13, 2024
7187a1f
Patch tests
rrousselGit Sep 13, 2024
d38507a
Complete pause
rrousselGit Sep 14, 2024
66e0a89
Cleanup
rrousselGit Sep 14, 2024
0e1802b
Merge branch 'dev' of https://github.com/rrousselGit/riverpod into pause
rrousselGit Sep 14, 2024
abb9a61
Changelog
rrousselGit Sep 14, 2024
140192d
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Sep 14, 2024
95a24c9
Merge branch 'dev' of https://github.com/rrousselGit/riverpod into pause
rrousselGit Sep 14, 2024
fcee6f5
Update codegen
rrousselGit Sep 14, 2024
8f0917c
Fix lint
rrousselGit Sep 14, 2024
b0f2682
Merge branch 'dev' of https://github.com/rrousselGit/riverpod into pause
rrousselGit Sep 14, 2024
980d0f1
Format
rrousselGit Sep 14, 2024
5fa0556
Listen Visibility to pause subscriptions
rrousselGit Sep 17, 2024
027c756
Fix AST caching
rrousselGit Sep 17, 2024
088cfcc
Remove unused default
rrousselGit Sep 17, 2024
f6e5e01
Fix test
rrousselGit Sep 18, 2024
4e4c4ba
Fix codegen
rrousselGit Sep 18, 2024
36f93a9
Merge pull request #3428 from rrousselGit/pause
rrousselGit Sep 21, 2024
ff77de7
Merge branch 'master' of https://github.com/rrousselGit/riverpod into…
rrousselGit Sep 21, 2024
a21ea32
Update Ref
rrousselGit Nov 1, 2024
262c149
Update Ref
rrousselGit Nov 1, 2024
2585409
Fix lint tests
rrousselGit Nov 1, 2024
9c2dbc6
Fix more lints
rrousselGit Nov 1, 2024
b705da0
Updated generated files
rrousselGit Nov 1, 2024
3f7bc94
Remove Ref type-arg
rrousselGit Nov 1, 2024
6082367
Ref<T> => Ref
rrousselGit Nov 1, 2024
f95b3fe
Fix riverpod tests
rrousselGit Nov 2, 2024
3f5fd41
Fix some depreciation
rrousselGit Nov 2, 2024
81f41e7
Fix lints
rrousselGit Nov 2, 2024
3188d25
Fix lints
rrousselGit Nov 2, 2024
00f8962
Lint
rrousselGit Nov 2, 2024
0c775d3
Use enclosingElement
rrousselGit Nov 2, 2024
fa387c2
Fix goldens
rrousselGit Nov 3, 2024
3ceda7c
Fix lint
rrousselGit Nov 3, 2024
b2432b0
enclosingElement3
rrousselGit Nov 3, 2024
d499f35
Merge pull request #3825 from rrousselGit/sync-dev
rrousselGit Nov 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*.*.dart linguist-generated=true
12 changes: 1 addition & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ on:
paths-ignore:
- "**.md"
- "**.mdx"
push:
branches:
- master
- dev
paths-ignore:
- "**.md"
- "**.mdx"

schedule:
# runs the CI everyday at 10AM
Expand All @@ -28,8 +21,7 @@ jobs:
strategy:
matrix:
channel:
# Waiting for WidgetStateProperty to be stable
# - stable
- stable
- master
package_path:
- examples/counter
Expand All @@ -45,8 +37,6 @@ jobs:
- packages/hooks_riverpod
- packages/hooks_riverpod/example
- packages/riverpod_annotation
# TODO(rrousselGit) update riverpod_cli test setup to be supported by the CI
# - packages/riverpod_cli
- packages/riverpod_generator
- packages/riverpod_generator/integration/build_yaml
# TODO(rrousselGit) update riverpod_graph test setup to be supported by the CI
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/changelog.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/check_generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Check code-generation

on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- master
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/riverpod_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- master
- dev
paths-ignore:
- "**.md"
schedule:
# runs the CI everyday at 10AM
- cron: "0 10 * * *"
Expand All @@ -26,6 +20,7 @@ jobs:
matrix:
channel:
- master
- stable
package_path:
- packages/riverpod_analyzer_utils
- packages/riverpod_analyzer_utils_tests
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You do not need to spend a lot of time making that issue. The important is:
Making an issue is important to discuss what needs to be done.
You wouldn't want to spend tens of hours working on something, only to
have your PR rejected because we disagree on the direction taken.
An discussion may slow down the work initially, but it can save you from a lot
A discussion may slow down the work initially, but it can save you from a lot
of frustration.

## Documentation work
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Long story short:

```dart
@riverpod
Future<String> boredSuggestion(BoredSuggestionRef ref) async {
Future<String> boredSuggestion(Ref ref) async {
final response = await http.get(
Uri.https('boredapi.com', '/api/activity'),
);
Expand Down
9 changes: 3 additions & 6 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ analyzer:

linter:
rules:
# Not an issue if using dartfmt
no_adjacent_strings_in_list: false

# False positive for custom enum-like classes (such as Flutter's "Colors")
avoid_classes_with_only_static_members: false

Expand All @@ -22,9 +25,6 @@ linter:

# Low value and lacks a quick fix
combinators_ordering: false

# Low value and high cost to change on all files
eol_at_end_of_file: false

# Conflicts with unused variables
no_leading_underscores_for_local_identifiers: false
Expand Down Expand Up @@ -84,6 +84,3 @@ linter:

# conflicts with `prefer_relative_imports`
always_use_package_imports: false

# Disabled for now until we have NNBD as it otherwise conflicts with `missing_return`
no_default_cases: false
2 changes: 1 addition & 1 deletion benchmarks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <4.0.0"
sdk: ">=3.0.0<4.0.0"

dependencies:
flutter:
Expand Down
2 changes: 2 additions & 0 deletions examples/counter/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: unreachable_from_main, https://github.com/dart-lang/linter/issues/4652

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
Expand Down
92 changes: 77 additions & 15 deletions examples/counter/lib/main.g.dart

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

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

dev_dependencies:
build_runner: ^2.3.3
custom_lint: ^0.6.5
custom_lint: ^0.7.0
flutter_test:
sdk: flutter
freezed: ^2.3.2
Expand Down
6 changes: 3 additions & 3 deletions examples/counter/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_lint,riverpod_analyzer_utils
# melos_managed_dependency_overrides: flutter_riverpod,hooks_riverpod,riverpod,riverpod_analyzer_utils,riverpod_lint
dependency_overrides:
flutter_riverpod:
path: ../../packages/flutter_riverpod
Expand All @@ -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
riverpod_lint:
path: ../../packages/riverpod_lint
9 changes: 4 additions & 5 deletions examples/marvel/lib/src/widgets/search_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';

import '../screens/home.dart';

const _height = 300.0;

class _SearchTheme {
const _SearchTheme({
required this.width,
// ignore: unused_element, blocked by https://github.com/dart-lang/linter/issues/3232
this.height = 300,
required this.searchDecoration,
required this.iconPadding,
required this.searchMargin,
});

final double width;
final double height;
final BoxDecoration searchDecoration;
final EdgeInsets iconPadding;
final EdgeInsets searchMargin;
Expand Down Expand Up @@ -187,7 +186,7 @@ class _SearchHintContainer extends StatelessWidget {
Widget build(BuildContext context) {
return Container(
constraints: BoxConstraints(
maxHeight: theme.height,
maxHeight: _height,
),
margin: theme.searchMargin,
child: Material(
Expand All @@ -196,7 +195,7 @@ class _SearchHintContainer extends StatelessWidget {
clipBehavior: Clip.hardEdge,
child: OverflowBox(
alignment: Alignment.topLeft,
maxHeight: theme.height,
maxHeight: _height,
maxWidth: 300,
child: child,
),
Expand Down
2 changes: 1 addition & 1 deletion examples/marvel/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:

dev_dependencies:
build_runner: ^2.0.0
custom_lint: ^0.6.5
custom_lint: ^0.7.0
flutter_test:
sdk: flutter
freezed: ^2.1.0
Expand Down
6 changes: 3 additions & 3 deletions examples/marvel/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_lint,riverpod_analyzer_utils
# melos_managed_dependency_overrides: flutter_riverpod,hooks_riverpod,riverpod,riverpod_analyzer_utils,riverpod_lint
dependency_overrides:
flutter_riverpod:
path: ../../packages/flutter_riverpod
Expand All @@ -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
riverpod_lint:
path: ../../packages/riverpod_lint
Loading
Loading