mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-18 18:13:46 +02:00
fix: the avatar size to match the new design
This commit is contained in:
parent
5f6bb26404
commit
504a7de343
3 changed files with 8 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue