Replace Flex to Row and Column in tests and examples.
This still leaves Flex and FlexDirection available. At some point once people have transitioned to Row/Column we should rename Flex to _Flex and stop reexporting FlexDirection from basic.dart.
This commit is contained in:
@@ -6,7 +6,7 @@ import 'package:sky/widgets.dart';
|
||||
|
||||
class ContainerApp extends App {
|
||||
Widget build() {
|
||||
return new Flex([
|
||||
return new Column([
|
||||
new Container(
|
||||
padding: new EdgeDims.all(10.0),
|
||||
margin: new EdgeDims.all(10.0),
|
||||
@@ -20,7 +20,7 @@ class ContainerApp extends App {
|
||||
new Container(
|
||||
decoration: new BoxDecoration(backgroundColor: const Color(0xFFFFFF00)),
|
||||
padding: new EdgeDims.symmetric(horizontal: 50.0, vertical: 75.0),
|
||||
child: new Flex([
|
||||
child: new Row([
|
||||
new RaisedButton(
|
||||
child: new Text('PRESS ME'),
|
||||
onPressed: () => print("Hello World")
|
||||
@@ -38,7 +38,6 @@ class ContainerApp extends App {
|
||||
)
|
||||
),
|
||||
],
|
||||
direction: FlexDirection.vertical,
|
||||
justifyContent: FlexJustifyContent.spaceBetween
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user