Comments (16)
参数是px
返回结果是dp
from flutter_screenutil.
那在iOS 上怎么适配呢 ,我还以为是直接返回的px 因为设计稿一般都是iphon 6 然后假如在设计稿的真实高度是100 然后我需要在iphone XR 上面 按照比例放大 这个没有提供方法吗?
from flutter_screenutil.
参数是px
返回结果是dp
那在iOS 上怎么适配呢 ,我还以为是直接返回的px 因为设计稿一般都是iphon 6 然后假如在设计稿的真实高度是100 然后我需要在iphone XR 上面 按照比例放大 这个没有提供方法吗?
from flutter_screenutil.
因为flutter的单位是dp的
你直接填入设计稿上的px就可以了
from flutter_screenutil.
scaleHeight和scaleWidth 这两个放大倍数 也是dp 的吗
from flutter_screenutil.
都是输入px , 返回dp dp是flutter的默认单位
from flutter_screenutil.
160px 怎么可能这么小的呢
from flutter_screenutil.
就像上面我说的一样,我设计稿的宽高都是160px 如果用了你的那个setwidth 的方法,出来的真实宽度好像不怎么对的呢
from flutter_screenutil.
你设备宽度是828px . 此图160px 大概是设备宽度 是1/ 5 看上去好像没什么问题
from flutter_screenutil.
你设备宽度是828px . 此图160px 大概是设备宽度 是1/ 5 看上去好像没什么问题
好像也是 ,不过感觉还是怪怪的
from flutter_screenutil.
后续有问题可以联系,
issue先关闭 了
from flutter_screenutil.
原来是我搞错了, 我设计稿的单位是pt
from flutter_screenutil.
以我开发经验来看 , 都是可以直接改成其他单位的
from flutter_screenutil.
以我开发经验来看 , 都是可以直接改成其他单位的
啥意思 能提示下吗,刚毕业不久
from flutter_screenutil.
就是你的设计稿可以改成px为单位
找不到并且不介意的话 可以把设计稿发出来, 我帮你看看
from flutter_screenutil.
就是你的设计稿可以改成px为单位
找不到并且不介意的话 可以把设计稿发出来, 我帮你看看
找到了 真的是可以切换。可以切换成dp px 和pt ,我用的是蓝湖 谢谢了
from flutter_screenutil.
Related Issues (20)
- Display problems on tablets and mobile devices HOT 3
- The getter 'physicalGeometry' isn't defined for the type 'FlutterView'. HOT 5
- 是否有支持鸿蒙系统的计划 HOT 1
- How to display well on different devices with different ratio? HOT 2
- Landscape mode, font size increases causing overflow HOT 5
- BorderRadiusExtension and RadiusExtension named wrong HOT 2
- some text widgets in build mode is missing HOT 15
- i update to flutter 3.19.5 the package dosen't work any more HOT 7
- ScreenUtils is best Utils for Flutter developer. HOT 1
- 5.9.0 oppo colorOS 14.0 Android14列表item有时会空白 HOT 3
- flutter_screenutil 5.9.0, Android phones can run with the screen turned off and wiget will be lost HOT 2
- 关于我使用ScreenUtilInit这种方式初始化,builder会调用两次,导致跳转页面会多生成一个 HOT 7
- u
- 横竖屏切换布局错乱 HOT 13
- Problem rendering in tablet size HOT 1
- 新版本 v5.9.2 以及以上版本,输入框无法正常弹出? HOT 2
- UI crashes in release mode HOT 2
- [Feature/Enhancement] Request for max and min screen size
- [Feature/Enhancement] Does not take the MediaQueryData of the parent
- Containers have extra space on bottom in ios
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_screenutil.