✨ Post draft
This commit is contained in:
@ -29,8 +29,7 @@ class _AppNavigationBottomBarState extends State<AppNavigationBottomBar> {
|
||||
showUnselectedLabels: false,
|
||||
onTap: (idx) {
|
||||
setState(() => _selectedIndex = idx);
|
||||
AppRouter.instance
|
||||
.pushReplacementNamed(AppNavigation.destinations[idx].page);
|
||||
AppRouter.instance.goNamed(AppNavigation.destinations[idx].page);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
@ -72,8 +72,8 @@ class _PostActionState extends State<PostAction> {
|
||||
title: Text('reply'.tr),
|
||||
onTap: () async {
|
||||
final value = await AppRouter.instance.pushNamed(
|
||||
'postPublishing',
|
||||
extra: PostPublishingArguments(reply: widget.item),
|
||||
'postCreate',
|
||||
extra: PostPublishArguments(reply: widget.item),
|
||||
);
|
||||
if (value != null) {
|
||||
Navigator.pop(context, true);
|
||||
@ -86,8 +86,8 @@ class _PostActionState extends State<PostAction> {
|
||||
title: Text('repost'.tr),
|
||||
onTap: () async {
|
||||
final value = await AppRouter.instance.pushNamed(
|
||||
'postPublishing',
|
||||
extra: PostPublishingArguments(repost: widget.item),
|
||||
'postCreate',
|
||||
extra: PostPublishArguments(repost: widget.item),
|
||||
);
|
||||
if (value != null) {
|
||||
Navigator.pop(context, true);
|
||||
@ -104,8 +104,8 @@ class _PostActionState extends State<PostAction> {
|
||||
title: Text('edit'.tr),
|
||||
onTap: () async {
|
||||
final value = await AppRouter.instance.pushNamed(
|
||||
'postPublishing',
|
||||
extra: PostPublishingArguments(edit: widget.item),
|
||||
'postCreate',
|
||||
extra: PostPublishArguments(edit: widget.item),
|
||||
);
|
||||
if (value != null) {
|
||||
Navigator.pop(context, true);
|
||||
|
@ -133,7 +133,7 @@ class _PostItemState extends State<PostItem> {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: widgets,
|
||||
);
|
||||
).paddingOnly(top: 4);
|
||||
}
|
||||
}
|
||||
|
||||
@ -222,7 +222,7 @@ class _PostItemState extends State<PostItem> {
|
||||
top: 2,
|
||||
bottom: hasAttachment ? 4 : 0,
|
||||
),
|
||||
buildFooter().paddingOnly(left: 16, top: 2),
|
||||
buildFooter().paddingOnly(left: 16),
|
||||
AttachmentList(
|
||||
parentId: widget.overrideAttachmentParent ?? widget.item.alias,
|
||||
attachmentsId: item.attachments ?? List.empty(),
|
||||
@ -284,7 +284,7 @@ class _PostItemState extends State<PostItem> {
|
||||
);
|
||||
},
|
||||
),
|
||||
buildFooter().paddingOnly(left: 12, top: 2),
|
||||
buildFooter().paddingOnly(left: 12),
|
||||
],
|
||||
),
|
||||
)
|
||||
|
Reference in New Issue
Block a user