android - 如何在 Flutter 中根据屏幕大小调整测试大小?
问题描述
我正在 Flutter 上开发一个应用程序,我的主页中有一个包含两个文本小部件的列。问题是在手机上,文字大小正常,但在平板电脑上,文字太小看不清。您能否建议一种根据屏幕尺寸动态放大文本的方法?
小部件:
Column(
children: [
Text(
widget.label,
style: TextStyle(
fontFamily: 'Roboto',
color: Colors.white,
fontWeight: FontWeight.bold),
),
Text(
widget.description,
style: TextStyle(
fontFamily: 'Roboto',
color: Colors.white,
fontWeight: FontWeight.w100),
)
],
),
谢谢
解决方案
推荐阅读
- xml - 从 XML 请求和响应中获取数据
- node.js - 将 express app.get 拆分为多个文件
- c++ - 如何修复c ++不输出输入
- python - ValueError 使用流程将字符串映射到 col - pandas
- twilio - 无法验证来自授权、连接子账户的调用的 Twilio webhook 签名
- macos - Why can't I access the files under the app internal path (xxxx.app/Contents/MacOS/) after packaging on Qt mac?
- python - Django 解构 URL
- python - 复杂的 Django CheckContraint 不会迁移
- python - 从 django 网站的管理页面查看购物车项目时遇到问题
- opengl - 如何在 Racket 中使用 OpenGL 绘制三角形