39 lines
994 B
Dart
39 lines
994 B
Dart
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(
|
|
backgroundImage: AssetImage('assets/avatars/user_3.png'),
|
|
),
|
|
SizedBox(
|
|
width: 10.0,
|
|
),
|
|
Text(
|
|
'Group chat name',
|
|
overflow: TextOverflow.ellipsis,
|
|
style: TextStyle(fontSize: 17),
|
|
),
|
|
SizedBox(
|
|
width: 10.0,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|