flutter_stripe icon indicating copy to clipboard operation
flutter_stripe copied to clipboard

Prefer `initSurfaceAndroidView` instead of `initExpensiveAndroidView`

Open lreardon opened this issue 5 months ago • 2 comments

initSurfaceAndroidView is a newer method that tries to avoid expensive rendering methods unless necessary. It increases performance significantly on older devices and prevents intermittent crashes.

lreardon avatar Nov 11 '25 21:11 lreardon

Thanks for the contribution. We used the other android view in the past and it caused rendering issues. I have to study a bit if the flutter team in the mean time did change the platformviews on android so we can change it without causing regression.

I do not know how the new method determines whether to run one or the other.

remonh87 avatar Nov 15 '25 10:11 remonh87

@jonasbark what do you think shall we take this change along with the new sync? I think it can dramatically improve the performance

remonh87 avatar Dec 16 '25 21:12 remonh87