NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #655 most downloaded on pub.dev
A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 9 months
Most releases are documented
notes for 46 of the last 60 stable releases
3 versions withdrawn
withdrawn after publishing
8 years old
109 releases · first in 2018
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.
Nothing published for this version
Modify the initialization unit to dp
- update to 4.0.0
Optimize the way of initialization
fix error:'window is not a type.'
- change readme
Modified the initialization method
Modify the method name to be more semantic: wp->sw , hp->sh
- change readme
- Use the way back to v2 version - Modify registration method
Change the unit of'statusBarHeight' and 'bottomBarHeight' to dp
- Guide users to use V2 version
- update readme
After a period of experimentation, I think it's time to release the official version
- readme update
BuildContext is no more required while initializing. i.e. ScreenUtil.init(~~context~~)
BREAKING CHANGES
BuildContext is no more required while initializing. i.e. ScreenUtil.init(designSize instead of width & height.- add textStyle Example.
We still need context to initialize, sorry.
add 'wp','hp'. Get the height/width of the screen proportionally
add 'nsp' , you can use 'fontSize: 24.nsp' instead of 'fontSize: ScreenUtil().setSp(24, allowFontScalingSelf: false)'
Use MediaQueryData.fromWindow(window) instead of MediaQuery.of(context), no context parameter required
MediaQueryData.fromWindow(window) instead of MediaQuery.of(context), no context parameter
requiredsupport ExtensionMethod Dart-SDK-2.6.0
- fix #89 - 优化屏幕旋转效果 - 字体适配统一使用宽度
Rebuild code, change API Delete "getInstance()", please use "ScreenUtil ()" instead of " ScreenUtil.getInstance()" use "ScreenUtil().setSp(24, allowFo
If there is significant impact, please return to 0.7.0
Nothing published for this version
Replace textScaleFactory with textScaleFactor , It's a typo.
Add return types to all methods.
Completing comments , adding English commentsWelcome to add, correct
Change the units of statusBarHeight and bottomBarHeight to dp
Change the parameter type from int to double
Change the parameter type from int to double
setWidth,setHeight,setSp. for example: you can use setWidth(100) or setWidth(100.0)
It is recommended to use ScreenUtil.getInstance() instead of ScreenUtil() , for example: ScreenUtil.getInstance().setHeight(25) instead of ScreenUtil(
Fix the wrong way of using
It is recommended to use ScreenUtil.getInstance() instead of ScreenUtil() , for
example: ScreenUtil.getInstance().setHeight(25) instead of ScreenUtil().setHeight(25)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix bugs that default fonts change with the system
Modify the font to change with the system zoom mode. The default value is false.
Modify the font to change with the system zoom mode. The default value is false.
setSp(int fontSize, [allowFontScaling = false]) => allowFontScaling ? setWidth(fontSize) * _textScaleFactor : setWidth(fontSize);
- add two Properties - ///Current device width dp - ///当前设备宽度 dp - ScreenUtil.screenWidthDp - ///Current device height dp - ///当前设备高度 dp - ScreenUtil.
add two Properties
///Current device width dp
///当前设备宽度 dp
ScreenUtil.screenWidthDp
///Current device height dp
///当前设备高度 dp
ScreenUtil.screenHeightDp
- Fix font adaptation issues
Optimize font adaptation method
Width is enlarged relative to the design draft => The ratio of font and width to the size of the design
- Add font size adaptation
Nothing published for this version
- Optimize documentation
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →