Showing
1 changed file
with
33 additions
and
30 deletions
... | @@ -53,8 +53,8 @@ class _PoemDetailPageState extends State<PoemDetailPage> { | ... | @@ -53,8 +53,8 @@ class _PoemDetailPageState extends State<PoemDetailPage> { |
53 | children: [ | 53 | children: [ |
54 | Container( | 54 | Container( |
55 | margin: const EdgeInsets.symmetric( | 55 | margin: const EdgeInsets.symmetric( |
56 | - vertical: 40.0, horizontal: 20.0), | 56 | + vertical: 30.0, horizontal: 20.0), |
57 | - height: 240.0, | 57 | + height: MediaQuery.of(context).size.height - 200, |
58 | width: double.infinity, | 58 | width: double.infinity, |
59 | decoration: BoxDecoration( | 59 | decoration: BoxDecoration( |
60 | color: Colors.grey.shade200.withOpacity(0.1), | 60 | color: Colors.grey.shade200.withOpacity(0.1), |
... | @@ -74,8 +74,8 @@ class _PoemDetailPageState extends State<PoemDetailPage> { | ... | @@ -74,8 +74,8 @@ class _PoemDetailPageState extends State<PoemDetailPage> { |
74 | child: Padding( | 74 | child: Padding( |
75 | padding: const EdgeInsets.all(10.0), | 75 | padding: const EdgeInsets.all(10.0), |
76 | child: Column( | 76 | child: Column( |
77 | - children: const [ | 77 | + children: [ |
78 | - Text( | 78 | + const Text( |
79 | "题破山寺后禅院", | 79 | "题破山寺后禅院", |
80 | style: TextStyle( | 80 | style: TextStyle( |
81 | fontSize: 24.0, | 81 | fontSize: 24.0, |
... | @@ -83,7 +83,7 @@ class _PoemDetailPageState extends State<PoemDetailPage> { | ... | @@ -83,7 +83,7 @@ class _PoemDetailPageState extends State<PoemDetailPage> { |
83 | ), | 83 | ), |
84 | ), | 84 | ), |
85 | Gaps.vGap16, | 85 | Gaps.vGap16, |
86 | - Text( | 86 | + const Text( |
87 | "常建", | 87 | "常建", |
88 | style: TextStyle( | 88 | style: TextStyle( |
89 | fontSize: 18.0, | 89 | fontSize: 18.0, |
... | @@ -91,32 +91,27 @@ class _PoemDetailPageState extends State<PoemDetailPage> { | ... | @@ -91,32 +91,27 @@ class _PoemDetailPageState extends State<PoemDetailPage> { |
91 | ), | 91 | ), |
92 | ), | 92 | ), |
93 | Gaps.vGap12, | 93 | Gaps.vGap12, |
94 | - Text( | 94 | + const Text( |
95 | "清晨入古寺,初日照高林。\n竹径通幽处,禅房花木深。\n山光悦鸟性,潭影空人心。\n万籁此都寂,但余钟磬音。", | 95 | "清晨入古寺,初日照高林。\n竹径通幽处,禅房花木深。\n山光悦鸟性,潭影空人心。\n万籁此都寂,但余钟磬音。", |
96 | style: TextStyle( | 96 | style: TextStyle( |
97 | color: Colors.white, | 97 | color: Colors.white, |
98 | fontFamily: "ZCOOLXiaoWei", | 98 | fontFamily: "ZCOOLXiaoWei", |
99 | fontSize: 24.0), | 99 | fontSize: 24.0), |
100 | ), | 100 | ), |
101 | - ], | 101 | + Gaps.vGap24, |
102 | - ), | 102 | + Container( |
103 | - ), | 103 | + alignment: Alignment.centerLeft, |
104 | - ), | 104 | + padding: const EdgeInsets.symmetric(vertical: 5.0, horizontal: 10.0), |
105 | - ), | 105 | + child: const Text( |
106 | - ), | ||
107 | - ), | ||
108 | - const Padding( | ||
109 | - padding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 25.0), | ||
110 | - child: Text( | ||
111 | "100位用户朗读录制提交了“临境”", | 106 | "100位用户朗读录制提交了“临境”", |
112 | - style: TextStyle(color: Colors.black, fontSize: 16.0), | 107 | + style: TextStyle(color: Colors.white, fontSize: 15.0), |
113 | ), | 108 | ), |
114 | ), | 109 | ), |
115 | - Container( | 110 | + Expanded( |
111 | + child: Container( | ||
116 | padding: const EdgeInsets.symmetric( | 112 | padding: const EdgeInsets.symmetric( |
117 | - vertical: 10.0, horizontal: 25.0), | 113 | + vertical: 5.0, horizontal: 10.0), |
118 | - width: 400.0, | 114 | + width: double.infinity, |
119 | - height: 160.0, | ||
120 | child: ListView.builder( | 115 | child: ListView.builder( |
121 | itemBuilder: (BuildContext context, int index) { | 116 | itemBuilder: (BuildContext context, int index) { |
122 | return Wrap( | 117 | return Wrap( |
... | @@ -135,18 +130,26 @@ class _PoemDetailPageState extends State<PoemDetailPage> { | ... | @@ -135,18 +130,26 @@ class _PoemDetailPageState extends State<PoemDetailPage> { |
135 | ); | 130 | ); |
136 | }), | 131 | }), |
137 | ), | 132 | ), |
138 | - Row( | ||
139 | - children: [ | ||
140 | - IconButton( | ||
141 | - icon: const Icon(Icons.mic_none), | ||
142 | - onPressed: () {}, | ||
143 | ), | 133 | ), |
144 | - IconButton( | ||
145 | - icon: const Icon(Icons.camera_alt_outlined), | ||
146 | - onPressed: () {}, | ||
147 | - ) | ||
148 | ], | 134 | ], |
149 | ), | 135 | ), |
136 | + ), | ||
137 | + ), | ||
138 | + ), | ||
139 | + ), | ||
140 | + ), | ||
141 | + // Row( | ||
142 | + // children: [ | ||
143 | + // IconButton( | ||
144 | + // icon: const Icon(Icons.mic_none), | ||
145 | + // onPressed: () {}, | ||
146 | + // ), | ||
147 | + // IconButton( | ||
148 | + // icon: const Icon(Icons.camera_alt_outlined), | ||
149 | + // onPressed: () {}, | ||
150 | + // ) | ||
151 | + // ], | ||
152 | + // ), | ||
150 | ], | 153 | ], |
151 | ), | 154 | ), |
152 | ), | 155 | ), | ... | ... |
-
Please register or login to post a comment