You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
46 lines
1.4 KiB
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<TesoUser> people;
|
|
|
|
const ExplorePeople({Key key, this.people}) : super(key: key);
|
|
@override
|
|
_ExplorePeopleState createState() => _ExplorePeopleState();
|
|
}
|
|
|
|
class _ExplorePeopleState extends State<ExplorePeople> {
|
|
@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(),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
},
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|