Comments (5)
"SetWidth" 和 "SetHeight" return 的 data type 还不是 double。
例子: SizedBox(height: 5.h)
还是行不通啊.
我回头测试一下,看是否把num类型替换为double
from flutter_screenutil.
Maybe you are right, but now only supports integers.
I will modify it in the near future, thank you.
Fixed in 0.5.2
from flutter_screenutil.
Hi,
You said it is fixed, but your source code is still:
num setWidth(num width) => width * scaleWidth;
num setHeight(num height) => height * scaleHeight;
Where can we get the version with double?
from flutter_screenutil.
Hi,
You said it is fixed, but your source code is still:
num setWidth(num width) => width * scaleWidth; num setHeight(num height) => height * scaleHeight;
Where can we get the version with double?
you can use double ,have a try
from flutter_screenutil.
"SetWidth" 和 "SetHeight" return 的 data type 还不是 double。
例子: SizedBox(height: 5.h)
还是行不通啊.
from flutter_screenutil.
Related Issues (20)
- 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
- flutter_screenutil 6.0.0-alpha.1 HOT 1
- Provide a concise title for your issue, e.g., "Error: The getter 'backgroundColor' isn't defined for the class 'ThemeData'".
- Integration with device_preview to correctly update MediaQueryData
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.