selfprivacy.org.app/lib/ui/pages/users/user.dart

39 lines
877 B
Dart
Raw Normal View History

2021-01-06 19:35:57 +02:00
part of 'users.dart';
class _User extends StatelessWidget {
2021-07-29 08:24:42 +03:00
const _User({Key? key, required this.user}) : super(key: key);
2021-01-06 19:35:57 +02:00
2021-07-29 08:24:42 +03:00
final User user;
2021-01-06 19:35:57 +02:00
@override
Widget build(BuildContext context) {
return InkWell(
onTap: () {
2021-06-21 00:08:52 +03:00
showBrandBottomSheet<void>(
2021-01-06 19:35:57 +02:00
context: context,
builder: (BuildContext context) {
return _UserDetails(user: user);
},
);
},
child: Container(
2021-05-26 00:53:54 +03:00
padding: paddingH15V0,
2021-01-06 19:35:57 +02:00
height: 48,
child: Row(
children: [
Container(
width: 17,
height: 17,
decoration: BoxDecoration(
2021-07-29 08:24:42 +03:00
color: user.color,
2021-01-06 19:35:57 +02:00
shape: BoxShape.circle,
),
),
SizedBox(width: 20),
2021-07-29 08:24:42 +03:00
BrandText.h4(user.login),
2021-01-06 19:35:57 +02:00
],
),
),
);
}
}