thingsboard / flutter_thingsboard_pe_app

ThingsBoard PE Mobile Application
https://thingsboard.io/products/mobile-pe/
BSD 3-Clause "New" or "Revised" License
90 stars 78 forks source link

configuration problem. #180

Closed rantherz closed 1 month ago

rantherz commented 1 month ago

Configuration issue. I don't know why I have this error in the code. I was trying to solve it, but I can't find the solution.

imagen in this url: https://ibb.co/9p2mhys

MichaelKerscher commented 1 month ago

I get the same error at Release 1.3.0: The class 'TbContext' cannot define the field 'onPopInvoked' and have a method 'PopEntry.onPopInvoked' with the same name. Try converting the getter to a method or rename the field to a name that doesn't cause a conflict.

The error occurs with Flutter 3.19.6 as well as with Flutter 3.24.6. With Flutter 3.24.6 I also use Dart 3.5.3 and DevTools 2.37.3 and work in the stable channel.

ybeshkarov commented 1 month ago

It's because you're using a non-supported Flutter version. Here, you can find more about which version you need: https://github.com/thingsboard/flutter_thingsboard_pe_app/releases/tag/v1.3.0.

MichaelKerscher commented 1 month ago

Ah ok, thanks. I didn't know that it is recorded which Flutter version is required in each case.

It has now helped me to use Flutter version 3.22.0.

However, I have not yet integrated FVM. I'm still used to git checkout 3.22.0 and it works.

ybeshkarov commented 1 month ago

It's okay, FVM just for your convenience.