import 'package:teso/Classes/TesoUser.dart'; import 'package:teso/Pages/PageWidgets/Friends/friendTile.dart'; import 'package:teso/Pages/Sub_Pages/userProfile3P.dart'; import 'package:teso/providers/pageAnimations.dart'; import 'package:flutter/material.dart'; class ExplorePeople extends StatefulWidget { final List people; const ExplorePeople({Key key, this.people}) : super(key: key); @override _ExplorePeopleState createState() => _ExplorePeopleState(); } class _ExplorePeopleState extends State { @override Widget build(BuildContext context) { return Container( child: ListView.builder( itemCount: widget.people.length, itemBuilder: (context, int index) { return InkWell( onTap: () => Navigator.push( context, PageTransition( child: UserProfileThirdPerson( user: widget.people.elementAt(index), ), type: PageTransitionType.fade, ), ), child: Column( children: [ buildFriend(context, widget.people.elementAt(index)), Padding( padding: const EdgeInsets.all(8.0), child: Divider(), ), ], ), ); }, ), ); } }