use cupertino modal popups
This commit is contained in:
parent
5409cde5d0
commit
910e214f48
|
@ -62,9 +62,9 @@ class FullPostPage extends HookWidget {
|
||||||
sharePost() => Share.text('Share post', post.apId, 'text/plain');
|
sharePost() => Share.text('Share post', post.apId, 'text/plain');
|
||||||
|
|
||||||
comment() async {
|
comment() async {
|
||||||
final newComment = await showDialog<CommentView>(
|
final newComment = await showCupertinoModalPopup<CommentView>(
|
||||||
context: context,
|
context: context,
|
||||||
child: WriteComment.toPost(post),
|
builder: (_) => WriteComment.toPost(post),
|
||||||
);
|
);
|
||||||
if (newComment != null) {
|
if (newComment != null) {
|
||||||
newComments.value = [...newComments.value, newComment];
|
newComments.value = [...newComments.value, newComment];
|
||||||
|
|
|
@ -170,9 +170,9 @@ class Comment extends HookWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
reply() async {
|
reply() async {
|
||||||
final newComment = await showDialog<CommentView>(
|
final newComment = await showCupertinoModalPopup<CommentView>(
|
||||||
context: context,
|
context: context,
|
||||||
child: WriteComment.toComment(comment),
|
builder: (_) => WriteComment.toComment(comment),
|
||||||
);
|
);
|
||||||
if (newComment != null) {
|
if (newComment != null) {
|
||||||
newReplies.value = [...newReplies.value, CommentTree(newComment)];
|
newReplies.value = [...newReplies.value, CommentTree(newComment)];
|
||||||
|
|
Loading…
Reference in New Issue