当前位置:网站首页>直播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 实现自适应、自动换行、相对布局, 更多内容欢迎关注之后的文章
边栏推荐
猜你喜欢
随机推荐
Sqlserver restricts the ip under which accounts can access the database
【JZOF】32从上往下打印二叉树
LiveData : Transformations.map and Transformations.switchMap usage
正则表达式的实际使用
一体化伺服电机在三轴钻孔机中的应用
Live Preview | ICML 2022 11 first-author scholars share online neural network, graph learning and other cutting-edge research
位图的基本原理以及应用
JS基础笔记-关于对象
70. Stair Climbing Advanced Edition
34. Fabric2.2 证书目录里各文件作用
Miscellaneous talk - the sorrow of programmers
Comprehensive analysis of FPGA basics
【诗歌】枕上诗书
Mysql/stonedb - slow SQL - 2022-08-09 Q16 analysis
中国SaaS企业排名,龙头企业Top10梳理
Filament - Material basic graphics drawing
JS--hashchange事件--使用/教程
2022-08-09 mysql/stonedb-subquery performance improvement-introduction
【诗歌】最高级的惩罚就是沉默
tiup cluster upgrade