mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Handle comments notifications
This commit is contained in:
@ -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)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user