当前位置:网站首页>Fluent development: setting method of left and right alignment of child controls in row
Fluent development: setting method of left and right alignment of child controls in row
2022-07-05 09:47:00 【Third shopkeeper 666】
Preface
stay Flutter Development process , about UI Interface layout operation is also a very important skill , Especially according to the equal proportion of actual business needs 、 Bisection display 、 Symmetrical display 、 Align both ends and so on , These are common operations , Then this article will share the settings about the alignment of both ends , For developers who are not familiar with the layout, you can have a good look , This article takes Row The left and right alignment of child controls in , Easy to read and use .
About Row There are four ways to set the left and right alignment of child controls in , For the need to align the left and right ends of the same line , Easy to implement , And there are four implementation methods : By setting spaceBetween Alignment mode 、 By using Expanded fill style 、 By using Spacer() fill style 、 By using Flexible The way , The specific four methods are as follows .
Method 1 : By setting spaceBetween Alignment mode
By setting spaceBetween Align the left and right ends , It's mainly about setting up Row Properties of control mainAxisAlignment: MainAxisAlignment.spaceBetween, To set up . Specific examples are as follows :
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
new Text("left"),
new Text("right"),
]
);
边栏推荐
- Principle and performance analysis of lepton lossless compression
- Dry goods sorting! How about the development trend of ERP in the manufacturing industry? It's enough to read this article
- MySQL installation configuration and creation of databases and tables
- Gradientdrawable get a single color
- La voie de l'évolution du système intelligent d'inspection et d'ordonnancement des petites procédures de Baidu
- 【el-table如何禁用】
- Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process
- [NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
- Common fault analysis and Countermeasures of using MySQL in go language
- 从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择
猜你喜欢
百度智能小程序巡检调度方案演进之路
TDengine 已经支持工业英特尔 边缘洞见软件包
What about wechat mall? 5 tips to clear your mind
[listening for an attribute in the array]
cent7安装Oracle数据库报错
TDengine 连接器上线 Google Data Studio 应用商店
La voie de l'évolution du système intelligent d'inspection et d'ordonnancement des petites procédures de Baidu
单片机原理与接口技术(ESP8266/ESP32)机器人类草稿
LeetCode 31. 下一个排列
一文读懂TDengine的窗口查询功能
随机推荐
代码语言的魅力
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
微信小程序获取住户地区信息
OpenGL - Coordinate Systems
Three-level distribution is becoming more and more popular. How should businesses choose the appropriate three-level distribution system?
The research trend of map based comparative learning (gnn+cl) in the top paper
Resolve the horizontal (vertical) sliding conflict between viewpager and WebView
Viewpager pageradapter notifydatasetchanged invalid problem
卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
First understanding of structure
What about wechat mall? 5 tips to clear your mind
解决idea调试过程中liquibase – Waiting for changelog lock….导致数据库死锁问题
Wechat applet obtains household area information
Application of data modeling based on wide table
一次 Keepalived 高可用的事故,让我重学了一遍它
Lepton 无损压缩原理及性能分析
百度交易中台之钱包系统架构浅析
22-07-04 Xi'an Shanghao housing project experience summary (01)
一文读懂TDengine的窗口查询功能
Small program startup performance optimization practice