♻️ Moved the pinned to the metadata
This commit is contained in:
@@ -547,14 +547,6 @@ class PostHeader extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
if (item.pinMode != null)
|
|
||||||
Row(
|
|
||||||
spacing: 4,
|
|
||||||
children: [
|
|
||||||
const Icon(Symbols.keep, size: 15, fill: 1),
|
|
||||||
Text('pinnedPost').tr().fontSize(13),
|
|
||||||
],
|
|
||||||
).opacity(0.8).padding(horizontal: 8, bottom: 4),
|
|
||||||
Row(
|
Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
spacing: 12,
|
spacing: 12,
|
||||||
@@ -689,6 +681,17 @@ class PostBody extends ConsumerWidget {
|
|||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final metadataChildren = <Widget>[];
|
final metadataChildren = <Widget>[];
|
||||||
|
|
||||||
|
if (item.pinMode != null) {
|
||||||
|
metadataChildren.add(
|
||||||
|
Row(
|
||||||
|
spacing: 8,
|
||||||
|
children: [
|
||||||
|
const Icon(Symbols.push_pin, size: 16),
|
||||||
|
Text('pinnedPost'.tr()).fontSize(13),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
if (item.tags.isNotEmpty) {
|
if (item.tags.isNotEmpty) {
|
||||||
metadataChildren.add(
|
metadataChildren.add(
|
||||||
Wrap(
|
Wrap(
|
||||||
|
|||||||
Reference in New Issue
Block a user