Showing
1 changed file
with
35 additions
and
33 deletions
| ... | @@ -74,7 +74,7 @@ class _PoemRecordAudioPageState extends State<PoemRecordAudioPage> { | ... | @@ -74,7 +74,7 @@ class _PoemRecordAudioPageState extends State<PoemRecordAudioPage> { |
| 74 | margin: | 74 | margin: |
| 75 | EdgeInsets.symmetric(vertical: 20.px, horizontal: 20.px), | 75 | EdgeInsets.symmetric(vertical: 20.px, horizontal: 20.px), |
| 76 | height: MediaQuery.of(context).size.height - | 76 | height: MediaQuery.of(context).size.height - |
| 77 | - 110.px - | 77 | + 120.px - |
| 78 | widget.poemPanelHeight, | 78 | widget.poemPanelHeight, |
| 79 | width: double.infinity, | 79 | width: double.infinity, |
| 80 | decoration: BoxDecoration( | 80 | decoration: BoxDecoration( |
| ... | @@ -94,41 +94,43 @@ class _PoemRecordAudioPageState extends State<PoemRecordAudioPage> { | ... | @@ -94,41 +94,43 @@ class _PoemRecordAudioPageState extends State<PoemRecordAudioPage> { |
| 94 | ), | 94 | ), |
| 95 | child: Padding( | 95 | child: Padding( |
| 96 | padding: EdgeInsets.all(10.px), | 96 | padding: EdgeInsets.all(10.px), |
| 97 | - child: Flex( | 97 | + child: SingleChildScrollView( |
| 98 | - direction: Axis.vertical, | 98 | + child: Column( |
| 99 | - children: [ | 99 | + crossAxisAlignment: CrossAxisAlignment.center, |
| 100 | - PoemContent( | 100 | + children: [ |
| 101 | - title: "题破山寺后禅院", | 101 | + PoemContent( |
| 102 | - author: "常建", | 102 | + title: "题破山寺后禅院", |
| 103 | - poemStr: poemStr, | 103 | + author: "常建", |
| 104 | - fontSize: 20.px, | 104 | + poemStr: poemStr, |
| 105 | - ), | 105 | + fontSize: 22.px, |
| 106 | - Stack( | 106 | + ), |
| 107 | - alignment: Alignment.center, | 107 | + Stack( |
| 108 | - children: [ | 108 | + alignment: Alignment.center, |
| 109 | - Positioned( | 109 | + children: [ |
| 110 | - left: 10.px, | 110 | + Positioned( |
| 111 | - child: IconButton( | 111 | + left: 10.px, |
| 112 | - icon: Icon( | 112 | + child: IconButton( |
| 113 | - Icons.camera_alt_outlined, | 113 | + icon: Icon( |
| 114 | - size: 28.px, | 114 | + Icons.camera_alt_outlined, |
| 115 | + size: 28.px, | ||
| 116 | + ), | ||
| 117 | + onPressed: () {}, | ||
| 115 | ), | 118 | ), |
| 116 | - onPressed: () {}, | ||
| 117 | ), | 119 | ), |
| 118 | - ), | 120 | + SizedBox( |
| 119 | - SizedBox( | 121 | + width: double.infinity, |
| 120 | - width: double.infinity, | 122 | + height: 80.px, |
| 121 | - height: 80.px, | 123 | + child: PoemVoiceWidget( |
| 122 | - child: PoemVoiceWidget( | 124 | + startRecord: startRecord, |
| 123 | - startRecord: startRecord, | 125 | + stopRecord: stopRecord, |
| 124 | - stopRecord: stopRecord, | 126 | + // 加入定制化Container的相关属性 |
| 125 | - // 加入定制化Container的相关属性 | 127 | + height: 40.px, |
| 126 | - height: 40.px, | 128 | + ), |
| 127 | ), | 129 | ), |
| 128 | - ), | 130 | + ], |
| 129 | - ], | 131 | + ), |
| 130 | - ), | 132 | + ], |
| 131 | - ], | 133 | + ), |
| 132 | ), | 134 | ), |
| 133 | ), | 135 | ), |
| 134 | ), | 136 | ), | ... | ... |
-
Please register or login to post a comment