Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: postOverviewScreen not displaying creators name #45

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.1

- Fixed postOverviewScreen not displaying the creators name.

## 3.0.0
- Add default styling and default flow

Expand Down
6 changes: 3 additions & 3 deletions packages/flutter_timeline/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
name: flutter_timeline
description: Visual elements and interface combined into one package
version: 3.0.0
version: 3.0.1

publish_to: none

Expand All @@ -19,13 +19,13 @@ dependencies:
git:
url: https://github.com/Iconica-Development/flutter_timeline
path: packages/flutter_timeline_view
ref: 3.0.0
ref: 3.0.1

flutter_timeline_interface:
git:
url: https://github.com/Iconica-Development/flutter_timeline
path: packages/flutter_timeline_interface
ref: 3.0.0
ref: 3.0.1

dev_dependencies:
flutter_lints: ^2.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ class FirebaseTimelinePostService
updatedReactions.add(reaction.copyWith(creator: user));
}
}
var updatedPost = post.copyWith(reactions: updatedReactions);
var updatedPost = post.copyWith(
reactions: updatedReactions,
creator: await _userService.getUser(post.creatorId),
);
posts = posts.map((p) => (p.id == post.id) ? updatedPost : p).toList();
notifyListeners();
return updatedPost;
Expand Down
4 changes: 2 additions & 2 deletions packages/flutter_timeline_firebase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

name: flutter_timeline_firebase
description: Implementation of the Flutter Timeline interface for Firebase.
version: 3.0.0
version: 3.0.1

publish_to: none

Expand All @@ -23,7 +23,7 @@ dependencies:
git:
url: https://github.com/Iconica-Development/flutter_timeline
path: packages/flutter_timeline_interface
ref: 3.0.0
ref: 3.0.1

dev_dependencies:
flutter_lints: ^2.0.0
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_timeline_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

name: flutter_timeline_interface
description: Interface for the service of the Flutter Timeline component
version: 3.0.0
version: 3.0.1

publish_to: none

Expand Down
4 changes: 2 additions & 2 deletions packages/flutter_timeline_view/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

name: flutter_timeline_view
description: Visual elements of the Flutter Timeline Component
version: 3.0.0
version: 3.0.1

publish_to: none

Expand All @@ -23,7 +23,7 @@ dependencies:
git:
url: https://github.com/Iconica-Development/flutter_timeline
path: packages/flutter_timeline_interface
ref: 3.0.0
ref: 3.0.1
flutter_image_picker:
git:
url: https://github.com/Iconica-Development/flutter_image_picker
Expand Down