当前位置:网站首页>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"),
]
);
边栏推荐
- [team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
- Wechat applet obtains household area information
- Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
- TDengine 连接器上线 Google Data Studio 应用商店
- LeetCode 31. 下一个排列
- Tdengine can read and write through dataX, a data synchronization tool
- Gradientdrawable get a single color
- Unity skframework framework (24), avatar controller third person control
- Vs code problem: the length of long lines can be configured through "editor.maxtokenizationlinelength"
- Three-level distribution is becoming more and more popular. How should businesses choose the appropriate three-level distribution system?
猜你喜欢
Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises
Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process
MySQL installation configuration and creation of databases and tables
How do enterprises choose the appropriate three-level distribution system?
tongweb设置gzip
LeetCode 496. Next larger element I
Small program startup performance optimization practice
代码语言的魅力
From "chemist" to developer, from Oracle to tdengine, two important choices in my life
解决Navicat激活、注册时候出现No All Pattern Found的问题
随机推荐
Project practice | excel export function
Tdengine connector goes online Google Data Studio app store
Unity skframework framework (XXIII), minimap small map tool
Resolve the horizontal (vertical) sliding conflict between viewpager and WebView
百度交易中台之钱包系统架构浅析
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
TDengine 离线升级流程
What are the advantages of the live teaching system to improve learning quickly?
【sourceTree配置SSH及使用】
ThreadLocal source code learning
卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
百度智能小程序巡檢調度方案演進之路
A detailed explanation of the general process and the latest research trends of map comparative learning (gnn+cl)
MYSQL 对字符串类型排序不生效问题
移动端异构运算技术-GPU OpenCL编程(进阶篇)
How to implement complex SQL such as distributed database sub query and join?
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
Android SQLite database encryption
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode
Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process