diff --git a/lib/pages/instance.dart b/lib/pages/instance.dart index bb65e72..7f05435 100644 --- a/lib/pages/instance.dart +++ b/lib/pages/instance.dart @@ -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, diff --git a/lib/pages/users_list.dart b/lib/pages/users_list.dart index fe38cef..adda5fe 100644 --- a/lib/pages/users_list.dart +++ b/lib/pages/users_list.dart @@ -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(