当前位置:网站首页>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"),
]
);边栏推荐
- 基于宽表的数据建模应用
- First understanding of structure
- [reading notes] Figure comparative learning gnn+cl
- 卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程
- Evolution of Baidu intelligent applet patrol scheduling scheme
- LeetCode 556. 下一个更大元素 III
- [object array A and object array B take out different elements of ID and assign them to the new array]
- Roll up, break through 35 year old anxiety, and animate the CPU to record the function call process
- [team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
- 【el-table如何禁用】
猜你喜欢

Vs code problem: the length of long lines can be configured through "editor.maxtokenizationlinelength"

What are the advantages of the live teaching system to improve learning quickly?

Go 语言使用 MySQL 的常见故障分析和应对方法

Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具

Principle and performance analysis of lepton lossless compression

TDengine可通过数据同步工具 DataX读写

单片机原理与接口技术(ESP8266/ESP32)机器人类草稿

Unity skframework framework (24), avatar controller third person control

Observation cloud and tdengine have reached in-depth cooperation to optimize the cloud experience of enterprises

A detailed explanation of the general process and the latest research trends of map comparative learning (gnn+cl)
随机推荐
Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process
从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择
Analysis on the wallet system architecture of Baidu trading platform
Deep understanding of C language pointer
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
22-07-04 Xi'an Shanghao housing project experience summary (01)
Solve liquibase – waiting for changelog lock Cause database deadlock
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
LeetCode 496. 下一个更大元素 I
Officially launched! Tdengine plug-in enters the official website of grafana
如何正确的评测视频画质
使用el-upload封装得组件怎么清空已上传附件
【el-table如何禁用】
How to improve the operation efficiency of intra city distribution
解决idea调试过程中liquibase – Waiting for changelog lock….导致数据库死锁问题
[hungry dynamic table]
Principle and performance analysis of lepton lossless compression
[how to disable El table]
[sorting of object array]
SMT32H7系列DMA和DMAMUX的一点理解