1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 06:49:22 +00:00

Can access user page from the menu

This commit is contained in:
Pierre HUBERT 2019-06-15 16:30:20 +02:00
parent a29af0fe01
commit 54482fc70f

View File

@ -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: () {