fix: the avatar size to match the new design

This commit is contained in:
Freek van de Ven 2024-05-22 14:58:27 +02:00
parent 5f6bb26404
commit 504a7de343
3 changed files with 8 additions and 7 deletions

View file

@ -12,6 +12,7 @@
- Change the default blue color to the primary color of the Theme.of(context) in the timeline
- Change the TimelineTranslations constructor to require all translations or use the TimelineTranslations.empty constructor if you don't want to specify all translations
- Add a TimelinePaddingOptions class to store the padding options for the timeline
- fix the avatar size to match the new design
## 3.0.1

View file

@ -196,7 +196,7 @@ class _TimelinePostScreenState extends State<_TimelinePostScreen> {
28,
) ??
CircleAvatar(
radius: 20,
radius: 14,
backgroundImage:
CachedNetworkImageProvider(
post.creator!.imageUrl!,
@ -208,7 +208,7 @@ class _TimelinePostScreenState extends State<_TimelinePostScreen> {
28,
) ??
const CircleAvatar(
radius: 20,
radius: 14,
child: Icon(
Icons.person,
),
@ -493,7 +493,7 @@ class _TimelinePostScreenState extends State<_TimelinePostScreen> {
28,
) ??
CircleAvatar(
radius: 20,
radius: 14,
backgroundImage: CachedNetworkImageProvider(
reaction.creator!.imageUrl!,
),
@ -504,7 +504,7 @@ class _TimelinePostScreenState extends State<_TimelinePostScreen> {
28,
) ??
const CircleAvatar(
radius: 20,
radius: 14,
child: Icon(
Icons.person,
),

View file

@ -72,7 +72,7 @@ class _TimelinePostWidgetState extends State<TimelinePostWidget> {
28,
) ??
CircleAvatar(
radius: 20,
radius: 14,
backgroundImage: CachedNetworkImageProvider(
widget.post.creator!.imageUrl!,
),
@ -80,10 +80,10 @@ class _TimelinePostWidgetState extends State<TimelinePostWidget> {
] else ...[
widget.options.anonymousAvatarBuilder?.call(
widget.post.creator!,
40,
28,
) ??
const CircleAvatar(
radius: 20,
radius: 14,
child: Icon(
Icons.person,
),