2021-01-06 17:35:57 +00:00
|
|
|
part of 'users.dart';
|
|
|
|
|
|
|
|
class _User extends StatelessWidget {
|
2021-03-15 15:39:44 +00:00
|
|
|
const _User({Key? key, this.user}) : super(key: key);
|
2021-01-06 17:35:57 +00:00
|
|
|
|
2021-03-15 15:39:44 +00:00
|
|
|
final User? user;
|
2021-01-06 17:35:57 +00:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return InkWell(
|
|
|
|
onTap: () {
|
|
|
|
showModalBottomSheet<void>(
|
|
|
|
context: context,
|
|
|
|
isScrollControlled: true,
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
return _UserDetails(user: user);
|
|
|
|
},
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
padding: brandPagePadding2,
|
|
|
|
height: 48,
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
width: 17,
|
|
|
|
height: 17,
|
|
|
|
decoration: BoxDecoration(
|
2021-03-15 15:39:44 +00:00
|
|
|
color: user!.color,
|
2021-01-06 17:35:57 +00:00
|
|
|
shape: BoxShape.circle,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: 20),
|
2021-03-15 15:39:44 +00:00
|
|
|
BrandText.h4(user!.login),
|
2021-01-06 17:35:57 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|