Hello there,
Sorry, I wasn't able to work in this library due to some problems these months. I hope you understand.
When I saw issues, I found that most problems are triggered when rebuilding the whole widget tree #473 . So I've targeted this issue.
This is a summary of what changed, please review and give feedback. Consider upgrading to newer minor or major version.
Feature: You can select what classes needs to be rebuilt instead of rebuilding everything, if you have widget A, either you add SU mixin or add 'A' to list ScreenUtilInit.responsiveWidgets. Automatic choose based on if A is not a Flutter widget and not start with '_' (underscore)
Feature: Using ScreenUtilInit.builder is now optional (use it only when using library outside ScreenUtilInit context)
Bug: Second call to ScreenUtil.init ignores any existing values and uses the default values when not provided, use ScreenUtil.configure instead
Bug: ScreenUtil.ensureScreenSize raises an overflow error
Bug: ScreenUtil.ensureScreenSize not working on web #462 #488
Enhancement: scaleByHeight property was misplaced, I've replaced it with FontSizeFactorResolver to choose any available scaleFactor for font
Enhancement: I've added two scale factors to target problem above: diagonal and diameter
Enhancement: Futures need to be awaited, right ? I changed the return type of init to void and create a clear function instead #470
Enhancement: I've added ensureScreenSize to ScreenUtilInit constructor
Note: useInheritedMediaQuery has no effect and will be removed in next version, you can remove it from now if you agree it's not useful anymore
This is a summary of what changed, please review and give feedback. Consider upgrading to newer minor or major version.
Futures need to be awaited
, right ? I changed the return type of init to void and create a clear function instead #470Working on:
DocumentationCHANGE.LOG