rrousselGit / riverpod

A reactive caching and data-binding framework. Riverpod makes working with asynchronous code a breeze.
https://riverpod.dev
MIT License
6.22k stars 950 forks source link

Android Studio don't shows option to convert StatelessWidget into ConsumerWidget #3769

Open Tananga opened 5 days ago

Tananga commented 5 days ago

https://raw.githubusercontent.com/rrousselGit/riverpod/master/packages/riverpod_lint/resources/convert_to_consumer_widget.gif Im using Android Studio Ladybug | 2024.2.1

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.24.1, on macOS 14.5 23F79 darwin-arm64, locale en-PL) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2024.2) [✓] IntelliJ IDEA Community Edition (version 2024.2.3) [✓] VS Code (version 1.94.0) [✓] Connected device (6 available) [✓] Network resources

• No issues found!

Before I was able to convert Flutter widgets into Riverpod widgets but now I cant. If anyone know how to fix this issue please put a comment below.

rrousselGit commented 5 days ago

Could you make a git project to reproduce the issue?

Tananga commented 5 days ago

@rrousselGit Please take a look on this video https://youtu.be/bLttZ6tOYLQ?si=UMP034zifqkXl946

Tananga commented 5 days ago

@rrousselGit There is an option to create ConsumerWidget from snippet. There is just no option to create Consumer widget from StatlessWidget. Very little problem and I dont think that its worth your time. Let me know If I can close this issue

Screenshot 2024-10-08 at 21 58 25

rrousselGit commented 5 days ago

I don't want a video. I want a github repository. I can't run a video :)