@@ -229,9 +229,9 @@ class _ListFlowScreenState extends State<ListFlowScreen>
229229 for (var entry in entries) {
230230 if (entry.content is TimelineTimelineItem &&
231231 (entry.content as TimelineTimelineItem ).itemContent
232- is TimelineTweet &&
232+ is TimelineTweet &&
233233 ((entry.content as TimelineTimelineItem ).itemContent as TimelineTweet )
234- .promotedMetadata ==
234+ .promotedMetadata ==
235235 null ) {
236236 TimelineTweet tweet = (entry.content as TimelineTimelineItem )
237237 .itemContent as TimelineTweet ;
@@ -244,7 +244,6 @@ class _ListFlowScreenState extends State<ListFlowScreen>
244244 if (add) {
245245 result.add (entry);
246246 }
247- result.add (entry);
248247 }
249248 }
250249 return result;
@@ -315,34 +314,35 @@ class _ListFlowScreenState extends State<ListFlowScreen>
315314 refreshOnStart: true ,
316315 triggerAxis: Axis .vertical,
317316 controller: _easyRefreshController,
318- childBuilder: (context, pyhsics) => ItemBuilder .buildLoadMoreNotification (
319- onLoad: _onLoad,
320- noMore: _noMore,
321- child: validEntries.isNotEmpty
322- ? WaterfallFlow .extent (
323- physics: pyhsics,
324- controller: widget.nested ? null : _scrollController,
325- padding: MyTheme .responsiveListFlowPadding,
326- mainAxisSpacing: MyTheme .responsiveMainAxisSpacing,
327- crossAxisSpacing: MyTheme .responsiveCrossAxisSpacing,
328- maxCrossAxisExtent: 600 ,
329- children: List .generate (
330- validEntries.length,
331- (index) {
332- return PostItem (
333- entry: validEntries[index],
334- feedbackActions: _getFeedBackActions (validEntries[index]),
335- );
336- },
337- ),
338- )
339- : ItemBuilder .buildEmptyPlaceholder (
340- context: context,
341- text: "暂无内容" ,
342- scrollController: _scrollController,
343- physics: pyhsics,
317+ childBuilder: (context, pyhsics) =>
318+ ItemBuilder .buildLoadMoreNotification (
319+ onLoad: _onLoad,
320+ noMore: _noMore,
321+ child: validEntries.isNotEmpty
322+ ? WaterfallFlow .extent (
323+ physics: pyhsics,
324+ controller: widget.nested ? null : _scrollController,
325+ padding: MyTheme .responsiveListFlowPadding,
326+ mainAxisSpacing: MyTheme .responsiveMainAxisSpacing,
327+ crossAxisSpacing: MyTheme .responsiveCrossAxisSpacing,
328+ maxCrossAxisExtent: 600 ,
329+ children: List .generate (
330+ validEntries.length,
331+ (index) {
332+ return PostItem (
333+ entry: validEntries[index],
334+ feedbackActions: _getFeedBackActions (validEntries[index]),
335+ );
336+ },
344337 ),
345- ),
338+ )
339+ : ItemBuilder .buildEmptyPlaceholder (
340+ context: context,
341+ text: "暂无内容" ,
342+ scrollController: _scrollController,
343+ physics: pyhsics,
344+ ),
345+ ),
346346 );
347347 }
348348}
0 commit comments