replace shell of gotouser with an actual call of function

This commit is contained in:
krawieck 2021-01-09 20:01:54 +01:00
parent fd2de00c96
commit 1d872a6f23
2 changed files with 2 additions and 9 deletions

View File

@ -341,7 +341,7 @@ class _AboutTab extends HookWidget {
subtitle: e.bio != null
? MarkdownText(e.bio, instanceHost: instanceHost)
: null,
onTap: () => goToUser(e.id),
onTap: () => goToUser.byId(context, instanceHost, e.id),
leading: e.avatar != null
? CachedNetworkImage(
height: 50,

View File

@ -14,11 +14,6 @@ class UsersListPage extends StatelessWidget {
: assert(users != null),
super(key: key);
// TODO: go to user
void goToUser(BuildContext context, int id) {
print('GO TO USER $id');
}
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
@ -41,9 +36,7 @@ class UsersListPage extends StatelessWidget {
class UsersListItem extends StatelessWidget {
final UserView user;
const UsersListItem({Key key, @required this.user})
: assert(user != null),
super(key: key);
const UsersListItem({Key key, this.user}) : super(key: key);
@override
Widget build(BuildContext context) => ListTile(