当前位置:网站首页>直播app开发搭建,flutter 实现自适应、自动换行、相对布局
直播app开发搭建,flutter 实现自适应、自动换行、相对布局
2022-08-09 22:29:00 【云豹网络科技】
直播app开发搭建,flutter 实现自适应、自动换行、相对布局
Android实现:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="文本1内容很长" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="文本2紧靠右侧" />
</LinearLayout>
flutter实现代码:
Row(
children: [Flexible(child: Text("内容很长")), Text("[紧靠右侧]")],
)
接下来内容:
Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
IntrinsicWidth(
child:
Row(children: [Expanded(child: Text("文本1内容很长内容")), Text("文本2紧靠右侧")]))
])
以上就是直播app开发搭建,flutter 实现自适应、自动换行、相对布局, 更多内容欢迎关注之后的文章
边栏推荐
- 全面解析FPGA基础知识
- 【接口测试】requests 库请求体字符串解码
- 力扣:322. 零钱兑换
- 完全背包理论
- Force Buckle: 474. Ones and zeros
- Leetcode 701. 二叉搜索树中的插入操作
- A Shanghai technology company was fined 220,000 for brushing orders, exposing the gray industry chain of online brushing
- Basic operations of xlrd and xlsxwriter
- 【励志】名言警句
- 打包报错 AAPT: error: failed to read PNG signature: file does not start with PNG signature.
猜你喜欢
随机推荐
[Cloud Native] This article explains how to add Tencent Crane to Kubevela addon
高数_复习_第4章:向量代数和空间解析几何
Interfering with BGP routing---community attributes
CV review: softmax code implementation
2022-08-09 mysql/stonedb-慢SQL-Q16分析
[Interface Test] Decoding the request body string of the requests library
[JZOF] 82 binary tree with a path of a certain value (1)
shader学习笔记(五)
深入理解多线程(第一篇)
高手这样看现货白银走势图
外包的水有多深?腾讯15k的外包测试岗能去吗?
【JZOF】82二叉树中和为某一值的路径(一)
Mysql/stonedb - slow SQL - 2022-08-09 Q16 analysis
技术盛宴!华云数据携六大议题亮相OpenInfra Days China
力扣:279.完全平方数
k8s部署mysql
SRv6 performance measurement
Miscellaneous talk - the sorrow of programmers
Live Preview | ICML 2022 11 first-author scholars share online neural network, graph learning and other cutting-edge research
完全背包理论