Comments (15)
Dart:ui can't get screen data in release mode in time .
But if you have a good way to welcome sharing
from flutter_screenutil.
Dart:ui can't get screen data in release mode in time .
But if you have a good way to welcome sharing
I've tried, Dart:ui can get screen data in release mode,
Do you think it is async?
from flutter_screenutil.
Here's my environment
• Flutter version 1.5.4-hotfix.2
• Framework revision 7a4c33425d (9 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
from flutter_screenutil.
Maybe I should try again at 1.5.4, thank you for your suggestion.
...
After 30 minutes
I tried it again and found that it works.
Soon I will upload a version of 0.6.0 and mark it clearly in the update log, thanks
I seem to have found something wrong.
from flutter_screenutil.
I don't know why my test was good before.
But , I tested it a few times and found that it didn't work.
from flutter_screenutil.
what's wrong?
from flutter_screenutil.
from flutter_screenutil.
Sometimes it works, but sometimes it doesn't work.Do you think there is a problem with the code above?
from flutter_screenutil.
I think when your home page draw, window's width shouldn't be zero
from flutter_screenutil.
It seems that it is asynchronous, so I am not going to use this method for the time being.
from flutter_screenutil.
But this method doesn't work at the root app class, it work at app's home class
from flutter_screenutil.
My phone is rooted and it works fine, I don't know what your problem is.
from flutter_screenutil.
no other problem and you can try print width in root main method
from flutter_screenutil.
I guess what you mean is to get the screen data in MyApp? This is not possible, because it is initialized in the home, so the data can only be obtained after the initialization method in the home. If I am wrong, mostShow the code you want to implement
from flutter_screenutil.
all right, use context config your plugin, It doesn't affect my use
from flutter_screenutil.
Related Issues (20)
- 5.9.0 cause app crash HOT 2
- How to automatically adjust the font size with changes in screen size HOT 2
- How do I use this correctly to fit for iPad with a iPhone design? HOT 1
- LateInitializationError: Field '_minTextAdapt@941084504' has not been initialized. HOT 11
- 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
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.