1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-29 08:16:28 +00:00

Can easily open current user page

This commit is contained in:
Pierre HUBERT 2020-05-11 13:51:57 +02:00
parent 773cf17da0
commit e7f360c6fc

View File

@ -1,5 +1,6 @@
import 'package:comunic/helpers/users_helper.dart'; import 'package:comunic/helpers/users_helper.dart';
import 'package:comunic/models/user.dart'; import 'package:comunic/models/user.dart';
import 'package:comunic/ui/routes/main_route/main_route.dart';
import 'package:comunic/ui/widgets/account_image_widget.dart'; import 'package:comunic/ui/widgets/account_image_widget.dart';
import 'package:comunic/ui/widgets/safe_state.dart'; import 'package:comunic/ui/widgets/safe_state.dart';
import 'package:comunic/utils/account_utils.dart'; import 'package:comunic/utils/account_utils.dart';
@ -48,6 +49,7 @@ class _CurrentUserPanelState extends SafeState<CurrentUserPanel> {
if (_user == null) return buildCenteredProgressBar(); if (_user == null) return buildCenteredProgressBar();
return ListTile( return ListTile(
onTap: () => MainController.of(context).openCurrentUserPage(),
leading: AccountImageWidget( leading: AccountImageWidget(
user: _user, user: _user,
width: 50, width: 50,