1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Handle comments notifications

This commit is contained in:
2019-11-02 12:46:17 +01:00
parent 5250eb59b4
commit 053035f350
5 changed files with 96 additions and 5 deletions

View File

@ -1,3 +1,4 @@
import 'package:comunic/ui/routes/single_post_route.dart';
import 'package:comunic/ui/routes/user_page_route.dart';
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';
@ -14,8 +15,14 @@ void openUserPage({@required int userID, @required BuildContext context}) {
Navigator.of(context).push(
MaterialPageRoute(
builder: (c) => UserPageRoute(
userID: userID,
),
userID: userID,
),
),
);
}
/// Open a post in full screen
void openPostFullScreen(int postID, BuildContext context) {
Navigator.of(context)
.push(MaterialPageRoute(builder: (c) => SinglePostRoute(postID: postID)));
}