60 lines
1.7 KiB
Dart
60 lines
1.7 KiB
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:go_router/go_router.dart';
|
||
|
|
||
|
class FriendTile extends StatelessWidget {
|
||
|
const FriendTile({super.key});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return InkWell(
|
||
|
onTap: () => context.push('/contact/friend_profile'),
|
||
|
child: Padding(
|
||
|
padding: const EdgeInsets.symmetric(vertical: 10.0),
|
||
|
child: Row(
|
||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||
|
children: [
|
||
|
const SizedBox(
|
||
|
width: 10.0,
|
||
|
),
|
||
|
const CircleAvatar(
|
||
|
backgroundImage: AssetImage('assets/images/user_3.png'),
|
||
|
),
|
||
|
const SizedBox(
|
||
|
width: 10.0,
|
||
|
),
|
||
|
Expanded(
|
||
|
child: Column(
|
||
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||
|
children: [
|
||
|
const Text(
|
||
|
'Friend Remark',
|
||
|
style: TextStyle(fontSize: 17),
|
||
|
),
|
||
|
Text(
|
||
|
'sign sign sign sign sign s',
|
||
|
overflow: TextOverflow.ellipsis,
|
||
|
style: TextStyle(
|
||
|
color: Theme.of(context).textTheme.displayLarge?.color,
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
const SizedBox(
|
||
|
width: 10.0,
|
||
|
),
|
||
|
const Chip(
|
||
|
visualDensity: VisualDensity.compact,
|
||
|
label: Text('状态'),
|
||
|
),
|
||
|
const SizedBox(
|
||
|
width: 10.0,
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|