当前位置:网站首页>直播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 实现自适应、自动换行、相对布局, 更多内容欢迎关注之后的文章
边栏推荐
猜你喜欢
随机推荐
【哲理】事教人
&& 不是此版本的有效语句分隔符
软考 --- 软件工程(7)软件项目管理(下)
70. Stair Climbing Advanced Edition
生成NC文件时,报错“未定义机床”
新增一地公布2022下半年软考报考时间
如何知道电脑开机记录?
深入理解多线程(第一篇)
金仓数据库 KingbaseGIS 使用手册(6.4. 几何对象存取函数)
【云原生】一文讲透Kubevela addon如何添加腾讯Crane
外包的水有多深?腾讯15k的外包测试岗能去吗?
Click: 518. Change Exchange II
Analyses the development status quo of stock trading
ABAP中Collect的用法
集群的基础形式
Leetcode 236. 二叉树的最近公共祖先
【mysql】查询今天9点
2022-08-09 mysql/stonedb-慢SQL-Q16分析
How to match garbled characters regularly?
力扣:279.完全平方数









