fix: use listPostCreatorTitleStyle for post creator rather than postCreatorTitleStyle

It's shown in a list and the rest of the text in the widget is already
styled through the list* parameters, so it only makes sense for this one
to be too.
This commit is contained in:
Bart Ribbers 2025-04-22 11:16:40 +02:00
parent 5abc859c24
commit 4f347634db
3 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
## Next ## Next
- Add minimal spacing between a post author and title in the post widget - Add minimal spacing between a post author and title in the post widget
- Use listPostCreatorTitleStyle for post creator localizations when showing posts in a list
## 5.1.1 ## 5.1.1

View file

@ -213,7 +213,7 @@ class _TimelinePostScreenState extends State<TimelinePostScreen> {
post.creator?.fullName ?? post.creator?.fullName ??
widget.options.translations.anonymousUser, widget.options.translations.anonymousUser,
style: widget.options.theme.textStyles style: widget.options.theme.textStyles
.postCreatorTitleStyle ?? .listPostCreatorTitleStyle ??
theme.textTheme.titleSmall!.copyWith( theme.textTheme.titleSmall!.copyWith(
color: Colors.black, color: Colors.black,
), ),

View file

@ -103,7 +103,7 @@ class _TimelinePostWidgetState extends State<TimelinePostWidget> {
widget.post.creator?.fullName ?? widget.post.creator?.fullName ??
widget.options.translations.anonymousUser, widget.options.translations.anonymousUser,
style: widget.options.theme.textStyles style: widget.options.theme.textStyles
.postCreatorTitleStyle ?? .listPostCreatorTitleStyle ??
theme.textTheme.titleSmall!.copyWith( theme.textTheme.titleSmall!.copyWith(
color: Colors.black, color: Colors.black,
), ),