Skip to content

Commit 7d744f3

Browse files
Update 1.0.1
1 parent 999b58b commit 7d744f3

3 files changed

Lines changed: 32 additions & 32 deletions

File tree

lib/Screens/Detail/user_detail_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class _UserDetailScreenState extends State<UserDetailScreen>
124124
),
125125
TabItemData.build(
126126
context,
127-
"推文与回复",
127+
"回复",
128128
(key2, scrollController2) => UserTweetFlowScreen(
129129
key: key2,
130130
userId: user!.restId!,

lib/Screens/Flow/list_flow_screen.dart

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: twitee
2-
version: 1.0.0+100
2+
version: 1.0.1+101
33
description: An awesome two-factor authenticator which supports cloud storage and multiple platforms.
44
publish_to: none
55

0 commit comments

Comments
 (0)