Closed ahndwon closed 1 year ago
Don't create the Upgrader() instance more than once. You don't even need to create it at all. Just use this:
UpgradeAlert(child: TextField())
Thanks, that solved the issue!
I am now using the sharedInstance. I have a suggestion. I think sharedInstance method should have explicit return type. If not, it has to be type casted whenever it's used, as below.
(Upgrader.sharedInstance as Upgrader).debugDisplayOnce = true;
Again, thanks for the help! I'll close this issue.
Glad that worked for you.
For the shared instance, are you talking about this line? https://github.com/larryaasen/upgrader/blob/1ca48d2ad485dc02e47f74b704ef121e85ccb982/lib/src/upgrader.dart#L184
Yes, that getter is what I was talking about.
That getter is already typed.
When using upgrader, inputting letters fast by soft keyboard causes lag on TextField widget. It is more noticeable on Android phones than iPhones. And if the phone's hardware performance is low, more noticeable.
I found out that only projects that are released on store gets this lag. Projects that are not released doesn't have this issue.
I tried upgrader: ^4.8.1 and ^4.10.0 all have same problem
I used upgrader as below, with no parameters.