✨ Reload after post
This commit is contained in:
parent
eb01942e2d
commit
cba4f19b17
@ -84,7 +84,9 @@ class _ExploreScreenState extends State<ExploreScreen> {
|
|||||||
return FloatingActionButton(
|
return FloatingActionButton(
|
||||||
child: const Icon(Icons.edit),
|
child: const Icon(Icons.edit),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
router.push("/post/moments");
|
router.push("/post/moments").then((value) {
|
||||||
|
if (value == true) paginationController.refresh();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -51,7 +51,7 @@ class _CommentEditorScreenState extends State<CommentEditorScreen> {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if (router.canPop()) {
|
if (router.canPop()) {
|
||||||
router.pop();
|
router.pop(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setState(() => isSubmitting = false);
|
setState(() => isSubmitting = false);
|
||||||
@ -105,7 +105,8 @@ class _CommentEditorScreenState extends State<CommentEditorScreen> {
|
|||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
controller: contentController,
|
controller: contentController,
|
||||||
decoration: const InputDecoration.collapsed(
|
decoration: const InputDecoration.collapsed(
|
||||||
hintText: "What do you want to say?"),
|
hintText: "What do you want to say?",
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -41,7 +41,7 @@ class _MomentEditorScreenState extends State<MomentEditorScreen> {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if (router.canPop()) {
|
if (router.canPop()) {
|
||||||
router.pop();
|
router.pop(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setState(() => isSubmitting = false);
|
setState(() => isSubmitting = false);
|
||||||
@ -95,7 +95,8 @@ class _MomentEditorScreenState extends State<MomentEditorScreen> {
|
|||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
controller: contentController,
|
controller: contentController,
|
||||||
decoration: const InputDecoration.collapsed(
|
decoration: const InputDecoration.collapsed(
|
||||||
hintText: "What\'s happened?!"),
|
hintText: "What's happened?!",
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -108,7 +109,8 @@ class _MomentEditorScreenState extends State<MomentEditorScreen> {
|
|||||||
snapshot.data?.getBool(
|
snapshot.data?.getBool(
|
||||||
"editor.hide_website_recommendation") ==
|
"editor.hide_website_recommendation") ==
|
||||||
null) {
|
null) {
|
||||||
snapshot.data?.remove("editor.hide_website_recommendation");
|
snapshot.data
|
||||||
|
?.remove("editor.hide_website_recommendation");
|
||||||
return MaterialBanner(
|
return MaterialBanner(
|
||||||
padding: const EdgeInsets.all(20),
|
padding: const EdgeInsets.all(20),
|
||||||
content: const Text(
|
content: const Text(
|
||||||
|
@ -92,7 +92,11 @@ class _CommentListWidgetState extends State<CommentListWidget> {
|
|||||||
icon: const Icon(Icons.edit),
|
icon: const Icon(Icons.edit),
|
||||||
label: const Text("LEAVE COMMENT"),
|
label: const Text("LEAVE COMMENT"),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
router.push("/post/comments", extra: widget.parent);
|
router
|
||||||
|
.push("/post/comments", extra: widget.parent)
|
||||||
|
.then((value) {
|
||||||
|
if (value == true) paginationController.refresh();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user