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');
|
||||
|
||||
comment() async {
|
||||
final newComment = await showDialog<CommentView>(
|
||||
final newComment = await showCupertinoModalPopup<CommentView>(
|
||||
context: context,
|
||||
child: WriteComment.toPost(post),
|
||||
builder: (_) => WriteComment.toPost(post),
|
||||
);
|
||||
if (newComment != null) {
|
||||
newComments.value = [...newComments.value, newComment];
|
||||
|
|
|
@ -170,9 +170,9 @@ class Comment extends HookWidget {
|
|||
}
|
||||
|
||||
reply() async {
|
||||
final newComment = await showDialog<CommentView>(
|
||||
final newComment = await showCupertinoModalPopup<CommentView>(
|
||||
context: context,
|
||||
child: WriteComment.toComment(comment),
|
||||
builder: (_) => WriteComment.toComment(comment),
|
||||
);
|
||||
if (newComment != null) {
|
||||
newReplies.value = [...newReplies.value, CommentTree(newComment)];
|
||||
|
|
Loading…
Reference in New Issue