[rename fixit] Flex alignments
* justifyContent -> mainAxisAlignment * alignItems -> crossAxisAlignment * FlexJustifyContent -> MainAxisAlignment * FlexAlignItems -> CrossAxisAlignment Fixes #231
This commit is contained in:
@@ -201,7 +201,7 @@ class _GestureDemoState extends State<GestureDemo> {
|
||||
]
|
||||
),
|
||||
],
|
||||
alignItems: FlexAlignItems.start
|
||||
crossAxisAlignment: CrossAxisAlignment.start
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -126,7 +126,7 @@ class SectorAppState extends State<SectorApp> {
|
||||
)
|
||||
),
|
||||
],
|
||||
justifyContent: FlexJustifyContent.spaceAround
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround
|
||||
)
|
||||
),
|
||||
new Flexible(
|
||||
@@ -143,7 +143,7 @@ class SectorAppState extends State<SectorApp> {
|
||||
)
|
||||
),
|
||||
],
|
||||
justifyContent: FlexJustifyContent.spaceBetween
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,13 +58,13 @@ void attachWidgetTreeToRenderTree(RenderProxyBox container) {
|
||||
),
|
||||
new CircularProgressIndicator(value: value),
|
||||
],
|
||||
justifyContent: FlexJustifyContent.spaceAround
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround
|
||||
)
|
||||
)
|
||||
),
|
||||
new Rectangle(const Color(0xFFFFFF00)),
|
||||
],
|
||||
justifyContent: FlexJustifyContent.spaceBetween
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween
|
||||
)
|
||||
)
|
||||
).attachToRenderTree(element);
|
||||
|
||||
@@ -107,8 +107,8 @@ class _StyledTextDemoState extends State<StyledTextDemo> {
|
||||
padding: new EdgeInsets.symmetric(horizontal: 8.0),
|
||||
child: new Column(
|
||||
children: children,
|
||||
justifyContent: FlexJustifyContent.center,
|
||||
alignItems: FlexAlignItems.start
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.start
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user