Comments (5)
只需要2x和3x的话可以将2x的作为主资源,只保留3x的变体。
from flutter-in-action.
只需要2x和3x的话可以将2x的作为主资源,只保留3x的变体。
将2x的作为主资源,只保留3x的变体。
在代码中,使用2x图如下:
Image.asset('images/icon_home_dis.png'); 在2x设备上图片放大,3x设备上没有问题
正常应该是这样
去掉2.0x文件夹,把2x作为主资源,显示异常如下:
from flutter-in-action.
显式设置一下Image的宽高
from flutter-in-action.
需要显式设置一下Image的宽高的话就没什么意思了
from flutter-in-action.
最近也有同样的问题,为啥只放2x 3x,系统不能自动识别呢
from flutter-in-action.
Related Issues (20)
- 创建插件时找不到MainActivity.java
- If the home property is specified, the routes table cannot include an entry for \"/\", since it would be redundant.
- IOWebSocketChannel.connect('ws://echo.websocket.org');android中不行?
- Chapter3.14:A value of type 'Scaffold?' can't be assigned to a variable of type 'Scaffold'. HOT 1
- Error: unable to locate asset entry in pubspec.yaml: "/fonts/Raleway-Regular.ttf".
- 示例代码不支持 Flutter 2 (Dart 2.12.0),给初学者造成很大障碍! HOT 3
- TypeError: e.querySelectorAll is not a function
- Align组件中的坐标转换公式好像不对
- 如下图为止文字是否错误? HOT 1
- 成语是不是用错了?
- 建议将 Cross Axis 翻译为“副轴”或者“交叉轴” HOT 1
- https://book.flutterchina.club/疑似被强
- 第二版写的怎么样了,什么时候能见面? HOT 1
- Navigator 2.0 文档使用
- 点击第四章布局组件,404
- <电子版官网>点击第一章起步出现404
- TextField
- 作者还在更新吗
- github已经不支持用户名密码登录了,作者可以考虑换个项目了。
- leaked credentials
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-in-action.