mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +00:00
Can access user page from the menu
This commit is contained in:
parent
a29af0fe01
commit
54482fc70f
@ -1,7 +1,9 @@
|
|||||||
import 'package:comunic/helpers/account_helper.dart';
|
import 'package:comunic/helpers/account_helper.dart';
|
||||||
import 'package:comunic/ui/routes/login_route.dart';
|
import 'package:comunic/ui/routes/login_route.dart';
|
||||||
import 'package:comunic/ui/tiles/menu_tile.dart';
|
import 'package:comunic/ui/tiles/menu_tile.dart';
|
||||||
|
import 'package:comunic/utils/account_utils.dart';
|
||||||
import 'package:comunic/utils/intl_utils.dart';
|
import 'package:comunic/utils/intl_utils.dart';
|
||||||
|
import 'package:comunic/utils/navigation_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
/// Menu screen
|
/// Menu screen
|
||||||
@ -54,6 +56,12 @@ class MenuScreen extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return ListView(
|
return ListView(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
MenuTile(
|
||||||
|
title: tr("My page"),
|
||||||
|
onTap: () {
|
||||||
|
openUserPage(context: context, userID: userID());
|
||||||
|
},
|
||||||
|
),
|
||||||
MenuTile(
|
MenuTile(
|
||||||
title: tr("Sign out"),
|
title: tr("Sign out"),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
Loading…
Reference in New Issue
Block a user