Open fisforfaheem opened 6 months ago
the binding and getPage seems ok, but the following error looks like failed import the refreshed package can you please restart your IDE or flutter clean and re-get pub dependencies using flutter pub get ?
didnt fixed...
Could you please share a minimal sample of code for testing?
There were problems with binding.. it doesn't bind correctly.. what's happen?
@Aniketkhote in addition: the latest version that works good with binding is 2.5.2. From 2.5.3 something is broken and some binding were not called correctly and the system throws the Exception "you must call Get.put...."
The interim solution is as follows:
Replace the usage of Bind.lazyPut(() => CountController()) with Bind.lazyPut<CountController>(() => CountController()).
@Aniketkhote sorry.. but i didn't see the difference in your example..
EDIT: gotcha!
Can you kindly come on anydesk for just 5 mins and help me out, I am trying so hard but no luck :(
I dont want to use GETX i want o use refreshed but unable to :
@fisforfaheem If your issue is resolved, kindly close it
Not fixed
@fisforfaheem Check the below example, maybe it help to resolve the issue. https://github.com/Aniketkhote/refreshed/tree/main/demo
@Aniketkhote just a question.
I use a lot the Bind.put
Now, I see in the code that the put method has:
static Bind<S> put<S>(
S dependency, {
String? tag,
bool permanent = false,
}) {
Get.put<S>(dependency, tag: tag, permanent: permanent);
return _FactoryBind<S>(
autoRemove: permanent,
assignId: true,
tag: tag,
);
}
But, autoRemove: permanent means that if I set permanent to true, it autoremoves the controller. In fact, I have this issue since I migrate to your solution: the permanent controllers are disposed automatically..
@Aniketkhote Brother can i share my repo with you, i cant share it as public, need your help with it, i cant seem to understand even with example u shared.
@fisforfaheem use BindingsInterface
but even after fixing: **** my isuse not reprieved why??