mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Turn user page route into a screen
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import 'package:comunic/helpers/virtual_directory_helper.dart';
|
||||
import 'package:comunic/ui/routes/home_route.dart';
|
||||
import 'package:comunic/ui/routes/single_post_route.dart';
|
||||
import 'package:comunic/ui/routes/user_page_route.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:comunic/utils/ui_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@ -16,13 +15,7 @@ void openUserPage({@required int userID, @required BuildContext context}) {
|
||||
assert(userID != null);
|
||||
assert(context != null);
|
||||
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder: (c) => UserPageRoute(
|
||||
userID: userID,
|
||||
),
|
||||
),
|
||||
);
|
||||
HomeController.of(context).openUserPage(userID);
|
||||
}
|
||||
|
||||
/// Open a post in full screen
|
||||
|
Reference in New Issue
Block a user