sf 0.0.4 copy "sf: ^0.0.4" to clipboard
sf: ^0.0.4 copied to clipboard

A Flutter screen fit plugin. This tool will allow your app to perform the same on different resolutions of the screen!

sf #

A Flutter screen fit plugin. This tool will allow your app to perform the same on different resolutions of the screen!

效果图 #

使用 #

1、依赖
在pubspec.yaml里添加
sf: ^0.0.4

2、使用

///初始化 
///sf.init(context).fit(设计稿宽度, 设计稿高度)
sf.init(context).fit(375, 1440);

///适配宽度高度
/// Dp 提供 0-375 的默认值,如果需要可以自己填写
/// eg:sf.dp(10.0) 或 100.$dp
sf.dp(Dp.$200)
200.$dp

///适配字文字
/// Sp 默认提供 5-60 常用值,如果需要可以自行填写
/// eg:sf.sp(12.0) 或 100.$sp
sf.sp(Sp.$60)
60.$sp

0
likes
35
pub points
0%
popularity

Publisher

unverified uploader

A Flutter screen fit plugin. This tool will allow your app to perform the same on different resolutions of the screen!

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on sf