mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-06-23 07:29:43 +08:00
fix:code
This commit is contained in:
@ -18,13 +18,13 @@ class AlignAlignment extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new Container(
|
||||
return Container(
|
||||
color: Color(0xffd81b60),
|
||||
width: 90.0,
|
||||
height: 50.0,
|
||||
child: new Align(
|
||||
child: Align(
|
||||
alignment: status,
|
||||
child: new Text(
|
||||
child: Text(
|
||||
dec,
|
||||
style: TextStyle(fontSize: 12.0, color: Color(0xffffffff)),
|
||||
),
|
||||
@ -45,10 +45,10 @@ class AlignFactor extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new Container(
|
||||
margin: new EdgeInsets.only(top: 10.0, bottom: 10.0),
|
||||
return Container(
|
||||
margin: EdgeInsets.only(top: 10.0, bottom: 10.0),
|
||||
color: Color(0xffd81b60),
|
||||
child: new Align(
|
||||
child: Align(
|
||||
alignment: status,
|
||||
widthFactor: wFactor,
|
||||
heightFactor: hFactor,
|
||||
|
@ -40,10 +40,10 @@ class _DemoState extends State<Demo> {
|
||||
}
|
||||
|
||||
Column _alignCreate() {
|
||||
return new Column(
|
||||
return Column(
|
||||
children: <Widget>[
|
||||
SizedBox(height: 10.0),
|
||||
new Row(
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: <Widget>[
|
||||
AlignAlignment(Alignment.center, 'center'),
|
||||
@ -51,7 +51,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
),
|
||||
SizedBox(height: 10.0),
|
||||
new Row(
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: <Widget>[
|
||||
AlignAlignment(Alignment.centerRight, 'centerRight'),
|
||||
@ -60,7 +60,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
),
|
||||
SizedBox(height: 10.0),
|
||||
new Row(
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: <Widget>[
|
||||
AlignAlignment(Alignment.topLeft, 'topLeft'),
|
||||
@ -71,11 +71,11 @@ class _DemoState extends State<Demo> {
|
||||
SizedBox(height: 10.0),
|
||||
MarkdownBody(data: _flatText1),
|
||||
Container(
|
||||
margin: new EdgeInsets.only(top: 20.0, bottom: 20.0),
|
||||
margin: EdgeInsets.only(top: 20.0, bottom: 20.0),
|
||||
color: Color(0xffe91e63),
|
||||
child: new Align(
|
||||
child: Align(
|
||||
alignment: Alignment.topLeft,
|
||||
child: new Text(
|
||||
child: Text(
|
||||
"Align",
|
||||
style: TextStyle(color: Color(0xffffffff)),
|
||||
),
|
||||
|
Reference in New Issue
Block a user