Showing
2 changed files
with
24 additions
and
5 deletions
... | @@ -57,10 +57,26 @@ class CategoryItem extends StatelessWidget { | ... | @@ -57,10 +57,26 @@ class CategoryItem extends StatelessWidget { |
57 | mainAxisSize: MainAxisSize.max, | 57 | mainAxisSize: MainAxisSize.max, |
58 | //交叉轴的布局方式,对于column来说就是水平方向的布局方式 | 58 | //交叉轴的布局方式,对于column来说就是水平方向的布局方式 |
59 | crossAxisAlignment: CrossAxisAlignment.center, | 59 | crossAxisAlignment: CrossAxisAlignment.center, |
60 | - children: const <Widget>[ | 60 | + children: <Widget>[ |
61 | - Text("此地"), | 61 | + const Text("此地"), |
62 | - Text("北京 海淀 万泉庄", maxLines: 3,), | 62 | + // Icon( |
63 | - Text("京", style: TextStyle(fontSize: 30)), | 63 | + // Icons.query_builder_outlined, |
64 | + // size: 15.0, | ||
65 | + // ), | ||
66 | + Wrap( | ||
67 | + crossAxisAlignment: WrapCrossAlignment.center, | ||
68 | + children: const [ | ||
69 | + Icon( | ||
70 | + Icons.room_outlined, | ||
71 | + size: 15.0, | ||
72 | + ), | ||
73 | + Text( | ||
74 | + "北京 海淀 万泉庄", | ||
75 | + maxLines: 3, | ||
76 | + ), | ||
77 | + ], | ||
78 | + ), | ||
79 | + const Text("京", style: TextStyle(fontSize: 30)), | ||
64 | ], | 80 | ], |
65 | ), | 81 | ), |
66 | Gaps.vGap16, | 82 | Gaps.vGap16, |
... | @@ -68,7 +84,10 @@ class CategoryItem extends StatelessWidget { | ... | @@ -68,7 +84,10 @@ class CategoryItem extends StatelessWidget { |
68 | "前不见古人,后不见来者。\n念天地之悠悠,独怆然而涕下。\n", | 84 | "前不见古人,后不见来者。\n念天地之悠悠,独怆然而涕下。\n", |
69 | style: TextStyle(fontSize: 22.0, fontFamily: "ZCOOLXiaoWei"), | 85 | style: TextStyle(fontSize: 22.0, fontFamily: "ZCOOLXiaoWei"), |
70 | ), | 86 | ), |
71 | - const Text("[唐] 陈子昂《登幽州台歌》", maxLines: 1,), | 87 | + const Text( |
88 | + "[唐] 陈子昂《登幽州台歌》", | ||
89 | + maxLines: 1, | ||
90 | + ), | ||
72 | ], | 91 | ], |
73 | ), | 92 | ), |
74 | ), | 93 | ), | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment