当前位置:网站首页>直播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 实现自适应、自动换行、相对布局, 更多内容欢迎关注之后的文章
边栏推荐
猜你喜欢

安踏携手华为运动健康共同验证冠军跑鞋 创新引领中国体育

matplotlib散点图颜色分组图例

Gartner's global integrated system market data tracking, hyperconverged market growth rate is the first

了解什么是架构基本概念和架构本质

数据库优化 | 干货

VR全景结合小程序,为线上电商更好的服务

How to match garbled characters regularly?

金仓数据库 KingbaseGIS 使用手册(6.5. 几何对象编辑函数)

新增一地公布2022下半年软考报考时间

32 JZOF 】 【 print down on binary tree
随机推荐
setter与getter访问器属性——数据驱动显示
完全背包理论
干货!迈向鲁棒的测试时间适应
什么是平面文件数据库? 如何导入多种格式的文件:DSV、JSON、XML?
tiup cluster scale-out
VR全景结合小程序,为线上电商更好的服务
2022牛客暑期多校训练营6(ABGIJM)
SRv6性能测量
2022/8/9 考试总结
都在说云原生,那云原生到底是什么?
What are the basic steps to develop a quantitative trading strategy?
【实用工具系列】MathCAD入门安装及快速上手使用教程
位图的基本原理以及应用
用函数统计最长单词的字母数量
A summary of 6 common tools for cross-border e-commerce
Has your phone ever been monitored?
LiveData : Transformations.map and Transformations.switchMap usage
为什么刀具数据库无法打开?
2021年国内外五大BI厂商——优秀的商业智能工具推荐
Filament-Material 绘制基本图形