flutter-riverpod-snippets icon indicating copy to clipboard operation
flutter-riverpod-snippets copied to clipboard

Update riverpod snippets to generate Ref instead of FooRef introduced in riverpod 2.6.0

Open mufaddalgulshan opened this issue 1 year ago • 1 comments

An example of how a provider is generated now is as below

@riverpod
String helloWorld(HelloWorldRef ref) {
  return 'Hello world';
}

However, with riverpod 2.6.0, the same should be

@riverpod
String helloWorld(Ref ref) {
  return 'Hello world';
}

mufaddalgulshan avatar Nov 14 '24 09:11 mufaddalgulshan

I can see this is still open.

I'm willing to open a PR for this but I need the author to write an "ACK" down here so that I won't waste time 😛

lucavenir avatar Jan 28 '25 09:01 lucavenir

@RobertBrunhage is this repo still maintained? I can quickly PR this if you're willing to review and merge 😄

lucavenir avatar Jul 30 '25 20:07 lucavenir

@mufaddalgulshan @lucavenir have been inactive on this repo as I haven't personally used it. I am keeping track of the notifcations better here though so if you want to contribute feel free!

RobertBrunhage avatar Sep 21 '25 17:09 RobertBrunhage

Alright, thanks @RobertBrunhage. Please approve of #42 ASAP, unless there's some issues ofc.

lucavenir avatar Sep 22 '25 09:09 lucavenir