@@ -179,25 +179,21 @@ class _NovelViewerPageState extends State<NovelViewerPage> {
179179 }
180180
181181 Widget _buildBody (BuildContext context) {
182- return Scrollbar (
183- child: ListView .builder (
184- padding: EdgeInsets .all (0 ),
185- controller: _controller,
186- itemBuilder: (context, index) {
187- if (index == 0 ) {
188- return _buildHeader (context);
189- } else if (index == _novelStore.spans.length + 1 ) {
190- return _buildCommentButton (context);
191- } else if (index == _novelStore.spans.length + 2 ) {
192- return Container (
193- height: 10 + MediaQuery .of (context).padding.bottom,
194- );
195- } else {
196- return _buildSpanText (context, index - 1 , _novelStore.spans);
197- }
198- },
199- itemCount: 3 + _novelStore.spans.length,
200- ),
182+ return ListView .builder (
183+ padding: EdgeInsets .all (0 ),
184+ controller: _controller,
185+ itemBuilder: (context, index) {
186+ if (index == 0 ) {
187+ return _buildHeader (context);
188+ } else if (index == _novelStore.spans.length + 1 ) {
189+ return _buildCommentButton (context);
190+ } else if (index == _novelStore.spans.length + 2 ) {
191+ return Container (height: 10 + MediaQuery .of (context).padding.bottom);
192+ } else {
193+ return _buildSpanText (context, index - 1 , _novelStore.spans);
194+ }
195+ },
196+ itemCount: 3 + _novelStore.spans.length,
201197 );
202198 }
203199
0 commit comments