2023-06-21 17:44:28 +08:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:go_router/go_router.dart';
|
|
|
|
|
|
|
|
class GroupChatTile extends StatelessWidget {
|
|
|
|
const GroupChatTile({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return InkWell(
|
|
|
|
onTap: () => context.push('/contact/group_chat_profile'),
|
|
|
|
child: const Padding(
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 10.0),
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
SizedBox(
|
|
|
|
width: 10.0,
|
|
|
|
),
|
|
|
|
CircleAvatar(
|
2023-07-11 23:39:36 +08:00
|
|
|
backgroundImage: AssetImage('assets/avatars/user_3.png'),
|
2023-06-21 17:44:28 +08:00
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
width: 10.0,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'Group chat name',
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(fontSize: 17),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
width: 10.0,
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|