Codelessly / ResponsiveFramework

Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple. Demo: https://gallery.codelessly.com/flutterwebsites/minimal/
https://codelessly.com
MIT License
1.25k stars 150 forks source link

"valueWhen" isn't defined, #139

Closed Jwise777 closed 1 year ago

Jwise777 commented 1 year ago

I believe I was able to add in the required code to my main.dart file, but once adding the required code I now get these 2 errors: "valueWhen": the named parameter "valueWhen" is undefined "ResponsiveValue" The named parameter 'conditionalValues' is required, but there's no corresponding argument

I have looked at the exported files in "responsive_framework.dart" file for these 2 terms and they look like they are defined, but on all of the files of my project I have this error for these 2 terms.

Any help?

Thank you!

James

rayliverified commented 1 year ago

Odd, can you share a screenshot of the errors you're running into?

Jwise777 commented 1 year ago
Screenshot 2023-05-09 at 1 18 13 PM
Jwise777 commented 1 year ago
Screenshot 2023-05-09 at 1 19 44 PM
rayliverified commented 1 year ago

Thank you, v1.0.0 has multiple breaking API changes. valueWhen is now conditionalValues.

Jwise777 commented 1 year ago

Thanks a ton!!!

Jwise777 commented 1 year ago

One more question, what has hiddenWhen changed to and where could I find the documentation on these changes? Sorry, I'm knew to this

rayliverified commented 1 year ago

final List visibleConditions; final List hiddenConditions;

They've changed to the above.

You can Ctrl + Click on the widget name in your editor and see the new method signature.

rayliverified commented 1 year ago

Please reopen if you have additional questions.