Skip to content

Commit

Permalink
feat: show post text above the media in post feed (#479)
Browse files Browse the repository at this point in the history
## Description
Reorders post content to display text before media and adds 10dp top
spacing between them.
## Additional Notes
N/A

## Type of Change
- [ ] Bug fix
- [x] New feature
- [ ] Breaking change
- [ ] Refactoring
- [ ] Documentation
- [ ] Chore

## Screenshots (if applicable)
<img width="180" alt="image"
src="https://github.com/user-attachments/assets/55b893ee-ae02-4721-9c16-7d3864cfcfa9">
  • Loading branch information
ice-kreios authored Dec 27, 2024
1 parent 78b34e8 commit 1346fc4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ class PostBody extends HookConsumerWidget {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
if (postMedia.isNotEmpty) PostMedia(media: postMedia),
Text.rich(
postText,
),
if (postMedia.isNotEmpty)
Padding(
padding: EdgeInsets.only(
top: 10.0.s,
),
child: PostMedia(media: postMedia),
),
],
);
}
Expand Down

0 comments on commit 1346fc4

Please sign in to comment.