Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
fix(Post): Make image quadratic
Browse files Browse the repository at this point in the history
  • Loading branch information
moverval committed Jan 3, 2024
1 parent c671702 commit 11b79d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/components/Post.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,14 @@ class Post extends StatelessWidget {
],
),
),
image,
SizedBox(
height: MediaQuery.of(context).size.width,
width: MediaQuery.of(context).size.width,
child: FittedBox(
fit: BoxFit.cover,
child: image,
),
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 15),
child: Column(
Expand Down

0 comments on commit 11b79d8

Please sign in to comment.