From 42ebde872e9da7c39f1c505a184bf6cdf31f106b Mon Sep 17 00:00:00 2001 From: krawieck Date: Wed, 9 Sep 2020 17:49:01 +0200 Subject: [PATCH] =?UTF-8?q?too=20much=20copy-pasting=20=F0=9F=91=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/util/goto.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util/goto.dart b/lib/util/goto.dart index 04f054f..858ee41 100644 --- a/lib/util/goto.dart +++ b/lib/util/goto.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import '../pages/community.dart'; +import '../pages/full_post.dart'; import '../pages/instance.dart'; import '../widgets/user_profile.dart'; @@ -41,4 +42,4 @@ abstract class goToUser { void goToPost(BuildContext context, String instanceUrl, int postId) => Navigator.of(context).push(MaterialPageRoute( builder: (context) => - UserProfile(instanceUrl: instanceUrl, userId: postId))); + FullPostPage(instanceUrl: instanceUrl, id: postId)));