当前位置:网站首页>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"),
]
);
边栏推荐
- OpenGL - Model Loading
- Understand the window query function of tdengine in one article
- Understanding of smt32h7 series DMA and DMAMUX
- Cross process communication Aidl
- LeetCode 31. 下一个排列
- VS Code问题:长行的长度可通过 “editor.maxTokenizationLineLength“ 进行配置
- 【饿了么动态表格】
- TDengine 离线升级流程
- uni-app---uni. Navigateto jump parameter use
- Figure neural network + comparative learning, where to go next?
猜你喜欢
观测云与 TDengine 达成深度合作,优化企业上云体验
oracle 多行数据合并成一行数据
干货整理!ERP在制造业的发展趋势如何,看这一篇就够了
What are the advantages of the live teaching system to improve learning quickly?
百度评论中台的设计与探索
Analysis on the wallet system architecture of Baidu trading platform
正式上架!TDengine 插件入驻 Grafana 官网
Small program startup performance optimization practice
小程序启动性能优化实践
基于模板配置的数据可视化平台
随机推荐
SQL learning - case when then else
22-07-04 Xi'an Shanghao housing project experience summary (01)
Baidu app's continuous integration practice based on pipeline as code
为什么不建议你用 MongoDB 这类产品替代时序数据库?
如何正确的评测视频画质
卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程
代码语言的魅力
How to choose the right chain management software?
从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择
OpenGL - Lighting
Android privacy sandbox developer preview 3: privacy, security and personalized experience
MySQL does not take effect in sorting string types
From "chemist" to developer, from Oracle to tdengine, two important choices in my life
Principle and performance analysis of lepton lossless compression
一文读懂TDengine的窗口查询功能
LeetCode 31. Next spread
Tdengine connector goes online Google Data Studio app store
Tutorial on building a framework for middle office business system
[ManageEngine] how to make good use of the report function of OpManager
First understanding of structure