mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-19 02:23: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 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
|
- 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
|
- Add a TimelinePaddingOptions class to store the padding options for the timeline
|
||||||
|
- fix the avatar size to match the new design
|
||||||
|
|
||||||
## 3.0.1
|
## 3.0.1
|
||||||
|
|
||||||
|
|
|
@ -196,7 +196,7 @@ class _TimelinePostScreenState extends State<_TimelinePostScreen> {
|
||||||
28,
|
28,
|
||||||
) ??
|
) ??
|
||||||
CircleAvatar(
|
CircleAvatar(
|
||||||
radius: 20,
|
radius: 14,
|
||||||
backgroundImage:
|
backgroundImage:
|
||||||
CachedNetworkImageProvider(
|
CachedNetworkImageProvider(
|
||||||
post.creator!.imageUrl!,
|
post.creator!.imageUrl!,
|
||||||
|
@ -208,7 +208,7 @@ class _TimelinePostScreenState extends State<_TimelinePostScreen> {
|
||||||
28,
|
28,
|
||||||
) ??
|
) ??
|
||||||
const CircleAvatar(
|
const CircleAvatar(
|
||||||
radius: 20,
|
radius: 14,
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.person,
|
Icons.person,
|
||||||
),
|
),
|
||||||
|
@ -493,7 +493,7 @@ class _TimelinePostScreenState extends State<_TimelinePostScreen> {
|
||||||
28,
|
28,
|
||||||
) ??
|
) ??
|
||||||
CircleAvatar(
|
CircleAvatar(
|
||||||
radius: 20,
|
radius: 14,
|
||||||
backgroundImage: CachedNetworkImageProvider(
|
backgroundImage: CachedNetworkImageProvider(
|
||||||
reaction.creator!.imageUrl!,
|
reaction.creator!.imageUrl!,
|
||||||
),
|
),
|
||||||
|
@ -504,7 +504,7 @@ class _TimelinePostScreenState extends State<_TimelinePostScreen> {
|
||||||
28,
|
28,
|
||||||
) ??
|
) ??
|
||||||
const CircleAvatar(
|
const CircleAvatar(
|
||||||
radius: 20,
|
radius: 14,
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.person,
|
Icons.person,
|
||||||
),
|
),
|
||||||
|
|
|
@ -72,7 +72,7 @@ class _TimelinePostWidgetState extends State<TimelinePostWidget> {
|
||||||
28,
|
28,
|
||||||
) ??
|
) ??
|
||||||
CircleAvatar(
|
CircleAvatar(
|
||||||
radius: 20,
|
radius: 14,
|
||||||
backgroundImage: CachedNetworkImageProvider(
|
backgroundImage: CachedNetworkImageProvider(
|
||||||
widget.post.creator!.imageUrl!,
|
widget.post.creator!.imageUrl!,
|
||||||
),
|
),
|
||||||
|
@ -80,10 +80,10 @@ class _TimelinePostWidgetState extends State<TimelinePostWidget> {
|
||||||
] else ...[
|
] else ...[
|
||||||
widget.options.anonymousAvatarBuilder?.call(
|
widget.options.anonymousAvatarBuilder?.call(
|
||||||
widget.post.creator!,
|
widget.post.creator!,
|
||||||
40,
|
28,
|
||||||
) ??
|
) ??
|
||||||
const CircleAvatar(
|
const CircleAvatar(
|
||||||
radius: 20,
|
radius: 14,
|
||||||
child: Icon(
|
child: Icon(
|
||||||
Icons.person,
|
Icons.person,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue