flutter_screenutil icon indicating copy to clipboard operation
flutter_screenutil copied to clipboard

bug on 5.5.1 to 5.5.2 transition

Open Macacoazul01 opened this issue 4 years ago • 6 comments

maybe this new rebuildFactor property added some problems on web.

Everytime I change my navigator's size, ScreenUtilInit widget rebuilds everything bellow it on the widget tree.

The problem is that it changes the firebase_auth stream, making every widget to rebuild: https://github.com/firebase/flutterfire/issues/9451

Macacoazul01 avatar Sep 01 '22 00:09 Macacoazul01

@Macacoazul01 Please use latest version. Note: you can disable rebuildFactor by passing RebuildFactors.all or true as return value.

Mounir-Bouaiche avatar Sep 02 '22 11:09 Mounir-Bouaiche

using RebuildFactors.all didn't solve the problem. Setting false as return value helped:

return ScreenUtilInit(
      rebuildFactor: (o,n) => false,

Is there any setting that i can use to change .w, .h... dynamically with the navigator like what rebuildFactor does but without this "setState" behavior that rebuildFactor has?

Macacoazul01 avatar Sep 02 '22 13:09 Macacoazul01

@Macacoazul01 Please use latest version.

it's present on 5.5.3+ and .4 too

Macacoazul01 avatar Sep 02 '22 13:09 Macacoazul01

@Mounir-Bouaiche any update on this issue? I am having the same problem.

Lorenzobettega avatar Sep 10 '22 01:09 Lorenzobettega

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 10 '22 02:10 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Oct 24 '22 02:10 github-actions[bot]