@@ -22,7 +22,7 @@ class DemoItem extends StatelessWidget {
2222 ///横向布局
2323 child: new Row (
2424 ///主轴居中,即是横向居中
25- mainAxisAlignment: MainAxisAlignment .center ,
25+ mainAxisAlignment: MainAxisAlignment .start ,
2626
2727 ///大小按照最大充满
2828 mainAxisSize: MainAxisSize .max,
@@ -39,13 +39,16 @@ class DemoItem extends StatelessWidget {
3939
4040 ///间隔
4141 new Padding (padding: new EdgeInsets .all (5.0 )),
42-
43- ///显示数量文本
44- new Text (
45- text,
46- style: new TextStyle (color: Colors .grey, fontSize: 14.0 ),
47- overflow: TextOverflow .ellipsis,
48- maxLines: 1 ,
42+ new Container (
43+ width: 60 ,
44+ child:
45+ ///显示数量文本
46+ new Text (
47+ text,
48+ style: new TextStyle (color: Colors .grey, fontSize: 14.0 ),
49+ overflow: TextOverflow .ellipsis,
50+ maxLines: 1 ,
51+ ),
4952 ),
5053 ],
5154 ),
@@ -86,7 +89,7 @@ class DemoItem extends StatelessWidget {
8689 new Row (
8790 crossAxisAlignment: CrossAxisAlignment .start,
8891 children: < Widget > [
89- _getBottomItem (Icons .star, "1000 " ),
92+ _getBottomItem (Icons .star, "10000000000000000000000000000000000000000000000000 " ),
9093 _getBottomItem (Icons .link, "1000" ),
9194 _getBottomItem (Icons .subject, "1000" ),
9295 ],
0 commit comments