This commit is contained in:
xiaojia22326@163.com
2019-01-31 17:18:16 +08:00
parent acfe8f6ed8
commit c4cbd02123
130 changed files with 773 additions and 913 deletions

View File

@ -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,

View File

@ -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)),
),