当前位置:网站首页>直播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 实现自适应、自动换行、相对布局, 更多内容欢迎关注之后的文章
边栏推荐
猜你喜欢
随机推荐
金仓数据库 KingbaseGIS 使用手册(6.5. 几何对象编辑函数)
LiveData : Transformations.map和 Transformations.switchMap用法
Filament-Material 绘制基本图形
集群的基础形式
harbor配置远程仓库
2022/8/9 考试总结
tiup cluster scale-out
tiup cluster upgrade
VR全景结合小程序,为线上电商更好的服务
【接口测试】requests 库请求体字符串解码
Filament - Material basic graphics drawing
2021年国内外五大BI厂商——优秀的商业智能工具推荐
深入理解多线程(第一篇)
金仓数据库 KingbaseGIS 使用手册(6.3. 几何对象创建函数)
金仓数据库 KingbaseGIS 使用手册(6.2. 管理函数)
Gold Warehouse Database KingbaseGIS User Manual (6.2. Management Functions)
Comprehensive analysis of FPGA basics
高数_复习_第4章:向量代数和空间解析几何
68.qt quick-qml多级折叠下拉导航菜单 支持动态添加/卸载 支持qml/widget加载等
Redis集群









