Skip to content

Commit 67ac7ea

Browse files
committed
Platform web fixes
1 parent c118bbf commit 67ac7ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/pages/post_view_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ class _PostViewPageState extends State<PostViewPage>
453453
child: Row(
454454
children: <Widget>[
455455
CircleAvatar(
456-
backgroundImage: Platform.isWindows
456+
backgroundImage: kIsWeb || Platform.isWindows
457457
? NetworkImage(
458458
"${AppSettings.currentBaseUrl}/data/avatars/${_post.creatorId}.jpg")
459459
: CachedNetworkImageProvider(

lib/pages/post_view_page_by_post_id.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ class _PostViewPageByPostIDState extends State<PostViewPageByPostID>
442442
child: Row(
443443
children: <Widget>[
444444
CircleAvatar(
445-
backgroundImage: Platform.isWindows
445+
backgroundImage: kIsWeb || Platform.isWindows
446446
? NetworkImage(
447447
"${AppSettings.currentBaseUrl}/data/avatars/${_post.creatorId}.jpg")
448448
: CachedNetworkImageProvider(

0 commit comments

Comments
 (0)