当前位置:网站首页>直播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 实现自适应、自动换行、相对布局, 更多内容欢迎关注之后的文章
边栏推荐
- UNI-APP_ monitor page scroll h5 monitor page scroll
- 【对象——对象及原型链上的属性——对象的操作方法】
- setter与getter访问器属性——数据驱动显示
- shader学习笔记(五)
- 数据库优化 | 干货
- Travel with Shengteng: See all the AI attractions in Jinling City in one day
- YGG 经理人杯总决赛已圆满结束,来看看这份文字版总结!
- kubesphere
- 杭电多校-Counting Stickmen-(思维+组合数+容斥)
- [Cloud Native] This article explains how to add Tencent Crane to Kubevela addon
猜你喜欢
随机推荐
金仓数据库 KingbaseGIS 使用手册(6.2. 管理函数)
金仓数据库 KingbaseGIS 使用手册(6.5. 几何对象编辑函数)
Leetcode 235. 二叉搜索树的最近公共祖先
【实用工具系列】MathCAD入门安装及快速上手使用教程
Snap: 322. Change of Change
生成NC文件时,报错“未定义机床”
tiup cluster stop
Controller层代码这么写,简洁又优雅!
kubesphere
iNFTnews | 迪士尼如何布局Web3
探索TiDB Lightning源码来解决发现的bug
Leetcode 701. 二叉搜索树中的插入操作
新增一地公布2022下半年软考报考时间
Basic operations of xlrd and xlsxwriter
Explore the TiDB Lightning source code to solve the found bugs
Day 12 of learning to program
CV review: softmax code implementation
Force buckle: 279. Perfect square
【对象——对象及原型链上的属性——对象的操作方法】
JS--popstate事件--使用/教程/实例








