replace shell of gotouser with an actual call of function
This commit is contained in:
parent
fd2de00c96
commit
1d872a6f23
|
@ -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,
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue