Skip to content

Commit f734335

Browse files
committed
🐛 (fix) Display new comment on top of tha all comment
Ref -> #65
1 parent 28d680d commit f734335

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/state/feedState.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,8 @@ class FeedState extends AppState {
511511
}
512512
if (tweetReplyMap != null && tweetReplyMap.length > 0) {
513513
if (tweetReplyMap[tweet.parentkey] != null) {
514-
tweetReplyMap[tweet.parentkey].add(tweet);
514+
/// Instert new comment at the top of all available comment
515+
tweetReplyMap[tweet.parentkey].insert(0, tweet);
515516
} else {
516517
tweetReplyMap[tweet.parentkey] = [tweet];
517518
}

lib/ui/page/common/splash.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ class _SplashPageState extends State<SplashPage> {
118118
/// To check current installed app version check [version] in pubspec.yaml
119119
/// you have to add latest app version in firebase remote config
120120
/// To fetch this key go to project setting in firebase
121-
/// Click on `cloud messaging` tab
122-
/// Copy server key from `Project credentials`
123-
/// Now goto `Remote Congig` section in fireabse
121+
/// Open `Remote Config` section in fireabse
124122
/// Add [appVersion] as paramerter key and below json in Default value
125123
/// ``` json
126124
/// {

0 commit comments

Comments
 (0)